Struct TermCriteria
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
The class defining termination criteria for iterative algorithms.
public readonly record struct TermCriteria : IEquatable<TermCriteria>
- Implements
- Inherited Members
Constructors
TermCriteria(CriteriaTypes, int, double)
The class defining termination criteria for iterative algorithms.
public TermCriteria(CriteriaTypes Type, int MaxCount, double Epsilon)
Parameters
TypeCriteriaTypesMaxCountintEpsilondouble
Fields
Epsilon
the desired accuracy
public readonly double Epsilon
Field Value
MaxCount
the maximum number of iterations/elements
public readonly int MaxCount
Field Value
Type
the type of termination criteria: COUNT, EPS or COUNT + EPS
public readonly CriteriaTypes Type
Field Value
Methods
Both(int, double)
full constructor with both type (count | epsilon)
public static TermCriteria Both(int maxCount, double epsilon)