Table of Contents

Class DenseOpticalFlow

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Base class for dense optical flow algorithms

public abstract class DenseOpticalFlow : Algorithm, IDisposable
Inheritance
DenseOpticalFlow
Implements
Derived
Inherited Members

Constructors

DenseOpticalFlow(nint, nint, Action<nint>)

Constructor for the factory pattern (cv::Ptr<T>* + raw T*).

protected DenseOpticalFlow(nint smartPtr, nint rawPtr, Action<nint> release)

Parameters

smartPtr nint
rawPtr nint
release Action<nint>

Methods

Calc(InputArray, InputArray, InputOutputArray)

Calculates an optical flow.

public virtual void Calc(InputArray i0, InputArray i1, InputOutputArray flow)

Parameters

i0 InputArray

first 8-bit single-channel input image.

i1 InputArray

second input image of the same size and the same type as prev.

flow InputOutputArray

computed flow image that has the same size as prev and type CV_32FC2.

CollectGarbage()

Releases all inner buffers.

public virtual void CollectGarbage()