Click or drag to resize

CvXImgProcThinning Method

Applies a binary blob thinning operation, to achieve a skeletization of the input image. The function transforms a binary blob image into a skeletized form using the technique of Zhang-Suen.

Namespace:  OpenCvSharp.XImgProc
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void Thinning(
	InputArray src,
	OutputArray dst,
	ThinningTypes thinningType = ThinningTypes.ZHANGSUEN
)

Parameters

src
Type: OpenCvSharpInputArray
Source 8-bit single-channel image, containing binary blobs, with blobs having 255 pixel values.
dst
Type: OpenCvSharpOutputArray
Destination image of the same size and the same type as src. The function can work in-place.
thinningType (Optional)
Type: OpenCvSharp.XImgProcThinningTypes
Value that defines which thinning algorithm should be used.
See Also