OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Public Attributes | List of all members
OpenCVForUnity.CoreModule.TermCriteria Class Reference

Public Member Functions

 TermCriteria (int type, int maxCount, double epsilon)
 
 TermCriteria ()
 
 TermCriteria (double[] vals)
 
void set (double[] vals)
 
TermCriteria clone ()
 
override int GetHashCode ()
 
override bool Equals (Object obj)
 
override string ToString ()
 

Public Attributes

const int COUNT = 1
 
const int MAX_ITER = COUNT
 
const int EPS = 2
 
int type
 
int maxCount
 
double epsilon
 

Detailed Description

class CV_EXPORTS TermCriteria

// C++ code:

public:

enum

COUNT=1, //!< the maximum number of iterations or elements to compute

MAX_ITER=COUNT, //!< ditto

EPS=2 //!< the desired accuracy or change in parameters at which the iterative algorithm stops

};

//! default constructor

TermCriteria();

//! full constructor

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

//! conversion from CvTermCriteria

TermCriteria(const CvTermCriteria& criteria);

//! conversion to CvTermCriteria

operator CvTermCriteria() const;

int type; //!< the type of termination criteria: COUNT, EPS or COUNT + EPS

int maxCount; // the maximum number of iterations/elements

double epsilon; // the desired accuracy

};

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.

See also
org.opencv.core.TermCriteria

Constructor & Destructor Documentation

◆ TermCriteria() [1/3]

OpenCVForUnity.CoreModule.TermCriteria.TermCriteria ( int  type,
int  maxCount,
double  epsilon 
)

Termination criteria for iterative algorithms.

Parameters
typethe type of termination criteria: COUNT, EPS or COUNT + EPS.
maxCountthe maximum number of iterations/elements.
epsilonthe desired accuracy.

◆ TermCriteria() [2/3]

OpenCVForUnity.CoreModule.TermCriteria.TermCriteria ( )

Termination criteria for iterative algorithms.

◆ TermCriteria() [3/3]

OpenCVForUnity.CoreModule.TermCriteria.TermCriteria ( double []  vals)

Member Function Documentation

◆ clone()

TermCriteria OpenCVForUnity.CoreModule.TermCriteria.clone ( )

◆ Equals()

override bool OpenCVForUnity.CoreModule.TermCriteria.Equals ( Object  obj)

◆ GetHashCode()

override int OpenCVForUnity.CoreModule.TermCriteria.GetHashCode ( )

◆ set()

void OpenCVForUnity.CoreModule.TermCriteria.set ( double []  vals)

◆ ToString()

override string OpenCVForUnity.CoreModule.TermCriteria.ToString ( )

Member Data Documentation

◆ COUNT

const int OpenCVForUnity.CoreModule.TermCriteria.COUNT = 1

The maximum number of iterations or elements to compute

◆ EPS

const int OpenCVForUnity.CoreModule.TermCriteria.EPS = 2

The desired accuracy threshold or change in parameters at which the iterative algorithm is terminated.

◆ epsilon

double OpenCVForUnity.CoreModule.TermCriteria.epsilon

◆ MAX_ITER

const int OpenCVForUnity.CoreModule.TermCriteria.MAX_ITER = COUNT

The maximum number of iterations or elements to compute

◆ maxCount

int OpenCVForUnity.CoreModule.TermCriteria.maxCount

◆ type

int OpenCVForUnity.CoreModule.TermCriteria.type

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