[Insight-users] PLEASE HELP! RescaleIntensityImageFilter and Non Scalar Images
Bill Lorensen
bill.lorensen at gmail.com
Thu Jun 5 15:43:49 EDT 2008
try itkVectorRescaleIntensityImageFilter
On Thu, Jun 5, 2008 at 2:45 PM, John Eke <johne at annidis.com> wrote:
> Hi,
>
> Could someone please show me how to read use the RescaleIntensityImageFilter
> with RGB Images? When I set an RGB image type (of type itk::RGBPixel<short
> unsigned int>) as input, I get lots of very confusing errors upon
> initializing the object:
>
> const unsigned int Dimmension = 2;
> typedef itk::RGBPixel<short unsigned int> InputPixelType;
> typedef itk::RGBPixel<unsigned char> OutputPixelType;
>
> typedef itk::Image<InputPixelType, Dimmension> InputImageType;
> typedef itk::Image<OutputPixelType, Dimmension> OutputImageType;
>
> typedef itk::ImageFileReader<InputImageType> ReaderType;
>
> ReaderType::Pointer reader = ReaderType::New();
>
> reader->SetFileName(path.toStdString().c_str());
> typedef itk::RescaleIntensityImageFilter<InputImageType,
> OutputImageType> FilterType;
> FilterType::Pointer filter = FilterType::New(); //ERROR OCCURS HERE
>
> What am I not doing right?
>
> Thanks
>
> John
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list