LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert to IMAQ image

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.

0 Kudos
Message 1 of 5
(2,534 Views)

This is one way.  You will need to trim.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 2 of 5
(2,517 Views)

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.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 3 of 5
(2,511 Views)

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.

0 Kudos
Message 4 of 5
(2,501 Views)

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.

0 Kudos
Message 5 of 5
(2,476 Views)