Class cv::TermCriteria#

The class defining termination criteria for iterative algorithms. View details

Collaboration diagram for cv::TermCriteria:

cv::TermCriteria Node1 cv::TermCriteria   + TermCriteria() + TermCriteria() + TermCriteria() + isValid() Node2 int     Node2->Node1 +maxCount +type Node3 double     Node3->Node1 +epsilon

cv::TermCriteria Node1 cv::TermCriteria   + TermCriteria() + TermCriteria() + TermCriteria() + isValid() Node2 int     Node2->Node1 +maxCount +type Node3 double     Node3->Node1 +epsilon

Public Types#

enum Type {
    COUNT =1,
    MAX_ITER =COUNT,
    EPS =2
}

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

COUNT
Python: cv.TermCriteria_COUNT

the maximum number of iterations or elements to compute

MAX_ITER
Python: cv.TermCriteria_MAX_ITER

ditto

EPS
Python: cv.TermCriteria_EPS

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

Member Function Documentation#

isValid()#

bool cv::TermCriteria::isValid()

Here is the call graph for this function:

cv::TermCriteria::isValid Node1 cv::TermCriteria::isValid Node2 cvIsNaN Node1->Node2

cv::TermCriteria::isValid Node1 cv::TermCriteria::isValid Node2 cvIsNaN Node1->Node2

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: