[Insight-users] How to Convert ITK RGB Image to VTK Image
Patrick (Peng) Cheng
peng-cheng at uiowa.edu
Thu Jul 8 17:34:55 EDT 2004
Hi,
I use the itkImageToVTKImageFilter, but there is an error when I new a instance of this filter. What's going wrong?
typedef itk::RGBPixel< float > RGBPixelType;
typedef itk::Image<RGBPixelType,3> RGBImageType;
typedef itk::ImageToVTKImageFilter< RGBImageType > RGB2VTK;
RGBImageType::Pointer m_RGBImage = RGBImageType::New(); <-----
---------------------------
Peng (Patrick) Cheng
Biomedical Engineering
University of Iowa
Tel:(319) 400-7442
Email: peng-cheng at uiowa.edu
More information about the Insight-users
mailing list