Interface BundleAdjustment<Structure extends SceneStructure>

  • All Superinterfaces:
    org.ddogleg.struct.Stoppable
    All Known Implementing Classes:
    BundleAdjustmentSchur, BundleAdjustmentSchur_DDRM, BundleAdjustmentSchur_DSCC

    public interface BundleAdjustment<Structure extends SceneStructure>
    extends org.ddogleg.struct.Stoppable
    High level interface for bundle adjustment. Bundle adjustment is the process of optimizing in batch parameters for the scene's structure, camera pose, and intrinsic camera parameters.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.ddogleg.struct.Stoppable

        org.ddogleg.struct.Stoppable.Stopped
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void configure​(double ftol, double gtol, int maxIterations)
      Configures optimization parameters.
      double getFitScore()
      Returns the fit score.
      boolean optimize​(Structure output)
      Optimises the parameters contained in 'structure' to minimize the error in the 'observations'.
      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.
      • Methods inherited from interface org.ddogleg.struct.Stoppable

        isStopRequested, requestStop
    • Method Detail

      • configure

        void configure​(double ftol,
                       double gtol,
                       int maxIterations)
        Configures optimization parameters. meaning of all of these parameters is implementation dependent. They might even be ignored.
        Parameters:
        ftol - Relative threshold for change in function value between iterations. 0 ≤ ftol ≤ 1. Try 1e-12
        gtol - Absolute threshold for convergence based on the gradient's norm. 0 disables test. 0 ≤ gtol. Try 1e-12
        maxIterations - Maximum number of iterations.
      • setParameters

        void setParameters​(Structure structure,
                           SceneObservations observations)
        Specifies the optimization parameters. After this the initial fit score will return a valid value.
        Parameters:
        structure - Input: Initial parameters. Output: Optimized parameters
        observations - Observation of features in each image.
      • optimize

        boolean optimize​(Structure output)
        Optimises the parameters contained in 'structure' to minimize the error in the 'observations'. This function call will block until complete. Output is written back into 'structure'
        Parameters:
        output - Storage for optimized parameters. Can be the same structure passed into setParameters(Structure, boofcv.abst.geo.bundle.SceneObservations).
        Returns:
        true If the cost function has been improved. If the data is perfect to start with this will return false since it has not improved
      • getFitScore

        double getFitScore()
        Returns the fit score. Meaning is implementation specific.
        Returns:
        score
      • setVerbose

        void setVerbose​(@Nullable
                        java.io.PrintStream out,
                        int level)
        If set to a non-null output then extra information will be printed to the specified stream.
        Parameters:
        out - Stream that is printed to. Set to null to disable
        level - (Future use) Parameter which can be used to specify level of verbose output. Set to zero for now.