Table of Contents

Method Create

Namespace
OpenCvSharp.OptFlow
Assembly
OpenCvSharp.dll

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