Table of Contents

Method Thinning

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Thinning(InputArray, OutputArray, ThinningTypes)

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.

public static void Thinning(InputArray src, OutputArray dst, ThinningTypes thinningType = ThinningTypes.ZHANGSUEN)

Parameters

src InputArray

Source 8-bit single-channel image, containing binary blobs, with blobs having 255 pixel values.

dst OutputArray

Destination image of the same size and the same type as src. The function can work in-place.

thinningType ThinningTypes

Value that defines which thinning algorithm should be used.