07-10-2014 05:49 AM
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
Solved! Go to Solution.
07-11-2014 03:12 PM
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.