CvNormalBayesClassifierTrain Method (Mat, Mat, Mat, Mat, 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(
	Mat trainData,
	Mat responses,
	Mat varIdx,
	Mat sampleIdx,
	bool update = false
)

Parameters

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

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

sampleIdx
Type: OpenCvSharp.CPlusPlusMat

[Missing <param name="sampleIdx"/> documentation for "M:OpenCvSharp.CPlusPlus.CvNormalBayesClassifier.Train(OpenCvSharp.CPlusPlus.Mat,OpenCvSharp.CPlusPlus.Mat,OpenCvSharp.CPlusPlus.Mat,OpenCvSharp.CPlusPlus.Mat,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.CPlusPlus.Mat,OpenCvSharp.CPlusPlus.Mat,OpenCvSharp.CPlusPlus.Mat,OpenCvSharp.CPlusPlus.Mat,System.Boolean)"]

See Also

Reference