LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to crop video using ROI

Hello,

 

Would some one please help me?

 

I have a loop which continuously aquire images from a camera and saves it to a video . I would like to crop a region of this video by passing the co-ordinates of a rectangle.After I have the cropped video, I would like to do a intensity profile of the whole video and display it using a single graph ( intesnity changes for diffferent frames in the y axis and the the number of the frame in x - axis.

 

Joyce Joy

 

0 Kudos
Message 1 of 4
(2,884 Views)

I think you will have to crop each frame individually. Use the IMAQ extract VI (http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_extract/)

 

Depending on the frame rate of your video capture, will determine if you can do this live or offline.

 

(I usually work with still images, and not continuous video)

Message 2 of 4
(2,866 Views)

Did you get the answer to your question..I want to do the same thing...please send me the program if you got the solution

0 Kudos
Message 3 of 4
(2,649 Views)

Hi,

You can implement image cropping following the example:
https://decibel.ni.com/content/docs/DOC-11222

You would have to programmatically generate the ROI rectangle if you do not wish to have user interaction in the code.

I am not quite sure what kind of intensity profile you want, but here is a good example that performs it along a line, so you could just build an array of those and plot it.
https://decibel.ni.com/content/docs/DOC-20840

Hope this helps!

Applications Engineer
National Instruments UK & Ireland

0 Kudos
Message 4 of 4
(2,622 Views)