Package boofcv.alg.geo.bundle
Class BundleAdjustmentProjectiveResidualFunction
java.lang.Object
boofcv.alg.geo.bundle.BundleAdjustmentProjectiveResidualFunction
- All Implemented Interfaces:
BundleAdjustmentSchur.FunctionResiduals<SceneStructureProjective>
,FunctionInOut
,FunctionNtoM
public class BundleAdjustmentProjectiveResidualFunction
extends Object
implements BundleAdjustmentSchur.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
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(SceneStructureProjective structure, SceneObservations observations) Specifies the scenes structure and observed feature locationsint
int
void
process
(double[] input, double[] output)
-
Constructor Details
-
BundleAdjustmentProjectiveResidualFunction
public BundleAdjustmentProjectiveResidualFunction()
-
-
Method Details
-
configure
Specifies the scenes structure and observed feature locations- Specified by:
configure
in interfaceBundleAdjustmentSchur.FunctionResiduals<SceneStructureProjective>
-
getNumOfInputsN
public int getNumOfInputsN()- Specified by:
getNumOfInputsN
in interfaceFunctionInOut
-
getNumOfOutputsM
public int getNumOfOutputsM()- Specified by:
getNumOfOutputsM
in interfaceFunctionInOut
-
process
public void process(double[] input, double[] output) - Specified by:
process
in interfaceFunctionNtoM
-