[Insight-users] MetaImage IO and RGB
Luis Ibanez
luis.ibanez@kitware.com
Mon, 11 Nov 2002 11:30:27 -0500
Hi Puja,
Yes,
the MetaImage format can manage RGB images.
You can see an example of RGB reading on
Insight/Applications/MetaImageColorViewer
Please note that the image is using the
pixel type: itk::RGBPixel< >.
The essential code for a reader looks like:
typedef itk::RGBPixel<float> PixelType;
typedef itk::Image< PixelType, 3 > ImageType;
typedef itk::ImageFileReader< ImageType > VolumeReaderType;
VolumeReaderType::Pointer reader = VolumeReaderType::New();
reader->SetFileName(fName);
Hope that helps,
Luis
============================================
Puja Malik wrote:
> Luis,
> I have a very basic question - can meta files have RGB pixel values?
> thanks!
> puja
>