Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, August 16, 2007 11:31:46 PM(UTC)
manco_0607

Groups: Registered
Posts: 5


Hi..

I must create a buffer for texture 3D with 16 bit images in OpenGl.

getting bak the data of images, for each pixel I've 2 bytes..

someone know how can I processign these to recover only a good gray scale byte???

thanks

Good Tiime
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, August 16, 2007 11:32:41 PM(UTC)
manco_0607

Groups: Registered
Posts: 5


Hi..

I must create a buffer for texture 3D with 16 bit images in OpenGl.

getting bak the data of images, for each pixel I've 2 bytes..

someone know how can I processign these to recover only a good gray scale byte???

thanks

Good Tiime
 
#3 Posted : Sunday, August 19, 2007 5:13:44 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

LEADTOOLS supports 2 types of 16-bit pixel data:
1) Grayscale 16-bit, where each 2-byte value represents a gray level. This type of data is only supported in LEADTOOLS Document Imaging and Medical Imaging toolkits.
2) 555 RGB data, where each of the Red, Green and Blue channels is represented by 5 bits, and one extra bit is used for Alpha information.

If your data is similar to one of these 2 formats, you can use LEADTOOLS to create a raster image from the data, then use all LEADTOOLS functions with this image, including conversion to 8-bit grayscale if you need to.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#4 Posted : Monday, August 20, 2007 6:06:39 AM(UTC)
manco_0607

Groups: Registered
Posts: 5


thanks,

my images are a 16 bit gray scale of the firth type..
i tried convert its with the GrayScaleCommand but the quality is too worse....

for my texture I can use the shorts...
can i get back a good short value from the 2 byte of the pixels??? How ??

thank you very much...
Hi
Good Time
 
#5 Posted : Tuesday, August 21, 2007 6:39:53 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Hello,

Does the image look OK when it's still 16-bit before you use the Grayscale function to convert it to 8-bit?
If it's not OK before the conversion, the conversion itself will not fix it.
If it is OK, please save the image as 16-bit TIFF file and put it in a ZIP or RAR file and attach it.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#6 Posted : Wednesday, August 22, 2007 12:53:25 AM(UTC)
manco_0607

Groups: Registered
Posts: 5


thanks,
I now tried with bitperpixels = 16 and the quality is OK.

I think i've resolved my problems

thank you very much still..

Hi Good Time
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.135 seconds.