Ask Your Question

Revision history [back]

We can crop and get the image of template matching result by using the function subMat(), and providing it the Rect, which is our ROI. We can get the cords. of Rect from the result Mat of template matching method.