@Namespace(value="cv::ml") public static class opencv_ml.RTrees extends opencv_ml.DTrees
\sa \ref ml_intro_rtrees
opencv_ml.DTrees.Node, opencv_ml.DTrees.SplitPREDICT_AUTO, PREDICT_MASK, PREDICT_MAX_VOTE, PREDICT_SUMCOMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL| Constructor and Description |
|---|
RTrees(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_ml.RTrees |
create()
Creates the empty model.
|
int |
getActiveVarCount() |
boolean |
getCalculateVarImportance() |
opencv_core.TermCriteria |
getTermCriteria() |
opencv_core.Mat |
getVarImportance()
Returns the variable importance array.
|
void |
getVotes(opencv_core.GpuMat samples,
opencv_core.GpuMat results,
int flags) |
void |
getVotes(opencv_core.Mat samples,
opencv_core.Mat results,
int flags)
Returns the result of each individual tree in the forest.
|
void |
getVotes(opencv_core.UMat samples,
opencv_core.UMat results,
int flags) |
static opencv_ml.RTrees |
load(org.bytedeco.javacpp.BytePointer filepath) |
static opencv_ml.RTrees |
load(org.bytedeco.javacpp.BytePointer filepath,
org.bytedeco.javacpp.BytePointer nodeName)
\brief Loads and creates a serialized RTree from a file
Use RTree::save to serialize and store an RTree to disk.
|
static opencv_ml.RTrees |
load(String filepath) |
static opencv_ml.RTrees |
load(String filepath,
String nodeName) |
void |
setActiveVarCount(int val)
\copybrief getActiveVarCount @see getActiveVarCount
|
void |
setCalculateVarImportance(boolean val)
\copybrief getCalculateVarImportance @see getCalculateVarImportance
|
void |
setTermCriteria(opencv_core.TermCriteria val)
\copybrief getTermCriteria @see getTermCriteria
|
getCVFolds, getMaxCategories, getMaxDepth, getMinSampleCount, getNodes, getPriors, getRegressionAccuracy, getRoots, getSplits, getSubsets, getTruncatePrunedTree, getUse1SERule, getUseSurrogates, setCVFolds, setMaxCategories, setMaxDepth, setMinSampleCount, setPriors, setRegressionAccuracy, setTruncatePrunedTree, setUse1SERule, setUseSurrogatescalcError, calcError, calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, predict, predict, predict, train, train, train, train, trainloadANN_MLP, loadANN_MLP, loadBoost, loadBoost, loadDTrees, loadDTrees, loadEM, loadEM, loadKNearest, loadKNearest, loadLogisticRegression, loadLogisticRegression, loadNormalBayesClassifier, loadNormalBayesClassifier, loadRTrees, loadRTrees, loadSVM, loadSVMclear, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic RTrees(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).@Cast(value="bool") public boolean getCalculateVarImportance()
setCalculateVarImportancepublic void setCalculateVarImportance(@Cast(value="bool")
boolean val)
public int getActiveVarCount()
setActiveVarCountpublic void setActiveVarCount(int val)
@ByVal public opencv_core.TermCriteria getTermCriteria()
setTermCriteriapublic void setTermCriteria(@Const @ByRef
opencv_core.TermCriteria val)
@ByVal public opencv_core.Mat getVarImportance()
public void getVotes(@ByVal
opencv_core.Mat samples,
@ByVal
opencv_core.Mat results,
int flags)
samples - Array containing the samples for which votes will be calculated.results - Array where the result of the calculation will be written.flags - Flags for defining the type of RTrees.public void getVotes(@ByVal
opencv_core.UMat samples,
@ByVal
opencv_core.UMat results,
int flags)
public void getVotes(@ByVal
opencv_core.GpuMat samples,
@ByVal
opencv_core.GpuMat results,
int flags)
@opencv_core.Ptr public static opencv_ml.RTrees create()
@opencv_core.Ptr public static opencv_ml.RTrees load(@opencv_core.Str org.bytedeco.javacpp.BytePointer filepath, @opencv_core.Str org.bytedeco.javacpp.BytePointer nodeName)
filepath - path to serialized RTreenodeName - name of node containing the classifier@opencv_core.Ptr public static opencv_ml.RTrees load(@opencv_core.Str org.bytedeco.javacpp.BytePointer filepath)
@opencv_core.Ptr public static opencv_ml.RTrees load(@opencv_core.Str String filepath, @opencv_core.Str String nodeName)
@opencv_core.Ptr public static opencv_ml.RTrees load(@opencv_core.Str String filepath)
Copyright © 2018. All rights reserved.