Class cv::TermCriteria#
The class defining termination criteria for iterative algorithms. View details
#include <opencv2/core/types.hpp>Collaboration diagram for cv::TermCriteria:
Public Types#
Detailed Description#
The class defining termination criteria for iterative algorithms.
You can initialize it by default constructor and then override any parameters, or the structure may be fully initialized using the advanced variant of the constructor.
- Examples
- samples/cpp/image_alignment.cpp, and samples/cpp/lkdemo.cpp.
Member Enumeration Documentation#
enum Type
|
the maximum number of iterations or elements to compute |
|
ditto |
|
the desired accuracy or change in parameters at which the iterative algorithm stops |
Constructor & Destructor Documentation#
TermCriteria()#
cv::TermCriteria::TermCriteria()
default constructor
TermCriteria()#
cv::TermCriteria::TermCriteria(
int maxCount,
double epsilon )
TermCriteria()#
cv::TermCriteria::TermCriteria(
int type,
int maxCount,
double epsilon )
Parameters
type— The type of termination criteria, one of TermCriteria::TypemaxCount— The maximum number of iterations or elements to compute.epsilon— The desired accuracy or change in parameters at which the iterative algorithm stops.
Member Function Documentation#
isValid()#
bool cv::TermCriteria::isValid()
Here is the call graph for this function:
Member Data Documentation#
epsilon#
double cv::TermCriteria::epsilon
the desired accuracy
maxCount#
int cv::TermCriteria::maxCount
the maximum number of iterations/elements
type#
int cv::TermCriteria::type
the type of termination criteria: COUNT, EPS or COUNT + EPS
Source file#
The documentation for this class was generated from the following file:
opencv2/core/types.hpp