@Namespace(value="cv") @Properties(inherit=opencv_calib3d.class) public class LMSolver extends Algorithm
When needed, it calls user-provided callback.
Modifier and Type | Class and Description |
---|---|
static class |
LMSolver.Callback |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LMSolver(Algorithm pointer)
Downcast constructor.
|
LMSolver(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Algorithm |
asAlgorithm() |
static Algorithm |
asAlgorithm(LMSolver pointer) |
static LMSolver |
create(LMSolver.Callback cb,
int maxIters)
Creates Levenberg-Marquard solver
|
static LMSolver |
create(LMSolver.Callback cb,
int maxIters,
double eps) |
int |
getMaxIters()
Retrieves the current maximum number of iterations
|
int |
run(GpuMat param) |
int |
run(Mat param)
Runs Levenberg-Marquardt algorithm using the passed vector of parameters as the start point.
|
int |
run(UMat param) |
void |
setMaxIters(int maxIters)
Sets the maximum number of iterations
|
clear, empty, getDefaultName, getPointer, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public LMSolver(Pointer p)
Pointer(Pointer)
.public LMSolver(Algorithm pointer)
public Algorithm asAlgorithm()
asAlgorithm
in class Algorithm
@Namespace @Name(value="static_cast<cv::Algorithm*>") public static Algorithm asAlgorithm(LMSolver pointer)
public int run(@ByVal Mat param)
param
- initial/final vector of parameters.
Note that the dimensionality of parameter space is defined by the size of param vector, and the dimensionality of optimized criteria is defined by the size of err vector computed by the callback.
public void setMaxIters(int maxIters)
maxIters
- the number of iterationspublic int getMaxIters()
@opencv_core.Ptr public static LMSolver create(@opencv_core.Ptr LMSolver.Callback cb, int maxIters)
cb
- callbackmaxIters
- maximum number of iterations that can be further
modified using setMaxIters() method.@opencv_core.Ptr public static LMSolver create(@opencv_core.Ptr LMSolver.Callback cb, int maxIters, double eps)
Copyright © 2024. All rights reserved.