09-30-2013 03:33 PM
I have an intensity graph (2D). I want to convert it to imaq image. I am using "IMAQ ArraytoColorImage" function. I am not sure why these two images look different? Are they not supposed to look alike? Also, the image seems to be rotated by 90 degree!
I need to write these images as a avi movie. So I need to convert it to IMAQ image (not sure if there is other ways to do it!)
How do I make these two images look same? Please have a look at the code.
Thanks.
09-30-2013 05:55 PM
This is one way. You will need to trim.
09-30-2013 06:13 PM
Here is another, if you need to preserve pixel values. Not that I have changed the 16Bit display scaling of the IMAQ image control in properties dropdown.
09-30-2013 07:17 PM
I have attached a VI to show how to make a custom color palette for an I16 grayscale image to get the same look as the intensity graph. In order to do this, however, you have to coerce the values in the image to match the intensity graph Z scale range (327 to 2000). If you want to save the image with the same coloring you can use the same palette data as the "Color Palette" input to the IMAQ Write File 2 VI.
10-01-2013 11:08 AM
Hi MoviJohn,
I am sorry. I should have mentioned it before, but I have Labview 2010. Can you please save both of your codes in a format that I can open in Labview 2010.
Thanks.