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.
|
Base interface for sparse optical flow algorithms. More...
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] |
Base interface for sparse optical flow algorithms.
|
static |
void OpenCVForUnity.VideoModule.SparseOpticalFlow.calc | ( | Mat | prevImg, |
Mat | nextImg, | ||
Mat | prevPts, | ||
Mat | nextPts, | ||
Mat | status, | ||
Mat | err | ||
) |
Calculates a sparse optical flow.
prevImg | First input image. |
nextImg | Second input image of the same size and the same type as prevImg. |
prevPts | Vector of 2D points for which the flow needs to be found. |
nextPts | Output vector of 2D points containing the calculated new positions of input features in the second image. |
status | Output 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. |
err | Optional output vector that contains error response for each point (inverse confidence). |
void OpenCVForUnity.VideoModule.SparseOpticalFlow.calc | ( | Mat | prevImg, |
Mat | nextImg, | ||
Mat | prevPts, | ||
Mat | nextPts, | ||
Mat | status | ||
) |
Calculates a sparse optical flow.
prevImg | First input image. |
nextImg | Second input image of the same size and the same type as prevImg. |
prevPts | Vector of 2D points for which the flow needs to be found. |
nextPts | Output vector of 2D points containing the calculated new positions of input features in the second image. |
status | Output 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. |
err | Optional output vector that contains error response for each point (inverse confidence). |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
Reimplemented in OpenCVForUnity.VideoModule.SparsePyrLKOpticalFlow.