Package com.irurueta.ar.sfm
Class MatchedSamples
java.lang.Object
com.irurueta.ar.sfm.MatchedSamples
- All Implemented Interfaces:
Serializable
Contains data relating matched 2D points and their reconstructions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EstimatedCamera[]
Cameras associated to the views of each of the matched points.static final double
Default quality score value.private BitSet
Indicates whether match between a pair of views has been considered an inlier or not.private double
Quality score of a match.private ReconstructedPoint3D
3D reconstructed point.private Sample2D[]
2D matched samples on different views.private int[]
ID's of views where matched points belong to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets cameras associated to the views of each of the matched points.Indicates whether match between a pair of views has been considered an inlier or not.double
Gets quality score of match.Gets 3D reconstructed point.Sample2D[]
Gets 2D matched samples on different views containing matched points.int[]
Gets id's of views where matched points belong to.void
setCameras
(EstimatedCamera[] cameras) Sets cameras associated to the views of each of the matched points.void
setInliers
(BitSet inliers) Specifies whether match between a pair of views has been considered an inlier or not.void
setQualityScore
(double qualityScore) Sets quality score of match.void
setReconstructedPoint
(ReconstructedPoint3D reconstructedPoint) Sets 3D reconstructed point.void
setSamples
(Sample2D[] samples) Sets 2D matched samples on different views containing matched points.void
setViewIds
(int[] viewIds) Sets id's of views where matched points belong to.
-
Field Details
-
DEFAULT_QUALITY_SCORE
public static final double DEFAULT_QUALITY_SCOREDefault quality score value.- See Also:
-
samples
2D matched samples on different views. Each of these points correspond to projections of the same 3D point into different views. -
cameras
Cameras associated to the views of each of the matched points. -
viewIds
private int[] viewIdsID's of views where matched points belong to. -
reconstructedPoint
3D reconstructed point. Initially, might not be available -
qualityScore
private double qualityScoreQuality score of a match. -
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
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
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
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
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
Gets 3D reconstructed point.- Returns:
- 3D reconstructed point.
-
setReconstructedPoint
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
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
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.
-