Example usage for org.opencv.ml DTrees setMaxDepth

List of usage examples for org.opencv.ml DTrees setMaxDepth

Introduction

In this page you can find the example usage for org.opencv.ml DTrees setMaxDepth.

Prototype

public void setMaxDepth(int val) 

Source Link

Usage

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;
}