OpenCV for Unity  2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.VideoModule.SparseOpticalFlow Class Reference

Base interface for sparse optical flow algorithms. More...

Inheritance diagram for OpenCVForUnity.VideoModule.SparseOpticalFlow:
OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject OpenCVForUnity.VideoModule.SparsePyrLKOpticalFlow

Public Member Functions

void calc (Mat prevImg, Mat nextImg, Mat prevPts, Mat nextPts, Mat status, Mat err)
 Calculates a sparse optical flow. More...
 
void calc (Mat prevImg, Mat nextImg, Mat prevPts, Mat nextPts, Mat status)
 Calculates a sparse optical flow. More...
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
void save (string filename)
 
virtual string getDefaultName ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new SparseOpticalFlow __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Base interface for sparse optical flow algorithms.

Member Function Documentation

◆ __fromPtr__()

static new SparseOpticalFlow OpenCVForUnity.VideoModule.SparseOpticalFlow.__fromPtr__ ( IntPtr  addr)
static

◆ calc() [1/2]

void OpenCVForUnity.VideoModule.SparseOpticalFlow.calc ( Mat  prevImg,
Mat  nextImg,
Mat  prevPts,
Mat  nextPts,
Mat  status,
Mat  err 
)

Calculates a sparse optical flow.

Parameters
prevImgFirst input image.
nextImgSecond input image of the same size and the same type as prevImg.
prevPtsVector of 2D points for which the flow needs to be found.
nextPtsOutput vector of 2D points containing the calculated new positions of input features in the second image.
statusOutput status vector. Each element of the vector is set to 1 if the flow for the corresponding features has been found. Otherwise, it is set to 0.
errOptional output vector that contains error response for each point (inverse confidence).

◆ calc() [2/2]

void OpenCVForUnity.VideoModule.SparseOpticalFlow.calc ( Mat  prevImg,
Mat  nextImg,
Mat  prevPts,
Mat  nextPts,
Mat  status 
)

Calculates a sparse optical flow.

Parameters
prevImgFirst input image.
nextImgSecond input image of the same size and the same type as prevImg.
prevPtsVector of 2D points for which the flow needs to be found.
nextPtsOutput vector of 2D points containing the calculated new positions of input features in the second image.
statusOutput status vector. Each element of the vector is set to 1 if the flow for the corresponding features has been found. Otherwise, it is set to 0.
errOptional output vector that contains error response for each point (inverse confidence).

◆ Dispose()

override void OpenCVForUnity.VideoModule.SparseOpticalFlow.Dispose ( bool  disposing)
protectedvirtual

The documentation for this class was generated from the following file: