Table of Contents

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

Type CriteriaTypes
MaxCount int
Epsilon double

Fields

Epsilon

the desired accuracy

public readonly double Epsilon

Field Value

double

MaxCount

the maximum number of iterations/elements

public readonly int MaxCount

Field Value

int

Type

the type of termination criteria: COUNT, EPS or COUNT + EPS

public readonly CriteriaTypes Type

Field Value

CriteriaTypes

Methods

Both(int, double)

full constructor with both type (count | epsilon)

public static TermCriteria Both(int maxCount, double epsilon)

Parameters

maxCount int
epsilon double

Returns

TermCriteria