CvDistTransform Method (CvArr, CvArr, DistanceType) OpenCvSharp Class Library
Calculates distance to closest zero pixel for all non-zero pixels of source image.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void DistTransform(
	CvArr src,
	CvArr dst,
	DistanceType distanceType
)

Parameters

src
Type: OpenCvSharpCvArr
Source 8-bit single-channel (binary) image.
dst
Type: OpenCvSharpCvArr
Output image with calculated distances (32-bit floating-point, single-channel).
distanceType
Type: OpenCvSharpDistanceType
Type of distance.
See Also

Reference