LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the array/matrix of an image?

Solved!
Go to solution

Hi, at work we will develop a program that will work with images. My question is how can I get the array or matrix of the pixels of an image?

Thank you.

0 Kudos
Message 1 of 14
(10,293 Views)

Image files, including bit map files are more than just an array of data.  See this wikipedia article on bitmap file format: http://en.wikipedia.org/wiki/BMP_file_format 

0 Kudos
Message 2 of 14
(10,290 Views)

Well actually what i'll do is a cnc that will draw what any image that is in the computer. So what I've done already is get the image, change it to gray scale, apply an edge detection filter, and finally convert the image to binary. So now what I want is to get that binary image into labview, and search in that image array/matrix for the pixels where there's something in red (because of the binary image), and if it is, draw that point.

So what I'm asking is how to know in labview which pixels are in red and which in black of the binary image.

 

Thanks.

0 Kudos
Message 3 of 14
(10,283 Views)

There is something called "unflatten Pixmap.vi" programming - graphics&sounds - graphic formats.

I think that should do the job.

 

If you have vision installed you can also use the pixel manipulation palette and use "Image to Array"

Succes.

0 Kudos
Message 4 of 14
(10,262 Views)
Solution
Accepted by topic author rugebiker

If you have IMAQ there is an image to array VI

 

If you don't have the IMAQ stuff, there is an Image to Array VI in the free AD Vision Toolkit: http://vi-lib.com/

 

[edit: oops, missed the last line of your post there EmcV]

 

0 Kudos
Message 5 of 14
(10,255 Views)

Thank you very much! that did the trick. Thanks a lot!

0 Kudos
Message 6 of 14
(10,232 Views)

Bonjour,

 

J'essaie d'utiliser IMAQ ImageToArray & ArrayToImage ... mais je n'arrive pas à les faire fonctionner.... La source est une caméra GigE Vision qui fonctionne très bien avec le reste du panel des fonctions IMAQ..

 

Pourriez vous m'aider ?

0 Kudos
Message 7 of 14
(10,207 Views)

Bonjour Ju2

 

Mon francais n'est pas bon. Pouvez-vous envoyer votre VI. Avez-vous parler anglais?

 

Salutations

 

Julio Mena

0 Kudos
Message 8 of 14
(10,192 Views)

Julio9 a écrit :

Bonjour Ju2

 

Mon francais n'est pas bon. Pouvez-vous envoyer votre VI. Avez-vous parler anglais?

 

Salutations

 

Julio Mena


Sure , I can try...

Basically, my need is to find in a concentric movement, the center of it. During acquiring, I sum images, convert them to a U8 matrix and trying to display the results to finally use IMAQ Find Circles VI to detect the centre.
My problem is in the reconstruction of image... after matrix's conversion in U8... I can't display result...

 

0 Kudos
Message 9 of 14
(10,179 Views)

I try to change the way I open image but VI does not work correctly ... at IMAQ extract image to array

0 Kudos
Message 10 of 14
(10,173 Views)