Package com.irurueta.ar.sfm
Class ReconstructedPoint3D
java.lang.Object
com.irurueta.ar.sfm.ReconstructedPoint3D
- All Implemented Interfaces:
Serializable
Contains data of a reconstructed 3D point.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PointColorDataColor data of reconstructed point (i.e.private com.irurueta.algebra.MatrixCovariance of reconstructed point.static final doubleDefault quality score value.private StringID to identify this instance.private booleanIndicates whether reconstructed point is an inlier or not.private com.irurueta.geometry.Point3DCoordinates of reconstructed 3D point.private doubleQuality score of sampled point. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets color data of reconstructed point (i.e.com.irurueta.algebra.MatrixGets covariance of reconstructed point.getId()Gets id to identify this instance.com.irurueta.geometry.Point3DgetPoint()Gets coordinates of reconstructed 3D point.doubleGets quality score of sampled point.booleanisInlier()Indicates whether reconstructed point is an inlier or not.voidsetColorData(PointColorData colorData) Sets color data of reconstructed point (i.e.voidsetCovariance(com.irurueta.algebra.Matrix covariance) Sets covariance of reconstructed point.voidSets id to identify this instance.voidsetInlier(boolean inlier) Specifies whether reconstructed point is an inlier or not.voidsetPoint(com.irurueta.geometry.Point3D point) Sets coordinates of reconstructed 3D point.voidsetQualityScore(double qualityScore) Sets quality score of sampled point.
-
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. -
point
private com.irurueta.geometry.Point3D pointCoordinates of reconstructed 3D point. -
inlier
private boolean inlierIndicates whether reconstructed point is an inlier or not. -
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 point correspondences. -
covariance
private com.irurueta.algebra.Matrix covarianceCovariance of reconstructed point. This can be computed during point triangularization. -
colorData
Color data of reconstructed point (i.e. RGB or YUV values), if available.
-
-
Constructor Details
-
ReconstructedPoint3D
public ReconstructedPoint3D()
-
-
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.
-
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
Gets color data of reconstructed point (i.e. RGB or YUV values), if available.- Returns:
- color data of reconstructed point or null.
-
setColorData
Sets color data of reconstructed point (i.e. RGB or YUV values), if available.- Parameters:
colorData- color data of reconstructed point or null.
-