only for channels == 1
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; }); }