Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you have created the ROI using cv::Rect() or cv::Range(), you can use locateROI, see http://docs.opencv.org/modules/core/doc/basic_structures.html#mat-locateroi . If you want to find a subimage not steming from the same Matrix (i.e. not created by cv::Rect() or cv::Range()) in a Matrix, then you would need to use matchTemplate (http://docs.opencv.org/modules/imgproc/doc/object_detection.html?highlight=matchtemplate#matchtemplate).