@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_core.class) public class TermCriteria extends Pointer
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.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
COUNT
enum cv::TermCriteria::Type
|
static int |
EPS
enum cv::TermCriteria::Type
|
static int |
MAX_ITER
enum cv::TermCriteria::Type
|
Constructor and Description |
---|
TermCriteria()
default constructor
|
TermCriteria(int type,
int maxCount,
double epsilon) |
TermCriteria(long size)
Native array allocator.
|
TermCriteria(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
epsilon()
the desired accuracy
|
TermCriteria |
epsilon(double setter) |
boolean |
isValid() |
int |
maxCount()
the maximum number of iterations/elements
|
TermCriteria |
maxCount(int setter) |
TermCriteria |
position(long position) |
int |
type()
the type of termination criteria: COUNT, EPS or COUNT + EPS
|
TermCriteria |
type(int setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public static final int COUNT
public static final int MAX_ITER
public static final int EPS
public TermCriteria(Pointer p)
Pointer.Pointer(Pointer)
.public TermCriteria(long size)
Pointer.position(long)
.public TermCriteria()
public TermCriteria(int type, int maxCount, double epsilon)
type
- The type of termination criteria, one of TermCriteria::TypemaxCount
- The maximum number of iterations or elements to compute.epsilon
- The desired accuracy or change in parameters at which the iterative algorithm stops.public TermCriteria position(long position)
public int type()
public TermCriteria type(int setter)
public int maxCount()
public TermCriteria maxCount(int setter)
public double epsilon()
public TermCriteria epsilon(double setter)
Copyright © 2020. All rights reserved.