[Insight-users] Bug reading palette grayscale images initkTiffImageIO.cxx

Julien Jomier jjomier at cs.unc.edu
Mon Aug 30 11:52:35 EDT 2004


Hi Christoph,

Thanks for the bug report and providing a fix.
Your fix has been put in the current CVS repository.

Let us know if you find any other issues,
Thanks again for the report,

Julien

> -----Original Message-----
> From: insight-users-bounces at itk.org 
> [mailto:insight-users-bounces at itk.org] On Behalf Of Christoph Palm
> Sent: Monday, August 30, 2004 11:35 AM
> To: insight-users at itk.org
> Subject: [Insight-users] Bug reading palette grayscale images 
> initkTiffImageIO.cxx
> 
> 
> Hi all,
> 
> after problems with reading grayscale palette tif images
> (the result was always black),
> I found a posting of Maik Flanagin in the vtk users list.
> There, he suggested a bug fix for RGB palette images. Now
> I know, the same has to be done for grayscale palette images:
> 
> In the method
> 
> int TIFFImageIO::EvaluateImageAt( void* out, void* in )
> 
> I changed the following:
> 
>    case TIFFImageIO::PALETTE_GRAYSCALE:
>       this->GetColor(*source, &red, &green, &blue);
>       *image = static_cast<unsigned char>(red >> 8);
> 
> Now all works fine. I suggest to change this in the
> itk source distribution.
> 
> Regards,
> 
> 	Christoph 
> 
> _______________________________________________
> 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