public class Zhang99OptimizationJacobian
extends java.lang.Object
implements org.ddogleg.optimization.functions.FunctionNtoMxN<org.ejml.data.DMatrixRMaj>
Analytical Jacobian for optimizing calibration parameters.
NOTE: Accuracy is tested in a unit test using a numerical Jacobian. A very crude tolerance was required to make it pass. I think this implementation is correct, but hand computing the Jacobian is error prone. In practice it produces virtually the same final results as the numerical Jacobian.
| Constructor and Description |
|---|
Zhang99OptimizationJacobian(CalibParamPinholeRadial param,
java.util.List<CalibrationObservation> observationSets,
java.util.List<georegression.struct.point.Point2D_F64> grid)
Configurations the optimization function.
|
| Modifier and Type | Method and Description |
|---|---|
org.ejml.data.DMatrixRMaj |
declareMatrixMxN() |
int |
getNumOfInputsN() |
int |
getNumOfOutputsM() |
void |
process(double[] input,
org.ejml.data.DMatrixRMaj J) |
public Zhang99OptimizationJacobian(CalibParamPinholeRadial param, java.util.List<CalibrationObservation> observationSets, java.util.List<georegression.struct.point.Point2D_F64> grid)
grid - Location of points on the calibration grid. z=0public int getNumOfInputsN()
getNumOfInputsN in interface org.ddogleg.optimization.functions.FunctionInOutpublic int getNumOfOutputsM()
getNumOfOutputsM in interface org.ddogleg.optimization.functions.FunctionInOutpublic void process(double[] input,
org.ejml.data.DMatrixRMaj J)
process in interface org.ddogleg.optimization.functions.FunctionNtoMxN<org.ejml.data.DMatrixRMaj>public org.ejml.data.DMatrixRMaj declareMatrixMxN()
declareMatrixMxN in interface org.ddogleg.optimization.functions.FunctionNtoMxN<org.ejml.data.DMatrixRMaj>