LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write 12-bit TIFF with LV

Solved!
Go to solution

I am trying to help out one of my co-workers who needs to write a 12-TIFF file in LV.

 

He thinks he did 8-bit but the req. is for 12-bit.

 

So anyone that wants to straighten me out, please do so.

 

Thank you!

 

Ben

 

PS Tim (Mellowbuck) will reply with more details shortly.

 

 

Message Edited by Ben on 11-19-2009 03:02 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 1 of 17
(5,796 Views)

Thanks Ben!

 

My Main question is that I seem to be able to produce an image which consists of U16 grayscale, and then I use the IMAQ Write (shown below).

Upon re-opening the TIFF file (tim4.tif), each pixel intensity is truncated at 8-bit (255) at each pixel where it exceeded 255.

How do I keep greater than 8-bit resolution on this file? Or, am I missing something on opening the data?

 

Thanks,

Mello

 

Message Edited by Mellobuck on 11-19-2009 03:13 PM

Data Science Automation

CTA, CLA, CLED
SHAZAM!
0 Kudos
Message 2 of 17
(5,785 Views)

If the image data is U16 and you format the image I16 that might be an issue.  I don't understand applying the color palet gray at the image write...could that be conflictign with the original image definition...

 

?

 

Hummer1

Message 3 of 17
(5,773 Views)
Caveat: I have never touched the IMAQ VIs.  That said, I am suspicious of the Cast Image VI, I would guess the default is a U8 Grayscale (I don't see anything to specify the type of Image you are casting to).
Message 4 of 17
(5,768 Views)
Solution
Accepted by topic author Ben
This seems to work...havn't checked the numbers, but they seem to come in and go out the same size.
Message 5 of 17
(5,749 Views)

Ben,

 

I started getting interacting in this forum for the exact same reason. I had a image processor chip that would give me a 12 bit image data and i wanted to map that into an image. I ended up converting it into a 16 bit value by manupulating the lsbs (adding 0000) and then mapping it. 

 

 

Message 6 of 17
(5,734 Views)

Well first let me thank you all for the replies. I really appreciate it.

 

Tim has just arrived in the office and will check out your suggestions soon. I wll insist that you all get Kudos from him as well.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 17
(5,715 Views)

Thank you, Hummer! That was the correct solution. I removed the cast image and palette functions, and the numbers came in and out correctly. The image references had originally not connected without the cast image function, but I guess I got rid of the conflict somewhere along the line.

I'll let Ben know to mark this as a solution.

 

-Mello


Data Science Automation

CTA, CLA, CLED
SHAZAM!
Message 8 of 17
(5,713 Views)

You're welcome.

 

Darin.K's cast catch was important!

 

Hummer1

Message 9 of 17
(5,705 Views)

Hummer1 wrote:

You're welcome.

 

Darin.K's cast catch was important!

 

Hummer1


 

Should I mark his reply as the solution or should I just get him some more Kudoes?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 10 of 17
(5,701 Views)