Table of Contents

Class GPCTrainingSamples

Namespace
OpenCvSharp.OptFlow
Assembly
OpenCvSharp.dll

Class encapsulating training samples for the Global Patch Collider (GPC).

public class GPCTrainingSamples : CvPtrObject, IDisposable
Inheritance
GPCTrainingSamples
Implements
Inherited Members

Properties

Size

Number of extracted training samples.

public int Size { get; }

Property Value

int

Type

Descriptor type used by the extracted samples.

public GPCDescType Type { get; }

Property Value

GPCDescType

Methods

Create(IEnumerable<Mat>, IEnumerable<Mat>, IEnumerable<Mat>, GPCDescType)

Extracts training samples from pairs of images and the corresponding ground-truth flow. Sizes of all the provided collections must be equal.

public static GPCTrainingSamples Create(IEnumerable<Mat> imagesFrom, IEnumerable<Mat> imagesTo, IEnumerable<Mat> gt, GPCDescType descriptorType = GPCDescType.DCT)

Parameters

imagesFrom IEnumerable<Mat>

First images of the image pairs.

imagesTo IEnumerable<Mat>

Second images of the image pairs.

gt IEnumerable<Mat>

Ground-truth flow for each image pair.

descriptorType GPCDescType

Type of descriptors to extract.

Returns

GPCTrainingSamples