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
Type
Descriptor type used by the extracted samples.
public GPCDescType Type { get; }
Property Value
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
imagesFromIEnumerable<Mat>First images of the image pairs.
imagesToIEnumerable<Mat>Second images of the image pairs.
gtIEnumerable<Mat>Ground-truth flow for each image pair.
descriptorTypeGPCDescTypeType of descriptors to extract.