Class ReconstructedPoint3D

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

public class ReconstructedPoint3D extends Object implements Serializable
Contains data of a reconstructed 3D point.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Color data of reconstructed point (i.e.
    private com.irurueta.algebra.Matrix
    Covariance of reconstructed point.
    static final double
    Default quality score value.
    private String
    ID to identify this instance.
    private boolean
    Indicates whether reconstructed point is an inlier or not.
    private com.irurueta.geometry.Point3D
    Coordinates of reconstructed 3D point.
    private double
    Quality score of sampled point.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets color data of reconstructed point (i.e.
    com.irurueta.algebra.Matrix
    Gets covariance of reconstructed point.
    Gets id to identify this instance.
    com.irurueta.geometry.Point3D
    Gets coordinates of reconstructed 3D point.
    double
    Gets quality score of sampled point.
    boolean
    Indicates whether reconstructed point is an inlier or not.
    void
    Sets color data of reconstructed point (i.e.
    void
    setCovariance(com.irurueta.algebra.Matrix covariance)
    Sets covariance of reconstructed point.
    void
    Sets id to identify this instance.
    void
    setInlier(boolean inlier)
    Specifies whether reconstructed point is an inlier or not.
    void
    setPoint(com.irurueta.geometry.Point3D point)
    Sets coordinates of reconstructed 3D point.
    void
    setQualityScore(double qualityScore)
    Sets quality score of sampled point.

    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.
    • point

      private com.irurueta.geometry.Point3D point
      Coordinates of reconstructed 3D point.
    • inlier

      private boolean inlier
      Indicates whether reconstructed point is an inlier or not.
    • qualityScore

      private double qualityScore
      Quality score of sampled point. 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.
    • covariance

      private com.irurueta.algebra.Matrix covariance
      Covariance of reconstructed point. This can be computed during point triangularization.
    • colorData

      private PointColorData colorData
      Color data of reconstructed point (i.e. RGB or YUV values), if available.
  • Constructor Details

    • ReconstructedPoint3D

      public ReconstructedPoint3D()
  • 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.
    • getPoint

      public com.irurueta.geometry.Point3D getPoint()
      Gets coordinates of reconstructed 3D point.
      Returns:
      coordinates of reconstructed 3D point.
    • setPoint

      public void setPoint(com.irurueta.geometry.Point3D point)
      Sets coordinates of reconstructed 3D point.
      Parameters:
      point - coordinates of reconstructed 3D point.
    • isInlier

      public boolean isInlier()
      Indicates whether reconstructed point is an inlier or not.
      Returns:
      true if reconstructed point is an inlier, false otherwise.
    • setInlier

      public void setInlier(boolean inlier)
      Specifies whether reconstructed point is an inlier or not.
      Parameters:
      inlier - true if reconstructed point is an inlier, false otherwise.
    • getQualityScore

      public double getQualityScore()
      Gets quality score of sampled point. 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 sampled point.
    • setQualityScore

      public void setQualityScore(double qualityScore)
      Sets quality score of sampled point. 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 sampled point.
    • getCovariance

      public com.irurueta.algebra.Matrix getCovariance()
      Gets covariance of reconstructed point. This is obtained from the algorithms determining points of interest or point correspondences. This might be null if covariance cannot be determined.
      Returns:
      covariance of reconstructed point.
    • setCovariance

      public void setCovariance(com.irurueta.algebra.Matrix covariance)
      Sets covariance of reconstructed point. This is obtained from the algorithms determining points of interest or point correspondences.
      Parameters:
      covariance - covariance of reconstructed point.
    • getColorData

      public PointColorData getColorData()
      Gets color data of reconstructed point (i.e. RGB or YUV values), if available.
      Returns:
      color data of reconstructed point or null.
    • setColorData

      public void setColorData(PointColorData colorData)
      Sets color data of reconstructed point (i.e. RGB or YUV values), if available.
      Parameters:
      colorData - color data of reconstructed point or null.