List of usage examples for org.opencv.ml DTrees setMaxDepth
public void setMaxDepth(int val)
From source file:qupath.opencv.classify.DTreesClassifier.java
License:Open Source License
@Override protected DTrees createClassifier() { DTrees trees = DTrees.create(); // Bug at time of writing appears to require these to be set, // see http://code.opencv.org/issues/4480 trees.setCVFolds(0);/*from ww w . j a v a 2s.c o m*/ trees.setMaxDepth(1000); return trees; }