Distance transform - Wikipedia
https://en.wikipedia.org/wiki/Distance_transformA distance transform, also known as distance map or distance field, is a derived representation of a digital image. The choice of the term depends on the point of view on the object in question: whether the initial image is transformed into another representation, or it is simply endowed with an additional map or field. Distance fields can also be signed, in the case where it is important to distinguish whether the p…
transform - C++ Reference
www.cplusplus.com › reference › algorithmLinear in the distance between first1 and last1: Performs one assignment and one application of op (or binary_op) per element. Data races The objects in the range [first1,last1) (and eventually those in the range beginning at first2) are accessed (each object is accessed exactly once). The objects in the range beginning at result are modified ...
OpenCV - Distance Transformation
www.tutorialspoint.com › opencv › opencv_distanceThe distance transform operator generally takes binary images as inputs. In this operation, the gray level intensities of the points inside the foreground regions are changed to distance their respective distances from the closest 0 value (boundary). You can apply distance transform in OpenCV using the method distanceTransform ().