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
Methods
Calc(InputArray, InputArray, InputOutputArray)
Calculates an optical flow.
public virtual void Calc(InputArray i0, InputArray i1, InputOutputArray flow)
Parameters
i0InputArrayfirst 8-bit single-channel input image.
i1InputArraysecond input image of the same size and the same type as prev.
flowInputOutputArraycomputed flow image that has the same size as prev and type CV_32FC2.
CollectGarbage()
Releases all inner buffers.
public virtual void CollectGarbage()