[Insight-users] RE: resampling to larger images and extrapolation

Ali - saveez at hotmail.com
Mon Feb 18 11:16:27 EST 2008


It could be helpful to rephrase the this question in this way: itk::ResampleImageFilter can accept a constant default value for values mapped outside the input image via SetDefaultPixelValue(). How is it possible to manage the default value to be non-constant? For example, one may want to scale an image to a larger one and assign default values in the style of itk::WrapPadImageFilter or itk::MirrorPadImageFilter, while SetDefaultPixelValue() only provides the equivalent of itk::ZeroPadImageFilter.

> 
> 
> Hi,
> 
> If we use itk::ResampleImageFilter to scale an image to a bigger size, some area around the image border, which is a fraction of the m_Spacing value, are NOT interpolated and as a result the borders are fade to the default pixel value of the resampling filter. It seems that, beside the interpolation performed by the resampling filter, the borders must be also extrapolated.
> 
> Could someone confirm that this issue has not been addressed in ITK? One good example of this problem is the multi-resolution registration filters in ITK where resampling the deformation vectors to a higher resolution, ie scaling the image to be larger, causes borders to have unexpected values.
> 
> 
> -Ali



_________________________________________________________________
Who's friends with who and co-starred in what?
http://www.searchgamesbox.com/celebrityseparation.shtml


More information about the Insight-users mailing list