CvArrDistTransform Method (CvArr) 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
)

Parameters

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

Reference