public class BundleAdjustmentProjectiveResidualFunction extends java.lang.Object implements BundleAdjustmentSchur_DSCC.FunctionResiduals<SceneStructureProjective>
Computes observations errors/residuals for projective bundle adjustment as implemented using
UnconstrainedLeastSquares. Parameterization is done using
the format in CodecSceneStructureProjective.
cost(P) = (1/(m*n))*∑i ∑j ||xj - (1/z)*Pi*Xj||2
SceneStructureProjective,
SceneObservations| Constructor and Description |
|---|
BundleAdjustmentProjectiveResidualFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(SceneStructureProjective structure,
SceneObservations observations)
Specifies the scenes structure and observed feature locations
|
int |
getNumOfInputsN() |
int |
getNumOfOutputsM() |
void |
process(double[] input,
double[] output) |
public BundleAdjustmentProjectiveResidualFunction()
public void configure(SceneStructureProjective structure, SceneObservations observations)
configure in interface BundleAdjustmentSchur_DSCC.FunctionResiduals<SceneStructureProjective>public int getNumOfInputsN()
getNumOfInputsN in interface org.ddogleg.optimization.functions.FunctionInOutpublic int getNumOfOutputsM()
getNumOfOutputsM in interface org.ddogleg.optimization.functions.FunctionInOutpublic void process(double[] input,
double[] output)
process in interface org.ddogleg.optimization.functions.FunctionNtoM