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()
2 | No.2 Revision |
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...
3 | No.3 Revision |
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
is not yet documented, as it seems...SubDiv2DSubdiv2D