Train the planar object detector using the specific image
Namespace:
Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.0.1.0 (2.0.1.0)
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 (Declaration) |
|---|
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 ) |
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..::.LDetector
%
The keypoint detector to be used
- patchGenerator
- Type:
Emgu.CV..::.PatchGenerator
%
The patch generator to be used