roots property

List<int> get roots

The indices of the root nodes, one per tree.

Implementation

List<int> get roots {
  final v = VecI32();
  try {
    cvRun(() => cml.cv_ml_Boost_getRoots(ref, v.ptr));
    return v.toList();
  } finally {
    v.dispose();
  }
}