Package com.irurueta.ar.sfm
Class Sample2D
java.lang.Object
com.irurueta.ar.sfm.Sample2D
- All Implemented Interfaces:
Serializable
Contains data of a 2D point sample on a given view.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PointColorData
Color data of sampled point (i.e.private com.irurueta.algebra.Matrix
Covariance of sampled points.static final double
Default quality score value.private String
ID to identify this instance.private com.irurueta.geometry.Point2D
2D sampled point coordinates.private double
Quality score of sampled point.private ReconstructedPoint3D
3D reconstructed point.private int
ID of view where 2D point has been sampled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets color data of sampled point (i.e.com.irurueta.algebra.Matrix
Gets covariance of sampled points.getId()
Gets id to identify this instance.com.irurueta.geometry.Point2D
getPoint()
Gets 2D sampled point coordinates.double
Gets quality score of sampled point.Gets 3D reconstructed point.int
Gets id of view where 2D point has been sampled.void
setColorData
(PointColorData colorData) Sets color data of sampled point (i.e.void
setCovariance
(com.irurueta.algebra.Matrix covariance) Sets covariance of sampled points.void
Sets id to identify this instance.void
setPoint
(com.irurueta.geometry.Point2D point) Sets 2D sampled point coordinates.void
setQualityScore
(double qualityScore) Sets quality score of sampled point.void
setReconstructedPoint
(ReconstructedPoint3D reconstructedPoint) Sets 3D reconstructed point.void
setViewId
(int viewId) Sets id of view where 2D point has been sampled.
-
Field Details
-
DEFAULT_QUALITY_SCORE
public static final double DEFAULT_QUALITY_SCOREDefault quality score value.- See Also:
-
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 viewIdID of view where 2D point has been sampled. -
point
private com.irurueta.geometry.Point2D point2D sampled point coordinates. -
reconstructedPoint
3D reconstructed point. -
qualityScore
private double qualityScoreQuality 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 covarianceCovariance 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
Color data of sampled point (i.e. RGB or YUV values), if available.
-
-
Constructor Details
-
Sample2D
public Sample2D()
-
-
Method Details
-
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
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
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 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
Gets color data of sampled point (i.e. RGB or YUV values), if available.- Returns:
- color data of sampled point or null.
-
setColorData
Sets color data of sampled point (i.e. RGB or YUV values), if available.- Parameters:
colorData
- color data of sampled point or null.
-