[Insight-users] Loss of bit depth in converting fron png to bmp

Luis Ibanez luis . ibanez at kitware . com
Fri, 03 Oct 2003 11:32:40 -0400


Hi Rashmi,

BMP only supports 8 bits per pixel.
http://astronomy . swin . edu . au/~pbourke/dataformats/bmp/

It can also do 24bits per pixel for color images
where 8 bits are used per components.

One more reason for *not* using BMP for medical images.


Regards,



    Luis


------------------------------------------------------


rg32 at njit . edu wrote:
> Hi all ,
> I'm working on a program which has to process a png image and return a bmp 
> image.For doing the conversion i'm using the foll. posting.
> http://www . itk . org/pipermail/insight-users/2003-June/003952 . html
> The problem is that I lose the bit depth after having done this conversion.The 
> bit depth of the png image is 32 while for the bmp is 8.Is there any way to 
> avoid this?
> -Rashmi
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>