@Namespace(value="cv") public static class opencv_calib3d.LMSolver extends opencv_core.Algorithm
When needed, it calls user-provided callback.
| Modifier and Type | Class and Description |
|---|---|
static class |
opencv_calib3d.LMSolver.Callback |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
LMSolver(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_calib3d.LMSolver |
create(opencv_calib3d.LMSolver.Callback cb,
int maxIters)
Creates Levenberg-Marquard solver
|
int |
getMaxIters()
Retrieves the current maximum number of iterations
|
int |
run(opencv_core.GpuMat param) |
int |
run(opencv_core.Mat param)
Runs Levenberg-Marquardt algorithm using the passed vector of parameters as the start point.
|
int |
run(opencv_core.UMat param) |
void |
setMaxIters(int maxIters)
Sets the maximum number of iterations
|
clear, empty, getDefaultName, position, read, save, save, write, write, writeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic LMSolver(Pointer p)
Pointer.Pointer(Pointer).public int run(@ByVal opencv_core.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 int run(@ByVal opencv_core.UMat param)
public int run(@ByVal opencv_core.GpuMat param)
public void setMaxIters(int maxIters)
maxIters - the number of iterationspublic int getMaxIters()
@opencv_core.Ptr public static opencv_calib3d.LMSolver create(@opencv_core.Ptr opencv_calib3d.LMSolver.Callback cb, int maxIters)
cb - callbackmaxIters - maximum number of iterations that can be further
modified using setMaxIters() method.Copyright © 2019. All rights reserved.