LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the pixel information from picture using labVIEW

Hello,

 

I have simple Image which I have to use to get the pixel count using LabVIEW.  I don't have Vision toolkit.  I want to achieve this task using only LabVIEW.

 

Thanks for your support in Advance.

 

Durai S

0 Kudos
Message 1 of 6
(6,665 Views)

Hello Durai,

 

You can use IMAQ which is free to do what you want.

 

image.PNG

 

Navigate to VIsion-> Vision Utilities -> Pixel Manipulation, you find two functions that might help you. The first is IMAQ GetPixelValue that gives you the value for a given pixel, the other function is IMAQ ImageToArray that returns an array from a given image.

 

 

Guilherme Correa
0 Kudos
Message 2 of 6
(6,652 Views)

Guilherme, are you sure you can get IMAQ for free? I thought you could only use those functions after installing the Vision Acquisition Software.

 

You can use some of the picture functions to import .png, .bmp, and .jpg, though they are a little less intuitive.

 

 

0 Kudos
Message 3 of 6
(6,628 Views)

Hello Gregory,

 

According to this link, if you have LabVIEW Development you can use IMAQ functions. These functions are available in the Vision driver, however it does not seems that is required to have Vision Assistant and Vision Builder. Both programs are paid, but not the driver.

 

Try to reinstall the Vision driver and check for the IMAQ API.

Guilherme Correa
0 Kudos
Message 4 of 6
(6,607 Views)

Hi Guilerhme,

 

The article you linked states:

 

"Problem:
I have installed the NI Vision Acquisition Software..."

 

It appears you need the Vision Acquisition Software in order to use the IMAQ functions.

Message 5 of 6
(6,585 Views)

Without using the IMAQ VIs you should be able to get what you want from the Graphics Formats palette.  You can load in the image and then use Unflatten Pixmap which will return a 2D array pixel color information.

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 6 of 6
(6,566 Views)