[Insight-developers] BMPImageIO

Julien Jomier julien.jomier at kitware.com
Fri Jun 2 10:52:04 EDT 2006


Hi Marius,

It's on my todo list. Can you log a bug and assign it to me?

Julien

Marius Staring wrote:
> Did anyone checked this?
> 
> Marius
> 
> Marius Staring wrote:
>> Hi all,
>>
>> I have a BMP color image that is not read in well in the BMPImageIO. 
>> The GetNumberOfComponents() returns 1, and it should be 3, since the 
>> image has r,g, and b components. I tracked the problem down to the 
>> ReadImageInformation()-function, where the m_Depth parameter is set to 
>> 8, which in turn defines the NumberOfComponents to be 1. There is also 
>> a boolean m_Allow8BitBMP involved, but that is allways true, it is 
>> never changed.
>>
>> I have made the problematic bmp file available for download at:
>>
>>    http://www.isi.uu.nl/People/Marius/images/lena_c.bmp
>>
>> Regards,
>>
> 



More information about the Insight-developers mailing list