Package org.opencv.video
Class DualTVL1OpticalFlow
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.video.DenseOpticalFlow
- 
- org.opencv.video.DualTVL1OpticalFlow
 
 
 
- 
 public class DualTVL1OpticalFlow extends DenseOpticalFlow "Dual TV L1" Optical Flow Algorithm. The class implements the "Dual TV L1" optical flow algorithm described in CITE: Zach2007 and CITE: Javier2012 . Here are important members of the class that control the algorithm, which you can set after constructing the class instance:- member double tau Time step of the numerical scheme.
 - member double lambda Weight parameter for the data term, attachment parameter. This is the most relevant parameter, which determines the smoothness of the output. The smaller this parameter is, the smoother the solutions we obtain. It depends on the range of motions of the images, so its value should be adapted to each image sequence.
 - member double theta Weight parameter for (u - v)\^2, tightness parameter. It serves as a link between the attachment and the regularization terms. In theory, it should have a small value in order to maintain both parts in correspondence. The method is stable for a large range of values of this parameter.
 - member int nscales Number of scales used to create the pyramid of images.
 - member int warps Number of warpings per scale. Represents the number of times that I1(x+u0) and grad( I1(x+u0) ) are computed per scale. This is a parameter that assures the stability of the method. It also affects the running time, so it is a compromise between speed and accuracy.
 - member double epsilon Stopping criterion threshold used in the numerical scheme, which is a trade-off between precision and running time. A small value will yield more accurate solutions at the expense of a slower convergence.
 - member int iterations Stopping criterion iterations number used in the numerical scheme.
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedDualTVL1OpticalFlow(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DualTVL1OpticalFlow__fromPtr__(long addr)static DualTVL1OpticalFlowcreate()Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales, int warps)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales, int warps, double epsilon)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma, int medianFiltering)Creates instance of cv::DualTVL1OpticalFlowstatic DualTVL1OpticalFlowcreate(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma, int medianFiltering, boolean useInitialFlow)Creates instance of cv::DualTVL1OpticalFlowprotected voidfinalize()doublegetEpsilon()SEE: setEpsilondoublegetGamma()SEE: setGammaintgetInnerIterations()SEE: setInnerIterationsdoublegetLambda()SEE: setLambdaintgetMedianFiltering()SEE: setMedianFilteringintgetOuterIterations()SEE: setOuterIterationsintgetScalesNumber()SEE: setScalesNumberdoublegetScaleStep()SEE: setScaleStepdoublegetTau()SEE: setTaudoublegetTheta()SEE: setThetabooleangetUseInitialFlow()SEE: setUseInitialFlowintgetWarpingsNumber()SEE: setWarpingsNumbervoidsetEpsilon(double val)getEpsilon SEE: getEpsilonvoidsetGamma(double val)getGamma SEE: getGammavoidsetInnerIterations(int val)getInnerIterations SEE: getInnerIterationsvoidsetLambda(double val)getLambda SEE: getLambdavoidsetMedianFiltering(int val)getMedianFiltering SEE: getMedianFilteringvoidsetOuterIterations(int val)getOuterIterations SEE: getOuterIterationsvoidsetScalesNumber(int val)getScalesNumber SEE: getScalesNumbervoidsetScaleStep(double val)getScaleStep SEE: getScaleStepvoidsetTau(double val)getTau SEE: getTauvoidsetTheta(double val)getTheta SEE: getThetavoidsetUseInitialFlow(boolean val)getUseInitialFlow SEE: getUseInitialFlowvoidsetWarpingsNumber(int val)getWarpingsNumber SEE: getWarpingsNumber- 
Methods inherited from class org.opencv.video.DenseOpticalFlowcalc, collectGarbage
 - 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static DualTVL1OpticalFlow __fromPtr__(long addr) 
 - 
getTaupublic double getTau() SEE: setTau- Returns:
- automatically generated
 
 - 
setTaupublic void setTau(double val) getTau SEE: getTau- Parameters:
- val- automatically generated
 
 - 
getLambdapublic double getLambda() SEE: setLambda- Returns:
- automatically generated
 
 - 
setLambdapublic void setLambda(double val) getLambda SEE: getLambda- Parameters:
- val- automatically generated
 
 - 
getThetapublic double getTheta() SEE: setTheta- Returns:
- automatically generated
 
 - 
setThetapublic void setTheta(double val) getTheta SEE: getTheta- Parameters:
- val- automatically generated
 
 - 
getGammapublic double getGamma() SEE: setGamma- Returns:
- automatically generated
 
 - 
setGammapublic void setGamma(double val) getGamma SEE: getGamma- Parameters:
- val- automatically generated
 
 - 
getScalesNumberpublic int getScalesNumber() SEE: setScalesNumber- Returns:
- automatically generated
 
 - 
setScalesNumberpublic void setScalesNumber(int val) getScalesNumber SEE: getScalesNumber- Parameters:
- val- automatically generated
 
 - 
getWarpingsNumberpublic int getWarpingsNumber() SEE: setWarpingsNumber- Returns:
- automatically generated
 
 - 
setWarpingsNumberpublic void setWarpingsNumber(int val) getWarpingsNumber SEE: getWarpingsNumber- Parameters:
- val- automatically generated
 
 - 
getEpsilonpublic double getEpsilon() SEE: setEpsilon- Returns:
- automatically generated
 
 - 
setEpsilonpublic void setEpsilon(double val) getEpsilon SEE: getEpsilon- Parameters:
- val- automatically generated
 
 - 
getInnerIterationspublic int getInnerIterations() SEE: setInnerIterations- Returns:
- automatically generated
 
 - 
setInnerIterationspublic void setInnerIterations(int val) getInnerIterations SEE: getInnerIterations- Parameters:
- val- automatically generated
 
 - 
getOuterIterationspublic int getOuterIterations() SEE: setOuterIterations- Returns:
- automatically generated
 
 - 
setOuterIterationspublic void setOuterIterations(int val) getOuterIterations SEE: getOuterIterations- Parameters:
- val- automatically generated
 
 - 
getUseInitialFlowpublic boolean getUseInitialFlow() SEE: setUseInitialFlow- Returns:
- automatically generated
 
 - 
setUseInitialFlowpublic void setUseInitialFlow(boolean val) getUseInitialFlow SEE: getUseInitialFlow- Parameters:
- val- automatically generated
 
 - 
getScaleSteppublic double getScaleStep() SEE: setScaleStep- Returns:
- automatically generated
 
 - 
setScaleSteppublic void setScaleStep(double val) getScaleStep SEE: getScaleStep- Parameters:
- val- automatically generated
 
 - 
getMedianFilteringpublic int getMedianFiltering() SEE: setMedianFiltering- Returns:
- automatically generated
 
 - 
setMedianFilteringpublic void setMedianFiltering(int val) getMedianFiltering SEE: getMedianFiltering- Parameters:
- val- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma, int medianFiltering, boolean useInitialFlow) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- warps- automatically generated
- epsilon- automatically generated
- innnerIterations- automatically generated
- outerIterations- automatically generated
- scaleStep- automatically generated
- gamma- automatically generated
- medianFiltering- automatically generated
- useInitialFlow- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma, int medianFiltering) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- warps- automatically generated
- epsilon- automatically generated
- innnerIterations- automatically generated
- outerIterations- automatically generated
- scaleStep- automatically generated
- gamma- automatically generated
- medianFiltering- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- warps- automatically generated
- epsilon- automatically generated
- innnerIterations- automatically generated
- outerIterations- automatically generated
- scaleStep- automatically generated
- gamma- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- warps- automatically generated
- epsilon- automatically generated
- innnerIterations- automatically generated
- outerIterations- automatically generated
- scaleStep- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- warps- automatically generated
- epsilon- automatically generated
- innnerIterations- automatically generated
- outerIterations- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- warps- automatically generated
- epsilon- automatically generated
- innnerIterations- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales, int warps, double epsilon) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- warps- automatically generated
- epsilon- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales, int warps) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- warps- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta, int nscales) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- nscales- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda, double theta) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- theta- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau, double lambda) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- lambda- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create(double tau) Creates instance of cv::DualTVL1OpticalFlow- Parameters:
- tau- automatically generated
- Returns:
- automatically generated
 
 - 
createpublic static DualTVL1OpticalFlow create() Creates instance of cv::DualTVL1OpticalFlow- Returns:
- automatically generated
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- DenseOpticalFlow
- Throws:
- java.lang.Throwable
 
 
- 
 
-