CvNormalBayesClassifierTrain Method (CvMat, CvMat, CvMat, CvMat, Boolean) OpenCvSharp Class Library
Trains the model

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

public virtual bool Train(
	CvMat trainData,
	CvMat responses,
	CvMat varIdx,
	CvMat sampleIdx,
	bool update = false
)

Parameters

trainData
Type: OpenCvSharpCvMat
Known samples (m*n)
responses
Type: OpenCvSharpCvMat
Classes for known samples (m*1)
varIdx
Type: OpenCvSharpCvMat

[Missing <param name="varIdx"/> documentation for "M:OpenCvSharp.CPlusPlus.CvNormalBayesClassifier.Train(OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,System.Boolean)"]

sampleIdx
Type: OpenCvSharpCvMat

[Missing <param name="sampleIdx"/> documentation for "M:OpenCvSharp.CPlusPlus.CvNormalBayesClassifier.Train(OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,System.Boolean)"]

update (Optional)
Type: SystemBoolean
Adds known samples to model(true) or makes a new one(false)

Return Value

Type: Boolean

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.CvNormalBayesClassifier.Train(OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,System.Boolean)"]

See Also

Reference