The function cv::distanceTransform() can obtain the DT image that only contatins the distance field. If I want to get not only the distance information but also the nearest non-zero pixel coordinate, what should I do?
The function cv::distanceTransform() can obtain the DT image that only contatins the distance field. If I want to get not only the distance information but also the nearest non-zero pixel coordinate, what should I do?