createRLEImage static method

Mat createRLEImage(
  1. VecPoint3i runs, {
  2. (int, int) size = (0, 0),
})

Creates a run-length encoded image from a vector of runs (column begin, column end, row)

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

Implementation

static Mat createRLEImage(VecPoint3i runs, {(int, int) size = (0, 0)}) {
  final p = calloc<ccontrib.Mat>();
  cvRun(() => ccontrib.ximgproc_rl_createRLEImage(runs.ref, p, size.cvd.ref));
  return Mat.fromPointer(p);
}