@Namespace(value="cv::ml") @Properties(inherit=opencv_ml.class) public class RTrees extends DTrees
ml_intro_rtrees
DTrees.Node, DTrees.Split
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
PREDICT_AUTO, PREDICT_MASK, PREDICT_MAX_VOTE, PREDICT_SUM
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Constructor and Description |
---|
RTrees(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static RTrees |
create()
Creates the empty model.
|
int |
getActiveVarCount() |
boolean |
getCalculateVarImportance() |
TermCriteria |
getTermCriteria() |
Mat |
getVarImportance()
Returns the variable importance array.
|
void |
getVotes(GpuMat samples,
GpuMat results,
int flags) |
void |
getVotes(Mat samples,
Mat results,
int flags)
Returns the result of each individual tree in the forest.
|
void |
getVotes(UMat samples,
UMat results,
int flags) |
static RTrees |
load(BytePointer filepath) |
static RTrees |
load(BytePointer filepath,
BytePointer nodeName)
\brief Loads and creates a serialized RTree from a file
Use RTree::save to serialize and store an RTree to disk.
|
static RTrees |
load(String filepath) |
static RTrees |
load(String filepath,
String nodeName) |
void |
setActiveVarCount(int val)
\copybrief getActiveVarCount @see getActiveVarCount
|
void |
setCalculateVarImportance(boolean val)
\copybrief getCalculateVarImportance @see getCalculateVarImportance
|
void |
setTermCriteria(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, setUseSurrogates
calcError, calcError, calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, predict, predict, predict, train, train, train, train, train
loadANN_MLP, loadANN_MLP, loadBoost, loadBoost, loadDTrees, loadDTrees, loadEM, loadEM, loadKNearest, loadKNearest, loadLogisticRegression, loadLogisticRegression, loadNormalBayesClassifier, loadNormalBayesClassifier, loadRTrees, loadRTrees, loadSVM, loadSVM
clear, getDefaultName, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public RTrees(Pointer p)
Pointer.Pointer(Pointer)
.@Cast(value="bool") public boolean getCalculateVarImportance()
setCalculateVarImportance
public void setCalculateVarImportance(@Cast(value="bool") boolean val)
public int getActiveVarCount()
setActiveVarCount
public void setActiveVarCount(int val)
@ByVal public TermCriteria getTermCriteria()
setTermCriteria
public void setTermCriteria(@Const @ByRef TermCriteria val)
@ByVal public Mat getVarImportance()
public void getVotes(@ByVal Mat samples, @ByVal 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.@opencv_core.Ptr public static RTrees create()
@opencv_core.Ptr public static RTrees load(@opencv_core.Str BytePointer filepath, @opencv_core.Str BytePointer nodeName)
filepath
- path to serialized RTreenodeName
- name of node containing the classifier@opencv_core.Ptr public static RTrees load(@opencv_core.Str BytePointer filepath)
@opencv_core.Ptr public static RTrees load(@opencv_core.Str String filepath, @opencv_core.Str String nodeName)
@opencv_core.Ptr public static RTrees load(@opencv_core.Str String filepath)
Copyright © 2020. All rights reserved.