LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image Processing - Unable to create an image from array

Solved!
Go to solution

Hi everyone,

 

I am trying to create an array from a colored image. Then, from this array, I am trying to create another image. It should give the same image but in gray. However, I am not able to do that. I need this program to understand I am in the right way. This is just beginnig. After I do this, Some calculations will made on array obtained from image. 

 

The vi is at the attachment. Thank you

0 Kudos
Message 1 of 2
(2,276 Views)
Solution
Accepted by topic author musti168

Hi musti168,

 

You're going through your entire image pixel-by-pixel and getting each of their values - why don't you just use the IMAQ ImageToArray function?  

 

On this forum post I found an example of IMAQ ArrayToImage: http://forums.ni.com/t5/LabVIEW/IMAQ-arraytoimage-example/td-p/68418

 

You can use some of the IMAQ Image Processing palette to change the image to gray scale - possibly a threshold.

Julian R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,237 Views)