ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

I am not sure but I think that is called the "nearest feature transform" and AFAIK it is not implemented in OpenCV.

In any case you only want to find the nearest zero feature of a few of points you can find it integrating the trajectory which start in your "working point" following the gradient of the distance transform image. On a few steps bounded by the sqrt(width*height) you will find eventually the nearest zero feature.