Package org.opencv.ml
Class DTrees
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.ml.StatModel
-
- org.opencv.ml.DTrees
-
-
Field Summary
Fields Modifier and Type Field Description static intPREDICT_AUTOstatic intPREDICT_MASKstatic intPREDICT_MAX_VOTEstatic intPREDICT_SUM-
Fields inherited from class org.opencv.ml.StatModel
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDTrees(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DTrees__fromPtr__(long addr)static DTreescreate()protected voidfinalize()intgetCVFolds()intgetMaxCategories()intgetMaxDepth()intgetMinSampleCount()MatgetPriors()floatgetRegressionAccuracy()booleangetTruncatePrunedTree()booleangetUse1SERule()booleangetUseSurrogates()static DTreesload(String filepath)static DTreesload(String filepath, String nodeName)voidsetCVFolds(int val)voidsetMaxCategories(int val)voidsetMaxDepth(int val)voidsetMinSampleCount(int val)voidsetPriors(Mat val)voidsetRegressionAccuracy(float val)voidsetTruncatePrunedTree(boolean val)voidsetUse1SERule(boolean val)voidsetUseSurrogates(boolean val)-
Methods inherited from class org.opencv.ml.StatModel
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, train
-
Methods inherited from class org.opencv.core.Algorithm
clear, getDefaultName, getNativeObjAddr, save
-
-
-
-
Field Detail
-
PREDICT_AUTO
public static final int PREDICT_AUTO
- See Also:
- Constant Field Values
-
PREDICT_SUM
public static final int PREDICT_SUM
- See Also:
- Constant Field Values
-
PREDICT_MAX_VOTE
public static final int PREDICT_MAX_VOTE
- See Also:
- Constant Field Values
-
PREDICT_MASK
public static final int PREDICT_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
__fromPtr__
public static DTrees __fromPtr__(long addr)
-
getPriors
public Mat getPriors()
-
create
public static DTrees create()
-
getTruncatePrunedTree
public boolean getTruncatePrunedTree()
-
getUse1SERule
public boolean getUse1SERule()
-
getUseSurrogates
public boolean getUseSurrogates()
-
getRegressionAccuracy
public float getRegressionAccuracy()
-
getCVFolds
public int getCVFolds()
-
getMaxCategories
public int getMaxCategories()
-
getMaxDepth
public int getMaxDepth()
-
getMinSampleCount
public int getMinSampleCount()
-
setCVFolds
public void setCVFolds(int val)
-
setMaxCategories
public void setMaxCategories(int val)
-
setMaxDepth
public void setMaxDepth(int val)
-
setMinSampleCount
public void setMinSampleCount(int val)
-
setPriors
public void setPriors(Mat val)
-
setRegressionAccuracy
public void setRegressionAccuracy(float val)
-
setTruncatePrunedTree
public void setTruncatePrunedTree(boolean val)
-
setUse1SERule
public void setUse1SERule(boolean val)
-
setUseSurrogates
public void setUseSurrogates(boolean val)
-
-