05-08-2012 05:04 PM
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.
Solved! Go to Solution.
05-08-2012 05:17 PM
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
05-08-2012 05:49 PM - edited 05-08-2012 05:56 PM
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.
05-09-2012 06:48 AM
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.
05-09-2012 08:08 AM - edited 05-09-2012 08:16 AM
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]
05-09-2012 09:00 PM
Thank you very much! that did the trick. Thanks a lot!
05-14-2012 07:05 AM
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 ?
05-14-2012 10:24 AM
Bonjour Ju2
Mon francais n'est pas bon. Pouvez-vous envoyer votre VI. Avez-vous parler anglais?
Salutations
Julio Mena
05-15-2012 01:56 AM
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...
05-15-2012 03:01 AM
I try to change the way I open image but VI does not work correctly ... at IMAQ extract image to array