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 mat = Mat.empty();
cvRun(() => cimgproc.cv_getStructuringElement(shape, ksize.cvd.ref, mat.ptr, ffi.nullptr));
return mat;
}