threshold static method
Applies a fixed-level threshold to each array element.
Implementation
static Mat threshold(InputArray sr, double thresh, int type) {
final p = calloc<ccontrib.Mat>();
cvRun(() => ccontrib.ximgproc_rl_threshold(sr.ref, p, thresh, type));
return Mat.fromPointer(p);
}