class cv::TermCriteria

Overview

The class defining termination criteria for iterative algorithms. Moreā€¦

#include <types.hpp>

class TermCriteria
{
public:
    // enums

    enum Type;

    // fields

    double epsilon;
    int maxCount;
    int type;

    // construction

    TermCriteria();

    TermCriteria(
        int type,
        int maxCount,
        double epsilon
        );
};

Detailed Documentation

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.

Fields

int type

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

Construction

TermCriteria()

default constructor

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.