isRLMorphologyPossible static method

bool isRLMorphologyPossible(
  1. InputArray rlStructuringElement
)

Check whether a custom made structuring element can be used with run length morphological operations. (It must consist of a continuous array of single runs per row)

https://docs.opencv.org/4.x/df/def/group__ximgproc__run__length__morphology.html#ga85ed82296e9e9893dcbaa92b87837019

Implementation

static bool isRLMorphologyPossible(InputArray rlStructuringElement) {
  final p = calloc<ffi.Bool>();
  cvRun(() => ccontrib.ximgproc_rl_isRLMorphologyPossible(rlStructuringElement.ref, p));
  final rval = p.value;
  calloc.free(p);
  return rval;
}