http://www.emgu.com
Train the planar object detector using the specific image

Namespace: Emgu.CV.Features2D
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
public void Train(
	Image<Gray, byte> image,
	int npoints,
	int patchSize,
	int nstructs,
	int structSize,
	int nviews,
	ref LDetector keyPointDetector,
	ref PatchGenerator patchGenerator
)
Visual Basic
Public Sub Train ( 
	image As Image(Of Gray, Byte),
	npoints As Integer,
	patchSize As Integer,
	nstructs As Integer,
	structSize As Integer,
	nviews As Integer,
	ByRef keyPointDetector As LDetector,
	ByRef patchGenerator As PatchGenerator
)
Visual C++
public:
void Train(
	Image<Gray, unsigned char>^ image, 
	int npoints, 
	int patchSize, 
	int nstructs, 
	int structSize, 
	int nviews, 
	LDetector% keyPointDetector, 
	PatchGenerator% patchGenerator
)
F#
member Train : 
        image : Image<Gray, byte> * 
        npoints : int * 
        patchSize : int * 
        nstructs : int * 
        structSize : int * 
        nviews : int * 
        keyPointDetector : LDetector byref * 
        patchGenerator : PatchGenerator byref -> unit 

Parameters

image
Type: Emgu.CV..::..Image<(Of <(<'Gray, Byte>)>)>
The training image
npoints
Type: System..::..Int32
Use 300 for default
patchSize
Type: System..::..Int32
Use 31 for default
nstructs
Type: System..::..Int32
Use 50 for default
structSize
Type: System..::..Int32
Use 9 for default
nviews
Type: System..::..Int32
Use 5000 for default
keyPointDetector
Type: Emgu.CV.Features2D..::..LDetector%
The keypoint detector to be used
patchGenerator
Type: Emgu.CV.Features2D..::..PatchGenerator%
The patch generator to be used

See Also