CvArrDistTransform Method (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 void DistTransform(
	CvArr dst,
	DistanceType distanceType
)

Parameters

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

Reference