[Insight-developers] BMPImageIO

Julien Jomier julien.jomier at kitware.com
Fri Jun 9 10:09:02 EDT 2006


Hi Marius,

I've checked in a fix for BMPImageIO in the cvs repository.
Two issues were fixed:

1) BMPImageIO was not reading any color images. This is now possible.
2) Your image is actually compressed using RLE. I've added a 
decompression feature.

Give it a try and let me know if you are still having problems reading 
this image.

Thanks for the report,

Julien

Marius Staring wrote:
> Hi Julien,
> 
> I have done so. The bug number is  #3314.
> 
> Marius
> 
> Julien Jomier wrote:
>> 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