Ask Your Question

Position of a Roi in a mat

asked 2015-04-13 16:28:37 -0500

MalcolmMaya gravatar image

Is it possible to know the position of a ROI made from a Mat if you pass both of them as argument of a function ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-14 03:58:28 -0500

Guanta gravatar image

If you have created the ROI using cv::Rect() or cv::Range(), you can use locateROI, see . 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(

edit flag offensive delete link more



locateROI is the function I missed in the docs. Thanks a lot

MalcolmMaya gravatar imageMalcolmMaya ( 2015-04-14 04:01:17 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-04-13 16:28:37 -0500

Seen: 249 times

Last updated: Apr 14 '15