public static class LMSolver.Callback extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Callback(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
compute(GpuMat param,
GpuMat err,
GpuMat J) |
boolean |
compute(Mat param,
Mat err,
Mat J)
computes error and Jacobian for the specified vector of parameters
|
boolean |
compute(UMat param,
UMat err,
UMat J) |
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, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public Callback(Pointer p)
Pointer.Pointer(Pointer)
.@Cast(value="bool") public boolean compute(@ByVal Mat param, @ByVal Mat err, @ByVal Mat J)
param
- the current vector of parameterserr
- output vector of errors: err_i = actual_f_i - ideal_f_iJ
- output Jacobian: J_ij = d(err_i)/d(param_j)
when J=noArray(), it means that it does not need to be computed. Dimensionality of error vector and param vector can be different. The callback should explicitly allocate (with "create" method) each output array (unless it's noArray()).
@Cast(value="bool") public boolean compute(@ByVal UMat param, @ByVal UMat err, @ByVal UMat J)
Copyright © 2020. All rights reserved.