Package org.opencv.core
Class TermCriteria
- java.lang.Object
-
- org.opencv.core.TermCriteria
-
public class TermCriteria extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
COUNT
The maximum number of iterations or elements to computestatic 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 computeint
maxCount
int
type
-
Constructor Summary
Constructors Constructor Description TermCriteria()
Termination criteria for iterative algorithms.TermCriteria(double[] vals)
TermCriteria(int type, int maxCount, double epsilon)
Termination criteria for iterative algorithms.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermCriteria
clone()
boolean
equals(java.lang.Object obj)
int
hashCode()
void
set(double[] vals)
java.lang.String
toString()
-
-
-
Field Detail
-
COUNT
public static final int COUNT
The maximum number of iterations or elements to compute- See Also:
- Constant Field Values
-
MAX_ITER
public static final int MAX_ITER
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
-
type
public int type
-
maxCount
public int maxCount
-
epsilon
public double epsilon
-
-
Constructor Detail
-
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.
-
TermCriteria
public TermCriteria()
Termination criteria for iterative algorithms.
-
TermCriteria
public TermCriteria(double[] vals)
-
-
Method Detail
-
set
public void set(double[] vals)
-
clone
public TermCriteria clone()
- Overrides:
clone
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-