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
srcInputArraySource 8-bit single-channel image, containing binary blobs, with blobs having 255 pixel values.
dstOutputArrayDestination image of the same size and the same type as src. The function can work in-place.
thinningTypeThinningTypesValue that defines which thinning algorithm should be used.