OpenCV
4.1.0
Open Source Computer Vision
|
The class defining termination criteria for iterative algorithms. More...
#include <opencv2/core/types.hpp>
Public Types | |
enum | Type { COUNT =1, MAX_ITER =COUNT, EPS =2 } |
Public Member Functions | |
TermCriteria () | |
default constructor | |
TermCriteria (int type, int maxCount, double epsilon) | |
bool | isValid () const |
Public Attributes | |
double | epsilon |
the desired accuracy | |
int | maxCount |
the maximum number of iterations/elements | |
int | type |
the type of termination criteria: COUNT, EPS or COUNT + EPS | |
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.
cv::TermCriteria::TermCriteria | ( | ) |
default constructor
cv::TermCriteria::TermCriteria | ( | int | type, |
int | maxCount, | ||
double | epsilon | ||
) |
type | The type of termination criteria, one of TermCriteria::Type |
maxCount | The maximum number of iterations or elements to compute. |
epsilon | The desired accuracy or change in parameters at which the iterative algorithm stops. |
|
inline |
double cv::TermCriteria::epsilon |
the desired accuracy
int cv::TermCriteria::maxCount |
the maximum number of iterations/elements
int cv::TermCriteria::type |
the type of termination criteria: COUNT, EPS or COUNT + EPS