[Insight-developers] BMPImageIO

Marius Staring marius at isi.uu.nl
Fri Jun 9 11:14:41 EDT 2006


Hi Julien,

thanks for the fix. Everything works for me now.

One other thing: there is this boolean m_Allow8BitBMP in the code, which 
is not accesible by a user and is always true. You probably can get rid 
of it, or am I missing something?

Thanks again,

Marius

Julien Jomier wrote:
> 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,
>>>>>
>>>>
>>>
>>>
>>
>
>

-- 
Marius Staring
Image Sciences Institute
University Medical Centre Utrecht
Heidelberglaan 100, 3584 CX Utrecht, The Netherlands
phone: +31 (0)30 250 3186, fax: +31 (0)30 251 3399
marius at isi.uu.nl, http://www.isi.uu.nl/People/Marius



More information about the Insight-developers mailing list