Class computing the optical flow for two images using Brox et al Optical Flow algorithm ([12]).
More...
#include "cudaoptflow.hpp"
Class computing the optical flow for two images using Brox et al Optical Flow algorithm ([12]).
Calculates a dense optical flow.
- Parameters
-
| I0 | first input image. |
| I1 | second input image of the same size and the same type as I0. |
| flow | computed flow image that has the same size as I0 and type CV_32FC2. |
| stream | Stream for the asynchronous version. |
| virtual void cv::Algorithm::clear |
( |
| ) |
|
|
inlinevirtualinherited |
| static Ptr<BroxOpticalFlow> cv::cuda::BroxOpticalFlow::create |
( |
double |
alpha = 0.197, |
|
|
double |
gamma = 50.0, |
|
|
double |
scale_factor = 0.8, |
|
|
int |
inner_iterations = 5, |
|
|
int |
outer_iterations = 150, |
|
|
int |
solver_iterations = 10 |
|
) |
| |
|
static |
| virtual bool cv::Algorithm::empty |
( |
| ) |
const |
|
inlinevirtualinherited |
| virtual String cv::Algorithm::getDefaultName |
( |
| ) |
const |
|
virtualinherited |
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
| virtual double cv::cuda::BroxOpticalFlow::getFlowSmoothness |
( |
| ) |
const |
|
pure virtual |
| virtual double cv::cuda::BroxOpticalFlow::getGradientConstancyImportance |
( |
| ) |
const |
|
pure virtual |
| virtual int cv::cuda::BroxOpticalFlow::getInnerIterations |
( |
| ) |
const |
|
pure virtual |
number of lagged non-linearity iterations (inner loop)
| virtual int cv::cuda::BroxOpticalFlow::getOuterIterations |
( |
| ) |
const |
|
pure virtual |
number of warping iterations (number of pyramid levels)
| virtual double cv::cuda::BroxOpticalFlow::getPyramidScaleFactor |
( |
| ) |
const |
|
pure virtual |
| virtual int cv::cuda::BroxOpticalFlow::getSolverIterations |
( |
| ) |
const |
|
pure virtual |
number of linear system solver iterations
template<typename _Tp >
| static Ptr<_Tp> cv::Algorithm::loadFromString |
( |
const String & |
strModel, |
|
|
const String & |
objname = String() |
|
) |
| |
|
inlinestaticinherited |
| virtual void cv::Algorithm::read |
( |
const FileNode & |
fn | ) |
|
|
inlinevirtualinherited |
template<typename _Tp >
| static Ptr<_Tp> cv::Algorithm::read |
( |
const FileNode & |
fn | ) |
|
|
inlinestaticinherited |
Reads algorithm from the file node.
This is static template method of Algorithm. It's usage is following (in the case of SVM):
Ptr<SVM> svm = Algorithm::read<SVM>(fsRead.root());
In order to make this method work, the derived class must overwrite Algorithm::read(const FileNode& fn) and also have static create() method without parameters (or with all the optional parameters)
References cv::Ptr< T >::empty().
| virtual void cv::Algorithm::save |
( |
const String & |
filename | ) |
const |
|
virtualinherited |
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
| virtual void cv::cuda::BroxOpticalFlow::setFlowSmoothness |
( |
double |
alpha | ) |
|
|
pure virtual |
| virtual void cv::cuda::BroxOpticalFlow::setGradientConstancyImportance |
( |
double |
gamma | ) |
|
|
pure virtual |
| virtual void cv::cuda::BroxOpticalFlow::setInnerIterations |
( |
int |
inner_iterations | ) |
|
|
pure virtual |
| virtual void cv::cuda::BroxOpticalFlow::setOuterIterations |
( |
int |
outer_iterations | ) |
|
|
pure virtual |
| virtual void cv::cuda::BroxOpticalFlow::setPyramidScaleFactor |
( |
double |
scale_factor | ) |
|
|
pure virtual |
| virtual void cv::cuda::BroxOpticalFlow::setSolverIterations |
( |
int |
solver_iterations | ) |
|
|
pure virtual |
| virtual void cv::Algorithm::write |
( |
FileStorage & |
fs | ) |
const |
|
inlinevirtualinherited |
| void cv::Algorithm::writeFormat |
( |
FileStorage & |
fs | ) |
const |
|
protectedinherited |
The documentation for this class was generated from the following file:
- cudaoptflow/include/opencv2/cudaoptflow.hpp