getStructuringElement function
GetStructuringElement returns a structuring element of the specified size and shape for morphological operations.
For further details, please see: https:///docs.opencv.org/master/d4/d86/group__imgproc__filter.html#gac342a1bb6eabf6f55c803b09268e36dc
Implementation
Mat getStructuringElement(int shape, (int, int) ksize, {Point? anchor}) {
anchor ??= Point(-1, -1);
final r = calloc<cvg.Mat>();
cvRun(() => cffi.GetStructuringElement(shape, ksize.cvd.ref, r));
return Mat.fromPointer(r);
}