Decision tree
Inheritance Hierarchy
OpenCvSharpDisposableObject
OpenCvSharpDisposableCvObject
OpenCvSharp.CPlusPlusCvStatModel
OpenCvSharp.CPlusPlusCvDTree
OpenCvSharp.CPlusPlusCvBoostTree
OpenCvSharp.CPlusPlusCvForestTree
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The CvDTree type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CvDTree |
Default constructor
|
Properties
Name | Description | |
---|---|---|
AllocatedMemory |
Gets or sets a memory address allocated by AllocMemory.
(Inherited from DisposableObject.) | |
AllocatedMemorySize |
Gets or sets the byte length of the allocated memory
(Inherited from DisposableObject.) | |
CvPtr |
Native pointer of OpenCV structure
(Inherited from DisposableCvObject.) | |
IsDisposed |
Gets a value indicating whether this instance has been disposed.
(Inherited from DisposableObject.) | |
IsEnabledDispose |
Gets or sets a value indicating whether you permit disposing this instance.
(Inherited from DisposableObject.) |
Methods
Name | Description | |
---|---|---|
AllocGCHandle |
Pins the object to be allocated by cvSetData.
(Inherited from DisposableObject.) | |
AllocMemory |
Allocates the specified size of memory.
(Inherited from DisposableObject.) | |
Clear |
Deallocates memory and resets the model state
(Overrides CvStatModelClear.) | |
Dispose |
Releases the resources
(Inherited from DisposableObject.) | |
Dispose(Boolean) |
Clean up any resources being used.
(Overrides CvStatModelDispose(Boolean).) | |
Equals | (Inherited from Object.) | |
Finalize |
Destructor
(Inherited from DisposableObject.) | |
GetData | ||
GetHashCode | (Inherited from Object.) | |
GetPrunedTreeIdx | ||
GetRoot | ||
GetType | (Inherited from Object.) | |
GetVarImportance | ||
Load(String) |
Loads the model from file
(Inherited from CvStatModel.) | |
Load(String, String) |
Loads the model from file
(Inherited from CvStatModel.) | |
MemberwiseClone | (Inherited from Object.) | |
NotifyMemoryPressure |
Notifies the allocated size of memory.
(Inherited from DisposableObject.) | |
Predict(CvMat, CvMat, Boolean) |
Returns the leaf node of decision tree corresponding to the input vector
| |
Predict(Mat, Mat, Boolean) |
Returns the leaf node of decision tree corresponding to the input vector
| |
Read(CvFileStorage, CvFileNode) |
Reads the model from file storage
(Overrides CvStatModelRead(CvFileStorage, CvFileNode).) | |
Read(CvFileStorage, CvFileNode, CvDTreeTrainData) |
Reads the model from file storage
| |
Save(String) |
Saves the model to file
(Inherited from CvStatModel.) | |
Save(String, String) |
Saves the model to file
(Inherited from CvStatModel.) | |
ThrowIfDisposed |
If this object is disposed, then ObjectDisposedException is thrown.
(Inherited from DisposableObject.) | |
ToString | (Inherited from Object.) | |
Train(CvDTreeTrainData, CvMat) |
Trains decision tree
| |
Train(CvMLData, CvDTreeParams) |
Trains decision tree
| |
Train(CvMat, DTreeDataLayout, CvMat, CvMat, CvMat, CvMat, CvMat, CvDTreeParams) |
Trains decision tree
| |
Train(Mat, DTreeDataLayout, Mat, Mat, Mat, Mat, Mat, CvDTreeParams) |
Trains decision tree
| |
Write(CvFileStorage) |
Writes the model to file storage
| |
Write(CvFileStorage, String) |
Writes the model to file storage
(Overrides CvStatModelWrite(CvFileStorage, String).) |
Fields
Name | Description | |
---|---|---|
dataHandle |
Gets or sets a handle which allocates using cvSetData.
(Inherited from DisposableObject.) | |
ptr |
Data pointer
(Inherited from DisposableCvObject.) |
See Also