LEADTOOLS Support
General
General Questions
Re: Viewing 14-bit Raw image in MainDemo
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, May 16, 2012 8:52:07 PM(UTC)
Groups: Registered
Posts: 71
Hi,
I want to view a 14 bit raw image in MainDemo. But the problem is, it has only 8-bit, 12-bit, 16-bit etc options not 14-bit. Is it possible through any other example or through this one only to view 14-bit raw image. Actually by using 16-bit option in MainDemo I am able to view this 14-bit image but it's not that much clear as i am not passing the exact parameter of BitsPerPixel. Can you please help me in this regards.
Thanks.....
#2
Posted
:
Thursday, May 17, 2012 5:15:47 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Please send me a sample image that contains 14-bit data and include the following information:
1. Are the image pixels grayscale?
2. Are the allocated bits equal to the stored bits, both = 14?
3. Is there padding with each line of data (what's the value of Bytes Per Line)?
4. Can you send a screenshot of how the image should appear?
5. Which LEADTOOLS version are you using?
If you send files, please put them all in a ZIP or RAR file and either post them here or email them to
support@leadtools.com.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Thursday, May 24, 2012 9:21:00 PM(UTC)
Groups: Registered
Posts: 71
Hi,
I am not able to attach the image here. So can you please download it from the below link.
http://www.4shared.com/zip/Zp4eVxwM/RawImages.html
1.Yes image pixels are grayscale.
2. Yes allocated bits =stored bits.
3. I don't know about this.
4. screen shot is attached.
5. Leadtools version 17.
#4
Posted
:
Saturday, May 26, 2012 11:58:52 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
I want to investigate more about this issue. Please send this issue in a new email to
support@leadtools.com and include the following information in your email:
Are you using
1. Which LEADTOOLS programming interface (.NET classes, C DLL, C++ Classes, etc.) are you using?
2. Your LEADTOOLS serial number (do Not post it here).
3. Send me the image information such as width, height, BPP, etc.
3. A link to this forum post.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#5
Posted
:
Monday, June 4, 2012 1:16:25 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
After checking the raw files, it appears they contain 16 bits allocated and not 14.
The data values are in the range of 14 bits which means 2 bits are not used (bits stored = 14).
Also, the intensity values are inverted, which means the values closer to zero are the bright shades and the values closer to 0x3FFF are the dark shades.
To load such images and display them correctly using LEADTOOLS, you can use the Raw loading mechanism and specify the following parameters:
W = H = 3000
BPP = 16
Order = Grayscale
View Perspective = Top Left
Fill Order = MSB First
Pad Line 4 Bytes: Not important because data is multiple of 4 bytes.
After that, you must do some image processing to convert it to actual 16-bit image for display. I used the Remap Intensity function to obtain attached display.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
Maen Hasan attached the following image(s):
LEADTOOLS Support
General
General Questions
Re: Viewing 14-bit Raw image in MainDemo
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.