| 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
)
Public Shared Sub Thinning (
src As InputArray,
dst As OutputArray,
Optional thinningType As ThinningTypes = ThinningTypes.ZHANGSUEN
)
public:
static void Thinning(
InputArray^ src,
OutputArray^ dst,
ThinningTypes thinningType = ThinningTypes::ZHANGSUEN
)
static member Thinning :
src : InputArray *
dst : OutputArray *
?thinningType : ThinningTypes
(* Defaults:
let _thinningType = defaultArg thinningType ThinningTypes.ZHANGSUEN
*)
-> unit
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