10-12-2012 03:02 PM
I am manipulating (B/W) ICCD images with Vision. Unfortunately, I have to cut the images down to I8, but that is not the issue. My question is this- Labview allows me to visualize the I8 data with a "rainbow" color map. I would like to get it to automatically create a color JPEG file (or other image file type) that I can open in powerpoint. I am aware of the IMAQ write file2.vi, but that only writes a grayscale file. How do I go about interpreting the I8 values to color data? Sorry, I am a newbie to image manipulation. J
10-12-2012 03:58 PM
Use something like this. Fill in the array constant with the colors that you want.
10-12-2012 05:30 PM
I'm using labview 11.0 (sorry, I know that I am supposed to include this in my post). Could you save the vi for an earlier version or post a picture of the back panel? Thanks. J
10-15-2012 08:46 AM
10-15-2012 05:28 PM
Thanks. Are you aware of any way to programmatically fill in the color array? The IMAQ getpallete.vi doesn't seem to do it. J
10-16-2012 12:31 PM
Sure. You can create the array programatically. How you would code it depends upon what you want the array to be.
You would probably make use of this: Functions -> Programming -> Graphics and Sound -> Picture Functions -> RGB to Color.vi