thinningAsync static method
Future<Mat>
thinningAsync(
- InputArray src, {
- OutputArray? dst,
- int thinningType = THINNING_ZHANGSUEN,
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.
https://docs.opencv.org/4.x/df/d2d/group__ximgproc.html#ga37002c6ca80c978edb6ead5d6b39740c
Implementation
static Future<Mat> thinningAsync(
InputArray src, {
OutputArray? dst,
int thinningType = THINNING_ZHANGSUEN,
}) async {
dst ??= Mat.empty();
return cvRunAsync0((callback) => ccontrib.cv_ximgproc_thinning(src.ref, dst!.ref, thinningType, callback),
(c) {
return c.complete(dst);
});
}