Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to calculate distances between pixels on a contour

Hello, I have a contour in OPENCV C++ in the contour format, and I want to measure the distance between each two pixels on the contour ( the number of pixels on the contour between them). It is clear that there are two distances between every two points on a closed contour. I need a clear algorithm or a code to measure these two distances in pixel. Bests,

how to calculate distances between pixels on a contour

Hello, I have a contour in OPENCV C++ in the contour format, and I want to measure the distance between each two pixels on the contour ( the number of pixels on the contour between them). It is clear that there are two distances between every two points on a closed contour. I need a clear algorithm or a code to measure these two distances in pixel. Bests,

image description