Class KnownBaselineTwoViewsSparseReconstructorConfiguration

All Implemented Interfaces:
Serializable

public class KnownBaselineTwoViewsSparseReconstructorConfiguration extends BaseTwoViewsSparseReconstructorConfiguration<KnownBaselineTwoViewsSparseReconstructorConfiguration> implements Serializable
Contains configuration for a two view sparse re-constructor assuming that the baseline (separation between cameras) is known.
See Also:
  • Field Details

    • DEFAULT_BASELINE

      public static final double DEFAULT_BASELINE
      Default camera baseline (expressed in a unit of distance such as meters). Methods such as DIAC or Essential assume that the camera baseline is 1.0, which yields a reconstruction up to scale, unless the real baseline is provided.
      See Also:
    • baseline

      private double baseline
      Camera baseline (expressed in a unit of distance such as meters). Contains the real separation between camera centers so that the real scale of cameras and reconstructed points can be retrieved.
  • Constructor Details

    • KnownBaselineTwoViewsSparseReconstructorConfiguration

      public KnownBaselineTwoViewsSparseReconstructorConfiguration()
  • Method Details

    • make

      Creates an instance of a two views sparse re-constructor configuration with known camera baseline.
      Returns:
      configuration instance.
    • getBaseline

      public double getBaseline()
      Gets camera baseline (expressed in a unit of distance such as meters). Contains the real separation between camera centers so that the real scale of cameras and reconstructed points can be retrieved.
      Returns:
      camera baseline.
    • setBaseline

      public KnownBaselineTwoViewsSparseReconstructorConfiguration setBaseline(double baseline)
      Sets camera baseline (expressed in a unit of distance such as meters). Contains the real separation between camera centers so that the real scale of cameras and reconstructed points can be retrieved.
      Parameters:
      baseline - camera baseline.
      Returns:
      this instance so that method can be easily chained.