SparseOpticalFlowExtensionsCalc Method |
http://www.emgu.com
Calculates a sparse optical flow.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic static void Calc(
this ISparseOpticalFlow opticalFlow,
IInputArray prevImg,
IInputArray nextImg,
IInputArray prevPts,
IInputOutputArray nextPts,
IOutputArray status,
IOutputArray error = null
)
<ExtensionAttribute>
Public Shared Sub Calc (
opticalFlow As ISparseOpticalFlow,
prevImg As IInputArray,
nextImg As IInputArray,
prevPts As IInputArray,
nextPts As IInputOutputArray,
status As IOutputArray,
Optional error As IOutputArray = Nothing
)
public:
[ExtensionAttribute]
static void Calc(
ISparseOpticalFlow^ opticalFlow,
IInputArray^ prevImg,
IInputArray^ nextImg,
IInputArray^ prevPts,
IInputOutputArray^ nextPts,
IOutputArray^ status,
IOutputArray^ error = nullptr
)
[<ExtensionAttribute>]
static member Calc :
opticalFlow : ISparseOpticalFlow *
prevImg : IInputArray *
nextImg : IInputArray *
prevPts : IInputArray *
nextPts : IInputOutputArray *
status : IOutputArray *
?error : IOutputArray
(* Defaults:
let _error = defaultArg error null
*)
-> unit
Parameters
- opticalFlow
- Type: Emgu.CVISparseOpticalFlow
The sparse optical flow - prevImg
- Type: Emgu.CVIInputArray
First input image. - nextImg
- Type: Emgu.CVIInputArray
Second input image of the same size and the same type as prevImg. - prevPts
- Type: Emgu.CVIInputArray
Vector of 2D points for which the flow needs to be found. - nextPts
- Type: Emgu.CVIInputOutputArray
Output vector of 2D points containing the calculated new positions of input features in the second image. - status
- Type: Emgu.CVIOutputArray
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. - error (Optional)
- Type: Emgu.CVIOutputArray
Optional output vector that contains error response for each point (inverse confidence).
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISparseOpticalFlow. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also