Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

MatchPattern2 function?

Dear all, I use the NI vision's Matchpattern2 function to find out the template image(CWIMAQViewer2.image) in the SearchImage(CWIMAQViewer1.image) as follows: 
 
 CWIMAQVision1.MatchPattern2(CWIMAQViewer1.Image, CWIMAQViewer2.Image, MatchOptions, MatchReport)
 
Then the CWMachineVision1.DrawPatternMatch function was applied to draw a rectangle which surrounded the template image in the CWIMAQViewer1.image.
 
Now, i wanna extract this rectangle image from CWIMAQViewer1.image and copy(or save as) to an image file. How should I do?
0 Kudos
Message 1 of 2
(3,199 Views)
 Simple u get the rectangle co-ordinates output from pattern match right.Feed to imaq extract


Is this what u want?
Message 2 of 2
(3,032 Views)