06-25-2012 05:09 PM
Dear Labview Experts,
I have a USB camera and I'd like to use labview to do a few simple image manipulation algorithms, problem is I don't have Vision Development / Vision Assistant modules. Can I extract a pixel array from this device via labview without these modules? Just need a 2d array of pixel values...thanks
Solved! Go to Solution.
06-26-2012 09:06 AM
If you want to do it all in LabVIEW then you're going to have to purchase the Vision Acquisition Software. You could then acquire the image, save it to a file, and then use the Read *image* File.vi on the Graphics Formats palette to read the image in as a pixmap cluster. You can then use the Unflatten Pixmap.vi to produce a 2D array of image data. If you don't need to acquire in LabVIEW, then save the image as a PNG, BMP, or JPG and then do the same thing. Once you have the image array you can perform calculations just as you would any other data array.
06-26-2012 09:14 AM
Thanks for the help, that's all I needed. Will probably start looking at the Vision acquisition software then as it would be more useful for my purposes to do everything through LabVIEW.
06-26-2012 09:15 AM
I agree that you need Vision Acquisition Software to get images from the camera. The rest is overly complex, though. After acquiring an image, just use ImageToArray to convert the image to a 2D array.
Bruce
06-26-2012 09:44 AM
Bruce,
You're correct, in the help it says that ImagetoArray is part of VDM, but I'm pretty sure it is included with the VAS package as well. If so that would be a much simpler process.