OpenCV for Unity 2.6.4
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.
Loading...
Searching...
No Matches
OpenCVForUnity.MlModule.Boost Class Reference

Boosted tree classifier derived from DTrees. More...

Public Member Functions

int getBoostType ()
 
int getWeakCount ()
 
double getWeightTrimRate ()
 
void setBoostType (int val)
 
void setWeakCount (int val)
 
void setWeightTrimRate (double val)
 
- Public Member Functions inherited from OpenCVForUnity.MlModule.DTrees
int getCVFolds ()
 
int getMaxCategories ()
 
int getMaxDepth ()
 
int getMinSampleCount ()
 
Mat getPriors ()
 
float getRegressionAccuracy ()
 
bool getTruncatePrunedTree ()
 
bool getUse1SERule ()
 
bool getUseSurrogates ()
 
void setCVFolds (int val)
 
void setMaxCategories (int val)
 
void setMaxDepth (int val)
 
void setMinSampleCount (int val)
 
void setPriors (Mat val)
 
void setRegressionAccuracy (float val)
 
void setTruncatePrunedTree (bool val)
 
void setUse1SERule (bool val)
 
void setUseSurrogates (bool val)
 
- Public Member Functions inherited from OpenCVForUnity.MlModule.StatModel
float calcError (TrainData data, bool test, Mat resp)
 Computes error on the training or test dataset.
 
override bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
int getVarCount ()
 Returns the number of variables in training samples.
 
bool isClassifier ()
 Returns true if the model is classifier.
 
bool isTrained ()
 Returns true if the model is trained.
 
virtual float predict (Mat samples)
 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, Mat results, int flags)
 Predicts response(s) for the provided sample(s)
 
bool train (Mat samples, int layout, Mat responses)
 Trains the statistical model.
 
bool train (TrainData trainData)
 Trains the statistical model.
 
bool train (TrainData trainData, int flags)
 Trains the statistical model.
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new Boost __fromPtr__ (IntPtr addr)
 
static new Boost create ()
 
static new Boost load (string filepath)
 Loads and creates a serialized Boost from a file.
 
static new Boost load (string filepath, string nodeName)
 Loads and creates a serialized Boost from a file.
 
- Static Public Member Functions inherited from OpenCVForUnity.MlModule.DTrees
static new DTrees __fromPtr__ (IntPtr addr)
 
static DTrees create ()
 Creates the empty model.
 
static DTrees load (string filepath)
 Loads and creates a serialized DTrees from a file.
 
static DTrees load (string filepath, string nodeName)
 Loads and creates a serialized DTrees from a file.
 
- Static Public Member Functions inherited from OpenCVForUnity.MlModule.StatModel
static new StatModel __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Static Public Attributes

const int DISCRETE = 0
 
const int GENTLE = 3
 
const int LOGIT = 2
 
const int REAL = 1
 
- Static Public Attributes inherited from OpenCVForUnity.MlModule.DTrees
const int PREDICT_AUTO = 0
 
const int PREDICT_MASK = (3 << 8)
 
const int PREDICT_MAX_VOTE = (2 << 8)
 
const int PREDICT_SUM = (1 << 8)
 
- Static Public Attributes inherited from OpenCVForUnity.MlModule.StatModel
const int COMPRESSED_INPUT = 2
 
const int PREPROCESSED_INPUT = 4
 
const int RAW_OUTPUT = 1
 
const int UPDATE_MODEL = 1
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.MlModule.DTrees
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.MlModule.StatModel
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.MlModule.DTrees
- Package Functions inherited from OpenCVForUnity.MlModule.StatModel
- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Boosted tree classifier derived from DTrees.

See also
ml_intro_boost

Member Function Documentation

◆ __fromPtr__()

static new Boost OpenCVForUnity.MlModule.Boost.__fromPtr__ ( IntPtr addr)
static

◆ create()

static new Boost OpenCVForUnity.MlModule.Boost.create ( )
static

Creates the empty model. Use StatModel.train to train the model, Algorithm::load<Boost>(filename) to load the pre-trained model.

◆ Dispose()

override void OpenCVForUnity.MlModule.Boost.Dispose ( bool disposing)
protectedvirtual

◆ getBoostType()

int OpenCVForUnity.MlModule.Boost.getBoostType ( )
See also
setBoostType

◆ getWeakCount()

int OpenCVForUnity.MlModule.Boost.getWeakCount ( )
See also
setWeakCount

◆ getWeightTrimRate()

double OpenCVForUnity.MlModule.Boost.getWeightTrimRate ( )

◆ load() [1/2]

static new Boost OpenCVForUnity.MlModule.Boost.load ( string filepath)
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

Parameters
filepathpath to serialized Boost
nodeNamename of node containing the classifier

◆ load() [2/2]

static new Boost OpenCVForUnity.MlModule.Boost.load ( string filepath,
string nodeName )
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

Parameters
filepathpath to serialized Boost
nodeNamename of node containing the classifier

◆ setBoostType()

void OpenCVForUnity.MlModule.Boost.setBoostType ( int val)
See also
getBoostType

◆ setWeakCount()

void OpenCVForUnity.MlModule.Boost.setWeakCount ( int val)
See also
getWeakCount

◆ setWeightTrimRate()

void OpenCVForUnity.MlModule.Boost.setWeightTrimRate ( double val)

Member Data Documentation

◆ DISCRETE

const int OpenCVForUnity.MlModule.Boost.DISCRETE = 0
static

◆ GENTLE

const int OpenCVForUnity.MlModule.Boost.GENTLE = 3
static

◆ LOGIT

const int OpenCVForUnity.MlModule.Boost.LOGIT = 2
static

◆ REAL

const int OpenCVForUnity.MlModule.Boost.REAL = 1
static

The documentation for this class was generated from the following file: