[Insight-users] How to Set Output Origin and Output Region in ResampleImageFilter When Resampling For a Different Direction?

Kon Z mnkz at comp.leeds.ac.uk
Tue May 12 12:04:46 EDT 2009


Hello ALL.

I realise that the output image region is likely to become larger then 
the input region when using ResampleImageFilter to resample an image 
with a new direction and I would like to have all original image data to 
be included in the output region.

Also while in the input image the (0,0,0) index is at the position of 
the image origin, in the output image the origin needs to be set with 
the new direction in mind.

What is the correct way of calculating the output region (for calling 
SetSize()) and output origin (for calling SetOutputOrigin()) when using 
ResampleImageFilter to resample an image with a new direction?

Regards,
Kon


More information about the Insight-users mailing list