OpenCV  2.4.13.3
Open Source Computer Vision
cv::ocl::OpticalFlowDual_TVL1_OCL Class Reference

#include <ocl.hpp>

Public Member Functions

 OpticalFlowDual_TVL1_OCL ()
 
void operator() (const oclMat &I0, const oclMat &I1, oclMat &flowx, oclMat &flowy)
 
void collectGarbage ()
 

Public Attributes

double tau
 
double lambda
 
double theta
 
int nscales
 
int warps
 
double epsilon
 
int iterations
 
bool useInitialFlow
 

Constructor & Destructor Documentation

§ OpticalFlowDual_TVL1_OCL()

cv::ocl::OpticalFlowDual_TVL1_OCL::OpticalFlowDual_TVL1_OCL ( )

Member Function Documentation

§ collectGarbage()

void cv::ocl::OpticalFlowDual_TVL1_OCL::collectGarbage ( )

§ operator()()

void cv::ocl::OpticalFlowDual_TVL1_OCL::operator() ( const oclMat I0,
const oclMat I1,
oclMat flowx,
oclMat flowy 
)

Member Data Documentation

§ epsilon

double cv::ocl::OpticalFlowDual_TVL1_OCL::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.

§ iterations

int cv::ocl::OpticalFlowDual_TVL1_OCL::iterations

Stopping criterion iterations number used in the numerical scheme.

§ lambda

double cv::ocl::OpticalFlowDual_TVL1_OCL::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.

§ nscales

int cv::ocl::OpticalFlowDual_TVL1_OCL::nscales

Number of scales used to create the pyramid of images.

§ tau

double cv::ocl::OpticalFlowDual_TVL1_OCL::tau

Time step of the numerical scheme.

§ theta

double cv::ocl::OpticalFlowDual_TVL1_OCL::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.

§ useInitialFlow

bool cv::ocl::OpticalFlowDual_TVL1_OCL::useInitialFlow

§ warps

int cv::ocl::OpticalFlowDual_TVL1_OCL::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.


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