getCatCount method
Number of categories of the categorical variable vi.
Implementation
int getCatCount(int vi) {
final p = calloc<ffi.Int>();
try {
cvRun(() => cml.cv_ml_TrainData_getCatCount(ref, vi, p));
return p.value;
} finally {
calloc.free(p);
}
}