OpenCV 2.4.4

org.opencv.core
Class TermCriteria

java.lang.Object
  extended by org.opencv.core.TermCriteria

public class TermCriteria
extends java.lang.Object

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

Field Summary
static int COUNT
          The maximum number of iterations or elements to compute
static int EPS
          The desired accuracy threshold or change in parameters at which the iterative algorithm is terminated.
 double epsilon
           
static int MAX_ITER
          The maximum number of iterations or elements to compute
 int maxCount
           
 int type
           
 
Constructor Summary
TermCriteria()
          Termination criteria for iterative algorithms.
TermCriteria(double[] vals)
           
TermCriteria(int type, int maxCount, double epsilon)
          Termination criteria for iterative algorithms.
 
Method Summary
 TermCriteria clone()
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void set(double[] vals)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COUNT

public static final int COUNT
The maximum number of iterations or elements to compute

See Also:
Constant Field Values

EPS

public static final int EPS
The desired accuracy threshold or change in parameters at which the iterative algorithm is terminated.

See Also:
Constant Field Values

epsilon

public double epsilon

MAX_ITER

public static final int MAX_ITER
The maximum number of iterations or elements to compute

See Also:
Constant Field Values

maxCount

public int maxCount

type

public int type
Constructor Detail

TermCriteria

public TermCriteria()
Termination criteria for iterative algorithms.


TermCriteria

public TermCriteria(double[] vals)

TermCriteria

public TermCriteria(int type,
                    int maxCount,
                    double epsilon)
Termination criteria for iterative algorithms.

Parameters:
type - the type of termination criteria: COUNT, EPS or COUNT + EPS.
maxCount - the maximum number of iterations/elements.
epsilon - the desired accuracy.
Method Detail

clone

public TermCriteria clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

set

public void set(double[] vals)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

OpenCV 2.4.4 Documentation