16-bit grayscale images

General discussions about GdPicture.NET.
Post Reply
cyockey
Posts: 3
Joined: Tue Jun 01, 2010 11:28 pm

16-bit grayscale images

Post by cyockey » Tue Jun 01, 2010 11:38 pm

How are 16-bit grayscale images handled by GdPicture? I assume that they are mapped down to 8-bit. Is there a Look Up Table that allows me to adjust which shades show up? Thanks.

Calvin

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: 16-bit grayscale images

Post by Loïc » Thu Jun 03, 2010 10:11 am

Hi Calvin,

16 bpp grayscale bitmap are converted to 8bpp grayscale using linear conversion:

0-255 becode RGB(0,0,0)
256-511 become RGB(1,1,1)
512-767 become RGB(2,2,2)
...

Hope this helps.

cyockey
Posts: 3
Joined: Tue Jun 01, 2010 11:28 pm

Re: 16-bit grayscale images

Post by cyockey » Thu Jun 03, 2010 3:31 pm

Thanks for the reply, Loïc.

Do you store the entire 16-bits in memory and just do the transform upon display? This would give me the opportunity to apply my own LUT which is necessary for medical images. Any chance you might add a LUT option?

Calvin

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: 16-bit grayscale images

Post by Loïc » Mon Jun 07, 2010 9:47 am

Hi Calvin,

Sorry for the delay. No we convert the image to 8 bit based components on loading time. This for performance & easy usage purpose.

For the LUT option why not ? We have some research to do but I think we can easily bring this feature. I added it into our wish list for future investigation.

With best regards,

Loïc

cyockey
Posts: 3
Joined: Tue Jun 01, 2010 11:28 pm

Re: 16-bit grayscale images

Post by cyockey » Mon Jun 07, 2010 4:36 pm

Thanks for considering the LUT, Loïc. That would be very useful for diagnostic imaging.

Cheers,

Calvin

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests