countNoneZero property

int get countNoneZero

only for channels == 1

Implementation

int get countNoneZero {
  cvAssert(channels == 1, "countNoneZero only for channels == 1");
  return cvRunArena<int>((arena) {
    final p = arena<ffi.Int>();
    cvRun(() => ccore.Mat_CountNonZero(ref, p));
    return p.value;
  });
}