LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

export image to tif using cast image

I have written a vi that currently acquires data from a camera. The
image steams in continuously in 16bit. I have a case structure that
snaps the image and exports a single frame of the streaming image to a
tif format using "IMAQ Write TIFF file". The tif file that results
however is extremely low contrast. I am guessing that I need a
conversion before exporting to tif, but I am unsure how to implement
that. I am considering using "IMAQ Cast Image". Is there a better
way? I don't necessarily need to use tif, so if there is another
better method, I would be open to suggestions. If I do need to use
cast image does anyone have recommendations for "# shifts" or "image
type" that would work well for tiff?

0 Kudos
Message 1 of 2
(2,576 Views)
Hi vwkafer
 
look at this vi, which might exactly be what you want:
 
 
it takes a 2D array (transform first your imaq into 2D array), then you have a color master table that you can choose or update (create your own), to set variable contrast ratio and flas color imaging.
after that, you can just transfer this data into a jpg with the created color table.
Does it help?
 
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 2 of 2
(2,568 Views)