[Insight-developers] BMPImageIO

Marius Staring marius at isi.uu.nl
Fri Jun 2 10:19:21 EDT 2006


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