Class EstimatedFundamentalMatrix

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

public class EstimatedFundamentalMatrix extends Object implements Serializable
Contains data of estimated fundamental matrix.
See Also:
  • 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.
    • fundamentalMatrix

      private FundamentalMatrix fundamentalMatrix
      Estimated fundamental matrix.
    • qualityScore

      private double qualityScore
      Quality score of estimated fundamental matrix. The larger the value, the better the quality.
    • covariance

      private com.irurueta.algebra.Matrix covariance
      Covariance of estimated fundamental matrix. This can be computed during estimation.
    • viewId1

      private int viewId1
      ID of first view related by fundamental matrix.
    • viewId2

      private int viewId2
      ID of second view related by fundamental matrix.
    • inliers

      private BitSet inliers
      Indicates which samples used for fundamental matrix estimation where considered inliers.
    • leftSamples

      private List<Sample2D> leftSamples
      Left samples used for fundamental matrix estimation.
    • rightSamples

      private List<Sample2D> rightSamples
      Right samples used for fundamental matrix estimation.
  • Constructor Details

    • EstimatedFundamentalMatrix

      public EstimatedFundamentalMatrix()
  • 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.
    • getFundamentalMatrix

      public FundamentalMatrix getFundamentalMatrix()
      Gets estimated fundamental matrix.
      Returns:
      estimated fundamental matrix.
    • setFundamentalMatrix

      public void setFundamentalMatrix(FundamentalMatrix fundamentalMatrix)
      Sets estimated fundamental matrix.
      Parameters:
      fundamentalMatrix - estimated fundamental matrix.
    • getQualityScore

      public double getQualityScore()
      Gets quality score of estimated fundamental matrix. The larger the value, the better the quality.
      Returns:
      quality score of estimated fundamental matrix.
    • setQualityScore

      public void setQualityScore(double qualityScore)
      Sets quality score of estimated fundamental matrix. The larger the value, the better the quality.
      Parameters:
      qualityScore - quality score of estimated fundamental matrix.
    • getCovariance

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

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

      public int getViewId1()
      Gets id of first view related by fundamental matrix.
      Returns:
      id of first view related by fundamental matrix.
    • setViewId1

      public void setViewId1(int viewId1)
      Sets id of first view related by fundamental matrix.
      Parameters:
      viewId1 - id of first view related by fundamental matrix.
    • getViewId2

      public int getViewId2()
      Gets id of second view related by fundamental matrix.
      Returns:
      id of second view related by fundamental matrix.
    • setViewId2

      public void setViewId2(int viewId2)
      Sets id of second view related by fundamental matrix.
      Parameters:
      viewId2 - id of second view related by fundamental matrix.
    • getInliers

      public BitSet getInliers()
      Indicates which samples used for fundamental matrix estimation where considered inliers.
      Returns:
      which samples used for fundamental matrix estimation where considered inliers.
    • setInliers

      public void setInliers(BitSet inliers)
      Specifies which samples used for fundamental matrix estimation where considered inliers.
      Parameters:
      inliers - which samples used for fundamental matrix estimation where considered inliers.
    • getLeftSamples

      public List<Sample2D> getLeftSamples()
      Gets left samples used for fundamental matrix estimation.
      Returns:
      left samples used for fundamental matrix estimation.
    • setLeftSamples

      public void setLeftSamples(List<Sample2D> leftSamples)
      Sets left samples used for fundamental matrix estimation.
      Parameters:
      leftSamples - left samples used for fundamental matrix estimation.
    • getRightSamples

      public List<Sample2D> getRightSamples()
      Gets right samples used for fundamental matrix estimation.
      Returns:
      right samples used for fundamental matrix estimation.
    • setRightSamples

      public void setRightSamples(List<Sample2D> rightSamples)
      Sets right samples used for fundamental matrix estimation.
      Parameters:
      rightSamples - right samples used for fundamental matrix estimation.