OpenCV for Unity 2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
Boosted tree classifier derived from DTrees. More...
Public Member Functions | |
int | getBoostType () |
void | setBoostType (int val) |
int | getWeakCount () |
void | setWeakCount (int val) |
double | getWeightTrimRate () |
void | setWeightTrimRate (double val) |
![]() | |
int | getMaxCategories () |
void | setMaxCategories (int val) |
int | getMaxDepth () |
void | setMaxDepth (int val) |
int | getMinSampleCount () |
void | setMinSampleCount (int val) |
int | getCVFolds () |
void | setCVFolds (int val) |
bool | getUseSurrogates () |
void | setUseSurrogates (bool val) |
bool | getUse1SERule () |
void | setUse1SERule (bool val) |
bool | getTruncatePrunedTree () |
void | setTruncatePrunedTree (bool val) |
float | getRegressionAccuracy () |
void | setRegressionAccuracy (float val) |
Mat | getPriors () |
void | setPriors (Mat val) |
![]() | |
int | getVarCount () |
Returns the number of variables in training samples. | |
override bool | empty () |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. | |
bool | isTrained () |
Returns true if the model is trained. | |
bool | isClassifier () |
Returns true if the model is classifier. | |
bool | train (TrainData trainData, int flags) |
Trains the statistical model. | |
bool | train (TrainData trainData) |
Trains the statistical model. | |
bool | train (Mat samples, int layout, Mat responses) |
Trains the statistical model. | |
float | calcError (TrainData data, bool test, Mat resp) |
Computes error on the training or test dataset. | |
virtual float | predict (Mat samples, Mat results, int flags) |
Predicts response(s) for the provided sample(s) | |
virtual float | predict (Mat samples, Mat results) |
Predicts response(s) for the provided sample(s) | |
virtual float | predict (Mat samples) |
Predicts response(s) for the provided sample(s) | |
![]() | |
IntPtr | getNativeObjAddr () |
virtual void | clear () |
Clears the algorithm state. | |
void | save (string filename) |
virtual string | getDefaultName () |
![]() | |
void | Dispose () |
void | ThrowIfDisposed () |
Static Public Member Functions | |
static new Boost | __fromPtr__ (IntPtr addr) |
static new Boost | create () |
static new Boost | load (string filepath, string nodeName) |
Loads and creates a serialized Boost from a file. | |
static new Boost | load (string filepath) |
Loads and creates a serialized Boost from a file. | |
![]() | |
static new DTrees | __fromPtr__ (IntPtr addr) |
static DTrees | create () |
Creates the empty model. | |
static DTrees | load (string filepath, string nodeName) |
Loads and creates a serialized DTrees from a file. | |
static DTrees | load (string filepath) |
Loads and creates a serialized DTrees from a file. | |
![]() | |
static new StatModel | __fromPtr__ (IntPtr addr) |
![]() | |
static Algorithm | __fromPtr__ (IntPtr addr) |
![]() | |
static IntPtr | ThrowIfNullIntPtr (IntPtr ptr) |
Static Public Attributes | |
const int | DISCRETE = 0 |
const int | REAL = 1 |
const int | LOGIT = 2 |
const int | GENTLE = 3 |
![]() | |
const int | PREDICT_AUTO = 0 |
const int | PREDICT_SUM = (1 << 8) |
const int | PREDICT_MAX_VOTE = (2 << 8) |
const int | PREDICT_MASK = (3 << 8) |
![]() | |
const int | UPDATE_MODEL = 1 |
const int | RAW_OUTPUT = 1 |
const int | COMPRESSED_INPUT = 2 |
const int | PREPROCESSED_INPUT = 4 |
Protected Member Functions | |
override void | Dispose (bool disposing) |
![]() | |
override void | Dispose (bool disposing) |
![]() | |
override void | Dispose (bool disposing) |
![]() | |
![]() | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
![]() | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
Boosted tree classifier derived from DTrees.
|
static |
|
static |
Creates the empty model. Use StatModel.train to train the model, Algorithm::load<Boost>(filename) to load the pre-trained model.
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
int OpenCVForUnity.MlModule.Boost.getBoostType | ( | ) |
int OpenCVForUnity.MlModule.Boost.getWeakCount | ( | ) |
double OpenCVForUnity.MlModule.Boost.getWeightTrimRate | ( | ) |
|
static |
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
filepath | path to serialized Boost |
nodeName | name of node containing the classifier |
|
static |
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
filepath | path to serialized Boost |
nodeName | name of node containing the classifier |
void OpenCVForUnity.MlModule.Boost.setBoostType | ( | int | val | ) |
void OpenCVForUnity.MlModule.Boost.setWeakCount | ( | int | val | ) |
void OpenCVForUnity.MlModule.Boost.setWeightTrimRate | ( | double | val | ) |
|
static |
|
static |
|
static |
|
static |