OpenCV 2.4.2

org.opencv.core
Class TermCriteria

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

public class TermCriteria
extends java.lang.Object

Template class defining termination criteria for iterative algorithms.

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 or change in parameters at which the iterative algorithm stops
 double epsilon
           
static int MAX_ITER
          the maximum number of iterations or elements to compute
 int maxCount
           
 int type
           
 
Constructor Summary
TermCriteria()
          Termination criteria in iterative algorithms
TermCriteria(double[] vals)
           
TermCriteria(int type, int maxCount, double epsilon)
          Termination criteria in 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
finalize, 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 or change in parameters at which the iterative algorithm stops

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 in iterative algorithms


TermCriteria

public TermCriteria(double[] vals)

TermCriteria

public TermCriteria(int type,
                    int maxCount,
                    double epsilon)
Termination criteria in 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

Official OpenCV 2.4 Documentation