LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get video only from inside the rectangle?

hi i have a pattern matching vi. it is abel to recognize the pattern from the path file. in the located image there is a rectangle which indicates that it is the part which has matched the pattern. i would like to be able to crop the video inside the rectangle.

 

hope you can help me. thanks 

 

Download All
0 Kudos
Message 1 of 3
(2,564 Views)

this is the subvi for the 3gpv4

0 Kudos
Message 2 of 3
(2,561 Views)

Hi ceciliap004,

 

I would take a look at the Pattern Match.vi example found in the example finder which uses the IMAQ Extract VI to create a new IMAQ image based off a region of interest. Looking ahead at future problems it looks like you are going to have an issue with rotation. We have a VI called IMAQ rotate that could work for you but it will be more difficult to use. You may want to introduce a masking stage (IMAQ roitomask 2) to cut out all parts of the image except the area you care about before you rotate. Additionally, while extract and mask will be less processor intensive, rotation is pixel manipulation and will take more power to complete.

 

I hope this helps.

 

Regards,

Michael Bilyk

Applications Engineer

National Instruments 

Michael Bilyk
Former NI Software Engineer (IT)
0 Kudos
Message 3 of 3
(2,468 Views)