opencv distance transform
I am not sure if this is the right place for an OpenCV question, but I will ask nonetheless :) I want to compute distance transform on a cv::Mat object. However, for each pixel in the matrix, along with its distance to the nearest zero pixel, I want to identify the nearest zero pixel (row/col) as well. Is there any in-built OpenCV functionality to achieve this? Thanks!