Table of Contents

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

GPCTree

GetDescriptorType()

Descriptor type used by this tree, as set by the last call to Train(GPCTrainingSamples, GPCTrainingParams?).

public GPCDescType GetDescriptorType()

Returns

GPCDescType

Train(GPCTrainingSamples, GPCTrainingParams?)

Trains the tree using the given training samples.

public void Train(GPCTrainingSamples samples, GPCTrainingParams? trainingParams = null)

Parameters

samples GPCTrainingSamples

Training samples, e.g. obtained via Create(IEnumerable<Mat>, IEnumerable<Mat>, IEnumerable<Mat>, GPCDescType).

trainingParams GPCTrainingParams

Training parameters. Uses the native defaults when null.