CvBoostPredict Method (CvMat, CvMat, CvMat, NullableCvSlice, Boolean, Boolean) OpenCvSharp Class Library
Predicts response for the input sample

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public float Predict(
	CvMat sample,
	CvMat missing = null,
	CvMat weakResponses = null,
	Nullable<CvSlice> slice = null,
	bool rawMode = false,
	bool returnSum = false
)

Parameters

sample
Type: OpenCvSharpCvMat
The input sample.
missing (Optional)
Type: OpenCvSharpCvMat
The optional mask of missing measurements. To handle missing measurements, the weak classifiers must include surrogate splits.
weakResponses (Optional)
Type: OpenCvSharpCvMat
The optional output parameter, a floating-point vector, of responses from each individual weak classifier. The number of elements in the vector must be equal to the slice length.
slice (Optional)
Type: SystemNullableCvSlice
The continuous subset of the sequence of weak classifiers to be used for prediction. By default, all the weak classifiers are used.
rawMode (Optional)
Type: SystemBoolean
The last parameter is normally set to false that implies a regular input. If it is true, the method assumes that all the values of the discrete input variables have been already normalized to 0..<num_of_categoriesi>-1 ranges. (as the decision tree uses such normalized representation internally). It is useful for faster prediction with tree ensembles. For ordered input variables the flag is not used.
returnSum (Optional)
Type: SystemBoolean

[Missing <param name="returnSum"/> documentation for "M:OpenCvSharp.CPlusPlus.CvBoost.Predict(OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,System.Nullable{OpenCvSharp.CvSlice},System.Boolean,System.Boolean)"]

Return Value

Type: Single
the output class label based on the weighted voting.
See Also

Reference