RegNet icon indicating copy to clipboard operation
RegNet copied to clipboard

how to adjust the landmark after resampling the origin image

Open YMBrianHung opened this issue 5 years ago • 2 comments

1

YMBrianHung avatar Jun 28 '20 13:06 YMBrianHung

Hello,

Basically, the physical world coordinate of image and landmarks will not change after the resmapling. Only the index coordinate will change.

If your landmarks are in the index coordinate, you can convert them to the world coordinate before resampling, for example by sitk::Image::TransformIndexToPhysicalPoint(). After performing the resampling then these physical points can be converted back to indices: sitk::Image::TransformPhysicalPointToIndex().

For more info, you can check some examples on the SimpleITK tutorial

hsokooti avatar Jun 29 '20 21:06 hsokooti

I guess it makes the pipeline much straight-forward, but it is not necessary. Just consider that landmark points are given in the index domain.

hsokooti avatar Jul 06 '20 22:07 hsokooti