boofcv.alg.geo.calibration
Class Zhang99OptimizationFunction
- java.lang.Object
-
- boofcv.alg.geo.calibration.Zhang99OptimizationFunction
-
- All Implemented Interfaces:
- FunctionNtoM
public class Zhang99OptimizationFunction extends java.lang.Object implements FunctionNtoM
Function for performing non-linear optimization on the Zhang99 calibration parameters.
-
-
Constructor Summary
Constructors Constructor and Description Zhang99OptimizationFunction(Zhang99ParamAll param, java.util.List<Point2D_F64> grid, java.util.List<CalibrationObservation> observations)Configurations the optimization function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetNumOfInputsN()Number of input elements.intgetNumOfOutputsM()Number of output elements.voidprocess(double[] input, double[] output)Processes the input to compute the values found in the output array.voidprocess(Zhang99ParamAll param, double[] residuals)
-
-
-
Constructor Detail
-
Zhang99OptimizationFunction
public Zhang99OptimizationFunction(Zhang99ParamAll param, java.util.List<Point2D_F64> grid, java.util.List<CalibrationObservation> observations)
Configurations the optimization function.- Parameters:
param- Storage for calibration parameters. Effectively specifies the number of target views and radial termsgrid- Location of points on the calibration grid. z=0observations- calibration point observation pixel coordinates
-
-
Method Detail
-
getNumOfInputsN
public int getNumOfInputsN()
Description copied from interface:FunctionNtoMNumber of input elements. Typically the parameters you are optimizing.- Specified by:
getNumOfInputsNin interfaceFunctionNtoM- Returns:
- number of input elements
-
getNumOfOutputsM
public int getNumOfOutputsM()
Description copied from interface:FunctionNtoMNumber of output elements. Typically the functions that are being optimized.- Specified by:
getNumOfOutputsMin interfaceFunctionNtoM- Returns:
- number of output elements
-
process
public void process(double[] input, double[] output)Description copied from interface:FunctionNtoMProcesses the input to compute the values found in the output array. The output's meaning depends on the application. For least-squares it is the residual error. SeeUnconstrainedLeastSquares.The user can modify the input parameters here and the optimizer must use those changes.
- Specified by:
processin interfaceFunctionNtoM- Parameters:
input- Parameters for input model.output- Storage for the output give the model.
-
process
public void process(Zhang99ParamAll param, double[] residuals)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG