Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to select the contour bounding a point (mouse event)

Hello everyone.

I am working with OpenCV and I need to do the following :

I have a contours vector, built with cv::findContours. I need to click the picture, select the first contour bounding the click-point, and draw it on the picture.

But I don't know a good way to select in the contours vector the first contour bounding a point. Could you help me on this, please ?