LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert an AVI frame to an image data cluster ?

Solved!
Go to solution

Hi everybody,

 

I have previous VIs that manipulate pictures (image data cluster) readen from JPEG files. I'd like to use these VIs to analyse individual frames from an AVI file.

 

How can I connect the image out of the IMAQ AVI read.vi to the picture input of the Draw Flattened Pixmap.vi?

 

Thanks for helping,

Olivier

0 Kudos
Message 1 of 5
(3,377 Views)

Hi Olivier,

 

You can use IMAQ ImageToArray to convert your IMAQ Image into a 2D array, then use IMAQ Draw Unflattened Pixmap to convert to a picture. Alternatively, you could save each AVI frame as a JPEG (or just save all your images as JPEG to begin with, as in this example) and use your current VIs to read and manipulate the images. 

 

Regards,


Daniel H.

Message 2 of 5
(3,360 Views)

Thanks for the tip but, in my implentation, it generates that the no picture can be manipulated. Could you tell me where is my mistake?

 

Thanks,

Olivier

Download All
0 Kudos
Message 3 of 5
(3,350 Views)
Solution
Accepted by topic author OD

avi2img.png

 

George Zou
Message 4 of 5
(3,339 Views)

Works perfectly!

Thanks

0 Kudos
Message 5 of 5
(3,335 Views)