Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You could precompute the features, build a Voronoi diagram from your feature's keypoint coordinates and find out the closest feature to the user's input coordinates.

There is a deprecated C API method to compute Voronoi diagrams in OpenCV or you can use distanceTransform()

You could precompute the features, build a Voronoi diagram from your feature's keypoint coordinates and find out the closest feature to the user's input coordinates.

There is a deprecated C API method to compute Voronoi diagrams in OpenCV or you can use distanceTransform()

UPDATE

I just found out that the deprecated stuff was ported to C++ in the imgproc module, but SubDiv2D not yet documented, as it seems...

You could precompute the features, build a Voronoi diagram from your feature's keypoint coordinates and find out the closest feature to the user's input coordinates.

There is a deprecated C API method to compute Voronoi diagrams in OpenCV or you can use distanceTransform()

UPDATE

I just found out that the deprecated stuff was ported to C++ in the imgproc module, but SubDiv2DSubdiv2D is not yet documented, as it seems...