Class GPCTree
- Namespace
- OpenCvSharp.OptFlow
- Assembly
- OpenCvSharp.dll
Class for individual tree of the Global Patch Collider (GPC).
public class GPCTree : Algorithm, IDisposable
- Inheritance
-
GPCTree
- Implements
- Inherited Members
Methods
Create()
Creates an empty GPC tree.
public static GPCTree Create()
Returns
GetDescriptorType()
Descriptor type used by this tree, as set by the last call to Train(GPCTrainingSamples, GPCTrainingParams?).
public GPCDescType GetDescriptorType()
Returns
Train(GPCTrainingSamples, GPCTrainingParams?)
Trains the tree using the given training samples.
public void Train(GPCTrainingSamples samples, GPCTrainingParams? trainingParams = null)
Parameters
samplesGPCTrainingSamplesTraining samples, e.g. obtained via Create(IEnumerable<Mat>, IEnumerable<Mat>, IEnumerable<Mat>, GPCDescType).
trainingParamsGPCTrainingParamsTraining parameters. Uses the native defaults when null.