05-04-2016 04:17 AM
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
05-04-2016 04:50 AM
Hello Durai,
You can use IMAQ which is free to do what you want.
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.
05-04-2016 11:19 AM
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.
05-05-2016 02:27 AM
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.
05-05-2016 11:26 AM
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.
05-05-2016 12:39 PM
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.