CvSVMTrain Method (CvMat, CvMat, CvMat, CvMat, CvSVMParams) OpenCvSharp Class Library
Trains SVM

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 = null,
	CvMat sampleIdx = null,
	CvSVMParams param = null
)

Parameters

trainData
Type: OpenCvSharpCvMat

[Missing <param name="trainData"/> documentation for "M:OpenCvSharp.CPlusPlus.CvSVM.Train(OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CPlusPlus.CvSVMParams)"]

responses
Type: OpenCvSharpCvMat

[Missing <param name="responses"/> documentation for "M:OpenCvSharp.CPlusPlus.CvSVM.Train(OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CPlusPlus.CvSVMParams)"]

varIdx (Optional)
Type: OpenCvSharpCvMat

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

sampleIdx (Optional)
Type: OpenCvSharpCvMat

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

param (Optional)
Type: OpenCvSharp.CPlusPlusCvSVMParams

[Missing <param name="param"/> documentation for "M:OpenCvSharp.CPlusPlus.CvSVM.Train(OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CPlusPlus.CvSVMParams)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.CvSVM.Train(OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CvMat,OpenCvSharp.CPlusPlus.CvSVMParams)"]

See Also

Reference