Package org.opencv.ml
Class Boost
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.ml.StatModel
- 
- org.opencv.ml.DTrees
- 
- org.opencv.ml.Boost
 
 
 
 
- 
 public class Boost extends DTrees Boosted tree classifier derived from DTrees SEE: REF: ml_intro_boost
- 
- 
Field SummaryFields Modifier and Type Field Description static intDISCRETEstatic intGENTLEstatic intLOGITstatic intREAL- 
Fields inherited from class org.opencv.ml.DTreesPREDICT_AUTO, PREDICT_MASK, PREDICT_MAX_VOTE, PREDICT_SUM
 - 
Fields inherited from class org.opencv.ml.StatModelCOMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBoost(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Boost__fromPtr__(long addr)static Boostcreate()Creates the empty model.protected voidfinalize()intgetBoostType()SEE: setBoostTypeintgetWeakCount()SEE: setWeakCountdoublegetWeightTrimRate()SEE: setWeightTrimRatestatic Boostload(java.lang.String filepath)Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk.static Boostload(java.lang.String filepath, java.lang.String nodeName)Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk.voidsetBoostType(int val)getBoostType SEE: getBoostTypevoidsetWeakCount(int val)getWeakCount SEE: getWeakCountvoidsetWeightTrimRate(double val)getWeightTrimRate SEE: getWeightTrimRate- 
Methods inherited from class org.opencv.ml.DTreesgetCVFolds, getMaxCategories, getMaxDepth, getMinSampleCount, getPriors, getRegressionAccuracy, getTruncatePrunedTree, getUse1SERule, getUseSurrogates, setCVFolds, setMaxCategories, setMaxDepth, setMinSampleCount, setPriors, setRegressionAccuracy, setTruncatePrunedTree, setUse1SERule, setUseSurrogates
 - 
Methods inherited from class org.opencv.ml.StatModelcalcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, train
 - 
Methods inherited from class org.opencv.core.Algorithmclear, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Field Detail- 
DISCRETEpublic static final int DISCRETE - See Also:
- Constant Field Values
 
 - 
REALpublic static final int REAL - See Also:
- Constant Field Values
 
 - 
LOGITpublic static final int LOGIT - See Also:
- Constant Field Values
 
 - 
GENTLEpublic static final int GENTLE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
__fromPtr__public static Boost __fromPtr__(long addr) 
 - 
getBoostTypepublic int getBoostType() SEE: setBoostType- Returns:
- automatically generated
 
 - 
setBoostTypepublic void setBoostType(int val) getBoostType SEE: getBoostType- Parameters:
- val- automatically generated
 
 - 
getWeakCountpublic int getWeakCount() SEE: setWeakCount- Returns:
- automatically generated
 
 - 
setWeakCountpublic void setWeakCount(int val) getWeakCount SEE: getWeakCount- Parameters:
- val- automatically generated
 
 - 
getWeightTrimRatepublic double getWeightTrimRate() SEE: setWeightTrimRate- Returns:
- automatically generated
 
 - 
setWeightTrimRatepublic void setWeightTrimRate(double val) getWeightTrimRate SEE: getWeightTrimRate- Parameters:
- val- automatically generated
 
 - 
createpublic static Boost create() Creates the empty model. Use StatModel::train to train the model, Algorithm::load<Boost>(filename) to load the pre-trained model.- Returns:
- automatically generated
 
 - 
loadpublic static Boost load(java.lang.String filepath, java.lang.String nodeName) Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk. Load the Boost from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier- Parameters:
- filepath- path to serialized Boost
- nodeName- name of node containing the classifier
- Returns:
- automatically generated
 
 - 
loadpublic static Boost load(java.lang.String filepath) Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk. Load the Boost from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier- Parameters:
- filepath- path to serialized Boost
- Returns:
- automatically generated
 
 
- 
 
-