OpenCV for Unity  2.3.2
Enox Software / Please refer to OpenCV official document(http://docs.opencv.org/3.4.1/index.html) for the details of the argument of the method.
Public Member Functions | Public Attributes | List of all members
OpenCVForUnity.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

OpenCVForUnity.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.
OpenCVForUnity.TermCriteria.TermCriteria ( )

Termination criteria for iterative algorithms.

OpenCVForUnity.TermCriteria.TermCriteria ( double[]  vals)

Member Function Documentation

TermCriteria OpenCVForUnity.TermCriteria.clone ( )
override bool OpenCVForUnity.TermCriteria.Equals ( Object  obj)
override int OpenCVForUnity.TermCriteria.GetHashCode ( )
void OpenCVForUnity.TermCriteria.set ( double[]  vals)
override string OpenCVForUnity.TermCriteria.ToString ( )

Member Data Documentation

const int OpenCVForUnity.TermCriteria.COUNT = 1

The maximum number of iterations or elements to compute

const int OpenCVForUnity.TermCriteria.EPS = 2

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

double OpenCVForUnity.TermCriteria.epsilon
const int OpenCVForUnity.TermCriteria.MAX_ITER = COUNT

The maximum number of iterations or elements to compute

int OpenCVForUnity.TermCriteria.maxCount
int OpenCVForUnity.TermCriteria.type

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