Class EstimatedCamera

java.lang.Object
com.irurueta.ar.sfm.EstimatedCamera
All Implemented Interfaces:
Serializable

public class EstimatedCamera extends Object implements Serializable
Contains data of estimated camera.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private com.irurueta.geometry.PinholeCamera
    Estimated camera.
    private com.irurueta.algebra.Matrix
    Covariance of estimated camera.
    static final double
    Default quality score value.
    private String
    ID to identify this instance.
    private double
    Quality score of estimated camera.
    private int
    ID of view for which camera has been estimated.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.irurueta.geometry.PinholeCamera
    Gets estimated camera.
    com.irurueta.algebra.Matrix
    Gets covariance of estimated camera.
    Gets id to identify this instance.
    double
    Gets quality score of estimated camera.
    int
    Gets id of view for which camera has been estimated.
    void
    setCamera(com.irurueta.geometry.PinholeCamera camera)
    Sets estimated camera.
    void
    setCovariance(com.irurueta.algebra.Matrix covariance)
    Sets covariance of estimated camera.
    void
    Sets id to identify this instance.
    void
    setQualityScore(double qualityScore)
    Sets quality score of estimated camera.
    void
    setViewId(int viewId)
    Sets id of view for which camera has been estimated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_QUALITY_SCORE

      public static final double DEFAULT_QUALITY_SCORE
      Default quality score value.
      See Also:
    • id

      private String id
      ID to identify this instance. This is useful in case that this data is stored in some sort of database and must be set externally.
    • viewId

      private int viewId
      ID of view for which camera has been estimated.
    • camera

      private com.irurueta.geometry.PinholeCamera camera
      Estimated camera.
    • qualityScore

      private double qualityScore
      Quality score of estimated camera. The larger the value, the better the quality. This is used for robust estimators such as PROSAC or PROMedS. This value is typically obtained during camera estimation.
    • covariance

      private com.irurueta.algebra.Matrix covariance
      Covariance of estimated camera. This can be computed during camera estimation.
  • Constructor Details

    • EstimatedCamera

      public EstimatedCamera()
  • Method Details

    • getId

      public String getId()
      Gets id to identify this instance. This is useful in case that this data is stored in some sort of database and must be set externally.
      Returns:
      id to identify this instance.
    • setId

      public void setId(String id)
      Sets id to identify this instance. This is useful in case that this data is stored in some sort of database and must be set externally.
      Parameters:
      id - id to identify this instance.
    • getViewId

      public int getViewId()
      Gets id of view for which camera has been estimated.
      Returns:
      id of view for which camera has been estimated.
    • setViewId

      public void setViewId(int viewId)
      Sets id of view for which camera has been estimated.
      Parameters:
      viewId - id of view for which camera has been estimated.
    • getCamera

      public com.irurueta.geometry.PinholeCamera getCamera()
      Gets estimated camera.
      Returns:
      estimated camera.
    • setCamera

      public void setCamera(com.irurueta.geometry.PinholeCamera camera)
      Sets estimated camera.
      Parameters:
      camera - estimated camera.
    • getQualityScore

      public double getQualityScore()
      Gets quality score of estimated camera. The larger the value, the better the quality. This is used for robust estimators such as PROSAC or PROMedS. This value is typically obtained from algorithms determining point correspondences.
      Returns:
      quality score of estimated camera.
    • setQualityScore

      public void setQualityScore(double qualityScore)
      Sets quality score of estimated camera. The larger the value, the better the quality. This is used for robust estimators such as PROSAC or PROMedS. This value is typically obtained from algorithms determining point correspondences.
      Parameters:
      qualityScore - quality score of estimated camera.
    • getCovariance

      public com.irurueta.algebra.Matrix getCovariance()
      Gets covariance of estimated camera. This can be computed during camera estimation.
      Returns:
      covariance of estimated camera.
    • setCovariance

      public void setCovariance(com.irurueta.algebra.Matrix covariance)
      Sets covariance of estimated camera. This can be computed during camera estimation.
      Parameters:
      covariance - covariance of estimated camera.