类 DTrees
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.ml.StatModel
-
- org.opencv.ml.DTrees
-
-
字段摘要
字段 修饰符和类型 字段 描述 static intPREDICT_AUTOstatic intPREDICT_MASKstatic intPREDICT_MAX_VOTEstatic intPREDICT_SUM-
从类继承的字段 org.opencv.ml.StatModel
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
-
-
构造函数摘要
构造函数 修饰符 构造函数 描述 保护DTrees(long addr)
-
方法摘要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 描述 静态 DTrees__fromPtr__(long addr)静态 DTreescreate()创建空模型。静态方法使用指定的参数创建空决策树。protected voidfinalize()intgetCVFolds()参见:setCVFoldsintgetMaxCategories()参见:setMaxCategoriesintgetMaxDepth()参见:setMaxDepthintgetMinSampleCount()参见:setMinSampleCountMatgetPriors()参见:setPriorsfloatgetRegressionAccuracy()参见:setRegressionAccuracybooleangetTruncatePrunedTree()参见:setTruncatePrunedTreebooleangetUse1SERule()参见:setUse1SERulebooleangetUseSurrogates()参见:setUseSurrogates静态 DTreesload(java.lang.String filepath)从文件加载并创建序列化的 DTrees。 使用 DTree::save 序列化并将 DTree 存储到磁盘。静态 DTreesload(java.lang.String filepath, java.lang.String nodeName)从文件加载并创建序列化的 DTrees。 使用 DTree::save 序列化并将 DTree 存储到磁盘。voidsetCVFolds(int val)getCVFolds 参见:getCVFoldsvoidsetMaxCategories(int val)getMaxCategories 参见:getMaxCategoriesvoidsetMaxDepth(int val)getMaxDepth 参见:getMaxDepthvoidsetMinSampleCount(int val)getMinSampleCount 参见:getMinSampleCountvoidsetPriors(Mat val)getPriors 参见:getPriorsvoidsetRegressionAccuracy(float val)getRegressionAccuracy 参见:getRegressionAccuracyvoidsetTruncatePrunedTree(boolean val)getTruncatePrunedTree 参见:getTruncatePrunedTreevoidsetUse1SERule(boolean val)getUse1SERule 参见:getUse1SERulevoidsetUseSurrogates(boolean val)getUseSurrogates 参见:getUseSurrogates-
从类继承的方法 org.opencv.ml.StatModel
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, train
-
从类继承的方法 org.opencv.core.Algorithm
clear, getDefaultName, getNativeObjAddr, save
-
-
-
-
方法详细信息
-
__fromPtr__
public static DTrees __fromPtr__(long addr)
-
getMaxCategories
public int getMaxCategories()
参见:setMaxCategories- 返回
- 自动生成
-
setMaxCategories
public void setMaxCategories(int val)
getMaxCategories 参见:getMaxCategories- 参数
val- 自动生成
-
getMaxDepth
public int getMaxDepth()
参见:setMaxDepth- 返回
- 自动生成
-
setMaxDepth
public void setMaxDepth(int val)
getMaxDepth 参见:getMaxDepth- 参数
val- 自动生成
-
getMinSampleCount
public int getMinSampleCount()
参见:setMinSampleCount- 返回
- 自动生成
-
setMinSampleCount
public void setMinSampleCount(int val)
getMinSampleCount 参见:getMinSampleCount- 参数
val- 自动生成
-
getCVFolds
public int getCVFolds()
参见:setCVFolds- 返回
- 自动生成
-
setCVFolds
public void setCVFolds(int val)
getCVFolds 参见:getCVFolds- 参数
val- 自动生成
-
getUseSurrogates
public boolean getUseSurrogates()
参见:setUseSurrogates- 返回
- 自动生成
-
setUseSurrogates
public void setUseSurrogates(boolean val)
getUseSurrogates 参见:getUseSurrogates- 参数
val- 自动生成
-
getUse1SERule
public boolean getUse1SERule()
参见:setUse1SERule- 返回
- 自动生成
-
setUse1SERule
public void setUse1SERule(boolean val)
getUse1SERule 参见:getUse1SERule- 参数
val- 自动生成
-
getTruncatePrunedTree
public boolean getTruncatePrunedTree()
参见:setTruncatePrunedTree- 返回
- 自动生成
-
setTruncatePrunedTree
public void setTruncatePrunedTree(boolean val)
getTruncatePrunedTree 参见:getTruncatePrunedTree- 参数
val- 自动生成
-
getRegressionAccuracy
public float getRegressionAccuracy()
参见:setRegressionAccuracy- 返回
- 自动生成
-
setRegressionAccuracy
public void setRegressionAccuracy(float val)
getRegressionAccuracy 参见:getRegressionAccuracy- 参数
val- 自动生成
-
getPriors
public Mat getPriors()
参见:setPriors- 返回
- 自动生成
-
setPriors
public void setPriors(Mat val)
getPriors 参见:getPriors- 参数
val- 自动生成
-
create
public static DTrees create()
创建空模型。静态方法使用指定的参数创建空决策树。 然后应使用训练方法进行训练(请参见 StatModel::train)。 或者,可以使用 Algorithm::load<DTrees>(filename) 从文件加载模型。- 返回
- 自动生成
-
load
public static DTrees load(java.lang.String filepath, java.lang.String nodeName)
从文件加载并创建序列化的 DTrees。 使用 DTree::save 序列化并将 DTree 存储到磁盘。 通过使用文件路径调用此函数,再次从此文件加载 DTree。 (可选)指定包含分类器的文件的节点- 参数
filepath- 序列化 DTree 的路径nodeName- 包含分类器的节点的名称- 返回
- 自动生成
-
load
public static DTrees load(java.lang.String filepath)
从文件加载并创建序列化的 DTrees。 使用 DTree::save 序列化并将 DTree 存储到磁盘。 通过使用文件路径调用此函数,再次从此文件加载 DTree。 (可选)指定包含分类器的文件的节点- 参数
filepath- 序列化 DTree 的路径- 返回
- 自动生成
-
-