Login  Register

Help with in reading 16 bits BMP image file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Help with in reading 16 bits BMP image file

Wang, Liqin
4 posts
Hi, May I get a help to read 16 bits RGB bmp file?

Here are some info:

nsize = 27970
nbisize = 8388608
width = 128
height = 109
nplanes = 1
nbitcount = 16
ncompression =3
nsizeimage =  27904

X pixels per Meter = 0;
 Y pixel per meter = 0
Colors in Color table = 3;
Important color  count = 3;

The above data are from 40 bytes of he header

I think I need to read R, G, B , alpha channel bitmask from the header ???

I basically want to convert this image into 24 RGB.

Thanks for your helps.

Liqin




--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Help with in reading 16 bits BMP image file

ctrueden
1670 posts
Hi Liqin,

> May I get a help to read 16 bits RGB bmp file?

Did you try opening it using the Bio-Formats Importer plugin? (It is
included with the Fiji distribution of ImageJ; http://fiji.sc/)

Regards,
Curtis


On Wed, Mar 13, 2013 at 4:40 PM, Wang, Liqin <[hidden email]> wrote:

> Hi, May I get a help to read 16 bits RGB bmp file?
>
> Here are some info:
>
> nsize = 27970
> nbisize = 8388608
> width = 128
> height = 109
> nplanes = 1
> nbitcount = 16
> ncompression =3
> nsizeimage =  27904
>
> X pixels per Meter = 0;
>  Y pixel per meter = 0
> Colors in Color table = 3;
> Important color  count = 3;
>
> The above data are from 40 bytes of he header
>
> I think I need to read R, G, B , alpha channel bitmask from the header ???
>
> I basically want to convert this image into 24 RGB.
>
> Thanks for your helps.
>
> Liqin
>
>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html