[Insight-users] problem with RGB .bmp images

Luis Ibanez luis.ibanez at kitware.com
Mon Sep 29 08:57:44 EDT 2008

Hi John,

Are you declaring your image as an image whose
pixel type is itkRGBPixel<>  ?

Please provide a minimal code snippet illustrating your problem.



John wrote:
> I now modified the code and prooved that the problem lies within the reading of
> the bmp image.
> Printing out the pixel values already results in this output:
> Pixel values from GetRed,GetGreen,GetBlue:
> Red = 234
> Green = 234
> Blue = 234
> This pixel definitely is colored and not grey, as looked up with an image
> manipulation program.
> This is really strange and I also have the problem with other randomly chosen
> bitmap images, which I downloaded from the web. For other bitmap images the code
> works well.
> Did you already figure out, why this problem could appear?
> 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