Class MatchedSamples

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

public class MatchedSamples extends Object implements Serializable
Contains data relating matched 2D points and their reconstructions.
See Also:
  • Field Details

    • DEFAULT_QUALITY_SCORE

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

      private Sample2D[] samples
      2D matched samples on different views. Each of these points correspond to projections of the same 3D point into different views.
    • cameras

      private EstimatedCamera[] cameras
      Cameras associated to the views of each of the matched points.
    • viewIds

      private int[] viewIds
      ID's of views where matched points belong to.
    • reconstructedPoint

      private ReconstructedPoint3D reconstructedPoint
      3D reconstructed point. Initially, might not be available
    • qualityScore

      private double qualityScore
      Quality score of a match.
    • inliers

      private BitSet inliers
      Indicates whether match between a pair of views has been considered an inlier or not. Position 0 of this bitset corresponds to viewIds in positions 0 and 1, position 1 of bitset corresponds to viewIds in positions 1 and 2, and so on.
  • Constructor Details

    • MatchedSamples

      public MatchedSamples()
  • Method Details

    • getSamples

      public Sample2D[] getSamples()
      Gets 2D matched samples on different views containing matched points. Each of these points correspond to projections of the same 3D point into different views.
      Returns:
      2D matched samples on different views.
    • setSamples

      public void setSamples(Sample2D[] samples)
      Sets 2D matched samples on different views containing matched points. Each of these points correspond to projections of the same 3D point into different views.
      Parameters:
      samples - 2D matched samples on different views.
    • getCameras

      public EstimatedCamera[] getCameras()
      Gets cameras associated to the views of each of the matched points.
      Returns:
      cameras associated to the views of each of the matched points.
    • setCameras

      public void setCameras(EstimatedCamera[] cameras)
      Sets cameras associated to the views of each of the matched points.
      Parameters:
      cameras - cameras associated to the views of each of the matched points.
    • getViewIds

      public int[] getViewIds()
      Gets id's of views where matched points belong to.
      Returns:
      id's of view where matched points belong to.
    • setViewIds

      public void setViewIds(int[] viewIds)
      Sets id's of views where matched points belong to.
      Parameters:
      viewIds - id's of views where matched points belong to.
    • 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 match. 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 scores for matches.
      Returns:
      quality score of match.
    • setQualityScore

      public void setQualityScore(double qualityScore)
      Sets quality score of match. 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 scores for matches.
      Parameters:
      qualityScore - quality score of match.
    • getInliers

      public BitSet getInliers()
      Indicates whether match between a pair of views has been considered an inlier or not. Position 0 of this bitset corresponds to viewIds in positions 0 and 1, position 1 of bitset corresponds to viewIds in positions 1 and 2, and so on.
      Returns:
      indicates whether match between a pair of views has been considered an inlier or not.
    • setInliers

      public void setInliers(BitSet inliers)
      Specifies whether match between a pair of views has been considered an inlier or not. Position 0 of this bitset corresponds to viewIds in positions 0 and 1, position 1 of bitset corresponds to viewIds in positions 1 and 2, and so on.
      Parameters:
      inliers - set indicating whether a match between a pair of views has been considered an inlier or not.