[Insight-users] question about itk::ResampleImageFilter

Luis Ibanez luis . ibanez at kitware . com
Tue, 02 Sep 2003 23:16:06 -0400


Hi Eiii,

Your typedefs look ok,

However the ResampleImageFilter will not support multichannel data.
This is basically due to the interpolator it uses internally.

A specific interpolator for Vector data is available in the toolkit.
http://www . itk . org/Insight/Doxygen/html/classitk_1_1VectorLinearInterpolateImageFunction . html

If you feel adventurous, you could give it a shot at modifying the
ResampleImageFilter for using this vector interpolator.

Another option may be to use ImageAdaptors as explained in the
SoftwareGuide.   http://www . itk . org/ItkSoftwareGuide . pdf
Chapter 12, pdf-page 521.

With ImageAdaptors, you could present an RGB image as three independent
scalar images, resample them with three ResampleImageFilters and use
another adaptor for joining them at the output.
(or use the JoinImageFilter).
http://www . itk . org/Insight/Doxygen/html/classitk_1_1JoinImageFilter . html



Regards,


    Luis



----------------
宋涛 wrote:
> const unsigned int IMAGE_DIMENSION = 2 ;
> typedef itk::RGBPixel< unsigned char > RGBPixelType;
> typedef itk::Image< RGBPixelType, IMAGE_DIMENSION > RGBImageType;
> typedef itk::ResampleImageFilter< RGBImageType,RGBImageType >ResampleFilterType 
> ;
>  
> 
> these defines are correct or not ?  and why?
> 
> Does itk::ResampleImageFilter support RGB PixelsType?
> 
> ==============================================
> *安全稳定大容量,收费伊妹儿免费30日完美体验~* <http://vip . 163 . com>
> *中国最大的免费邮箱在等你 25兆空间 4兆附件!* <http://mail . 163 . com>
> *点击网易泡泡惊喜无限 全免费手机短信任你发!* <http://popo . 163 . com>
>