Class Sample2D

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

public class Sample2D extends Object implements Serializable
Contains data of a 2D point sample on a given view.
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.
    • viewId

      private int viewId
      ID of view where 2D point has been sampled.
    • point

      private com.irurueta.geometry.Point2D point
      2D sampled point coordinates.
    • reconstructedPoint

      private ReconstructedPoint3D reconstructedPoint
      3D reconstructed point.
    • 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 quality of points of interest.
    • covariance

      private com.irurueta.algebra.Matrix covariance
      Covariance of sampled points. This is obtained from the algorithms determining points of interest or point correspondences. If covariance cannot be determined, a typical value might be to consider 1 pixel accuracy. This might be null if covariance cannot be determined.
    • colorData

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

    • Sample2D

      public Sample2D()
  • 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 where 2D point has been sampled.
      Returns:
      id of view where 2D point has been sampled.
    • setViewId

      public void setViewId(int viewId)
      Sets id of view where 2D point has been sampled.
      Parameters:
      viewId - id of view where 2D point has been sampled.
    • getPoint

      public com.irurueta.geometry.Point2D getPoint()
      Gets 2D sampled point coordinates.
      Returns:
      2D sampled point coordinates.
    • setPoint

      public void setPoint(com.irurueta.geometry.Point2D point)
      Sets 2D sampled point coordinates.
      Parameters:
      point - 2D sampled point coordinates.
    • getReconstructedPoint

      public ReconstructedPoint3D getReconstructedPoint()
      Gets 3D reconstructed point.
      Returns:
      3D reconstructed point.
    • setReconstructedPoint

      public void setReconstructedPoint(ReconstructedPoint3D reconstructedPoint)
      Sets 3D reconstructed point.
      Parameters:
      reconstructedPoint - 3D reconstructed point.
    • 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 quality of points of interest.
      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 quality of points of interest.
      Parameters:
      qualityScore - quality score of sampled point.
    • getCovariance

      public com.irurueta.algebra.Matrix getCovariance()
      Gets covariance of sampled points. This is obtained from the algorithms determining points of interest or point correspondences. If covariance cannot be determined, a typical value might be to consider 1 pixel accuracy. This might be null if covariance cannot be determined.
      Returns:
      covariance of sampled points or null.
    • setCovariance

      public void setCovariance(com.irurueta.algebra.Matrix covariance)
      Sets covariance of sampled points. This is obtained from the algorithms determining points of interest or point correspondences. If covariance cannot be determined, a typical value might be to consider 1 pixel accuracy. This might be null if covariance cannot be determined.
      Parameters:
      covariance - covariance of sampled points.
    • getColorData

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

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