Package com.irurueta.ar.sfm
Class EstimatedCamera
java.lang.Object
com.irurueta.ar.sfm.EstimatedCamera
- All Implemented Interfaces:
Serializable
Contains data of estimated camera.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.irurueta.geometry.PinholeCamera
Estimated camera.private com.irurueta.algebra.Matrix
Covariance of estimated camera.static final double
Default quality score value.private String
ID to identify this instance.private double
Quality score of estimated camera.private int
ID of view for which camera has been estimated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.irurueta.geometry.PinholeCamera
Gets estimated camera.com.irurueta.algebra.Matrix
Gets covariance of estimated camera.getId()
Gets id to identify this instance.double
Gets quality score of estimated camera.int
Gets id of view for which camera has been estimated.void
setCamera
(com.irurueta.geometry.PinholeCamera camera) Sets estimated camera.void
setCovariance
(com.irurueta.algebra.Matrix covariance) Sets covariance of estimated camera.void
Sets id to identify this instance.void
setQualityScore
(double qualityScore) Sets quality score of estimated camera.void
setViewId
(int viewId) Sets id of view for which camera has been estimated.
-
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 for which camera has been estimated. -
camera
private com.irurueta.geometry.PinholeCamera cameraEstimated camera. -
qualityScore
private double qualityScoreQuality score of estimated camera. The larger the value, the better the quality. This is used for robust estimators such as PROSAC or PROMedS. This value is typically obtained during camera estimation. -
covariance
private com.irurueta.algebra.Matrix covarianceCovariance of estimated camera. This can be computed during camera estimation.
-
-
Constructor Details
-
EstimatedCamera
public EstimatedCamera()
-
-
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 for which camera has been estimated.- Returns:
- id of view for which camera has been estimated.
-
setViewId
public void setViewId(int viewId) Sets id of view for which camera has been estimated.- Parameters:
viewId
- id of view for which camera has been estimated.
-
getCamera
public com.irurueta.geometry.PinholeCamera getCamera()Gets estimated camera.- Returns:
- estimated camera.
-
setCamera
public void setCamera(com.irurueta.geometry.PinholeCamera camera) Sets estimated camera.- Parameters:
camera
- estimated camera.
-
getQualityScore
public double getQualityScore()Gets quality score of estimated camera. 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 estimated camera.
-
setQualityScore
public void setQualityScore(double qualityScore) Sets quality score of estimated camera. 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 estimated camera.
-
getCovariance
public com.irurueta.algebra.Matrix getCovariance()Gets covariance of estimated camera. This can be computed during camera estimation.- Returns:
- covariance of estimated camera.
-
setCovariance
public void setCovariance(com.irurueta.algebra.Matrix covariance) Sets covariance of estimated camera. This can be computed during camera estimation.- Parameters:
covariance
- covariance of estimated camera.
-