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?