public class BundleAdjustmentSchur_DSCC<Structure extends SceneStructure> extends java.lang.Object implements BundleAdjustment<Structure>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BundleAdjustmentSchur_DSCC.Codec<Structure extends SceneStructure> |
static interface |
BundleAdjustmentSchur_DSCC.FunctionResiduals<Structure extends SceneStructure> |
static interface |
BundleAdjustmentSchur_DSCC.Jacobian<Structure extends SceneStructure> |
| Constructor and Description |
|---|
BundleAdjustmentSchur_DSCC(org.ddogleg.optimization.UnconstrainedLeastSquaresSchur<org.ejml.data.DMatrixSparseCSC> minimizer,
BundleAdjustmentSchur_DSCC.FunctionResiduals<Structure> function,
BundleAdjustmentSchur_DSCC.Jacobian<Structure> jacobian,
BundleAdjustmentSchur_DSCC.Codec<Structure> codec) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(double ftol,
double gtol,
int maxIterations)
Configures optimization parameters.
|
double |
getFitScore()
Returns the fit score.
|
boolean |
isStopRequested() |
boolean |
optimize(Structure output)
Optimises the parameters contained in 'structure' to minimize the error in the 'observations'.
|
void |
requestStop() |
void |
setParameters(Structure structure,
SceneObservations observations)
Specifies the optimization parameters.
|
void |
setVerbose(java.io.PrintStream out,
int level)
If set to a non-null output then extra information will be printed to the specified stream.
|
public BundleAdjustmentSchur_DSCC(org.ddogleg.optimization.UnconstrainedLeastSquaresSchur<org.ejml.data.DMatrixSparseCSC> minimizer,
BundleAdjustmentSchur_DSCC.FunctionResiduals<Structure> function,
BundleAdjustmentSchur_DSCC.Jacobian<Structure> jacobian,
BundleAdjustmentSchur_DSCC.Codec<Structure> codec)
public void configure(double ftol,
double gtol,
int maxIterations)
BundleAdjustmentconfigure in interface BundleAdjustment<Structure extends SceneStructure>ftol - Relative threshold for change in function value between iterations. 0 ≤ ftol ≤ 1. Try 1e-12gtol - Absolute threshold for convergence based on the gradient's norm. 0 disables test. 0 ≤ gtol.
Try 1e-12maxIterations - Maximum number of iterations.public void setParameters(Structure structure, SceneObservations observations)
BundleAdjustmentsetParameters in interface BundleAdjustment<Structure extends SceneStructure>structure - Input: Initial parameters. Output: Optimized parametersobservations - Observation of features in each image.public boolean optimize(Structure output)
BundleAdjustmentoptimize in interface BundleAdjustment<Structure extends SceneStructure>output - Storage for optimized parameters. Can be the same structure passed into BundleAdjustment.setParameters(Structure, boofcv.abst.geo.bundle.SceneObservations).public double getFitScore()
BundleAdjustmentgetFitScore in interface BundleAdjustment<Structure extends SceneStructure>public void setVerbose(@Nullable
java.io.PrintStream out,
int level)
BundleAdjustmentsetVerbose in interface BundleAdjustment<Structure extends SceneStructure>out - Stream that is printed to. Set to null to disablelevel - (Future use) Parameter which can be used to specify level of verbose output. Set to zero for now.public void requestStop()
requestStop in interface org.ddogleg.struct.Stoppablepublic boolean isStopRequested()
isStopRequested in interface org.ddogleg.struct.Stoppable