getStructuringElement function

VARP getStructuringElement(
  1. int shape,
  2. (int, int) ksize
)

Implementation

VARP getStructuringElement(int shape, (int, int) ksize) {
  final cKsize = Size.fromTuple(ksize);
  final pOut = c.mnn_cv_getStructuringElement(shape, cKsize.ref);
  final rval = VARP.fromPointer(pOut);
  cKsize.dispose();
  return rval;
}