LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analysing jpg or other imagefiles without IMAQ

Hello,

is there any chance of analysing stored pictures (e.g. jpeg) when looking
for a specified area like a changed LED which changes from green to red
without having IMAQ?

Thanks and best regards
Joachim Hesse
0 Kudos
Message 1 of 3
(2,643 Views)
Hi Joachim,

if you managed to extract a portion of your image, then you should have the flattened image data as 1D array.
If you calculate the mean value of this array you see that it changes when the image changes color.
This is not of course an accurate method, but you can easily detect if the color changes from green to red.

Good luck,

Alberto
0 Kudos
Message 2 of 3
(2,643 Views)
You can use Picture functions in LV6.
1. Choose Functions/Graphics&Sound/GraphicsFormat/ReadJPEGFile.vi This vi returnes flattened image data and color table of your picture
2.Use "Unflatten pixmap.vi" to convert flattened image data to 2D array of pixels with values, corresponding to color table
3.Then you can select the region of interes from this 2D array with array functions and compare its colors with red or green for example.

Good luck.

Oleg Chutko.
0 Kudos
Message 3 of 3
(2,643 Views)