How can I get the nearest non-zero coordinate of a specific point after (or from) the cv::distanceTransform?

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?