hsokooti / RegNet

Nonrigid image registration using multi-scale 3D convolutional neural networks
Apache License 2.0
192 stars 50 forks source link

how to adjust the landmark after resampling the origin image #10

Open YMBrianHung opened 4 years ago

YMBrianHung commented 4 years ago

1

hsokooti commented 4 years ago

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 commented 4 years ago

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.