OpenCV  3.2.0-dev
Open Source Computer Vision
cv::TermCriteria Class Reference

The class defining termination criteria for iterative algorithms. More...

#include "types.hpp"

Collaboration diagram for cv::TermCriteria:

Public Types

enum  Type {
  COUNT =1,
  MAX_ITER =COUNT,
  EPS =2
}
 Criteria type, can be one of: COUNT, EPS or COUNT + EPS. More...
 

Public Member Functions

 TermCriteria ()
 default constructor More...
 
 TermCriteria (int type, int maxCount, double epsilon)
 

Public Attributes

double epsilon
 
int maxCount
 
int type
 the type of termination criteria: COUNT, EPS or COUNT + EPS More...
 

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:
kmeans.cpp.

Member Enumeration Documentation

Criteria type, can be one of: COUNT, EPS or COUNT + EPS.

Enumerator
COUNT 

the maximum number of iterations or elements to compute

MAX_ITER 

ditto

EPS 

the desired accuracy or change in parameters at which the iterative algorithm stops

Constructor & Destructor Documentation

cv::TermCriteria::TermCriteria ( )

default constructor

cv::TermCriteria::TermCriteria ( int  type,
int  maxCount,
double  epsilon 
)
Parameters
typeThe type of termination criteria, one of TermCriteria::Type
maxCountThe maximum number of iterations or elements to compute.
epsilonThe desired accuracy or change in parameters at which the iterative algorithm stops.

Member Data Documentation

double cv::TermCriteria::epsilon
int cv::TermCriteria::maxCount
int cv::TermCriteria::type

the type of termination criteria: COUNT, EPS or COUNT + EPS


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