Package org.opencv.video
Class DenseOpticalFlow
java.lang.Object
org.opencv.core.Algorithm
org.opencv.video.DenseOpticalFlow
- Direct Known Subclasses:
DISOpticalFlow
,FarnebackOpticalFlow
,VariationalRefinement
public class DenseOpticalFlow extends Algorithm
Base class for dense optical flow algorithms
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
DenseOpticalFlow(long addr)
-
Method Summary
Modifier and Type Method Description static DenseOpticalFlow
__fromPtr__(long addr)
void
calc(Mat I0, Mat I1, Mat flow)
Calculates an optical flow.void
collectGarbage()
Releases all inner buffers.protected void
finalize()
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
Method Details
-
__fromPtr__
-
calc
Calculates an optical flow.- Parameters:
I0
- first 8-bit single-channel input image.I1
- second input image of the same size and the same type as prev.flow
- computed flow image that has the same size as prev and type CV_32FC2.
-
collectGarbage
Releases all inner buffers. -
finalize
-