Package com.irurueta.ar.sfm
Class EstimatedFundamentalMatrix
java.lang.Object
com.irurueta.ar.sfm.EstimatedFundamentalMatrix
- All Implemented Interfaces:
Serializable
Contains data of estimated fundamental matrix.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.irurueta.algebra.Matrix
Covariance of estimated fundamental matrix.static final double
Default quality score value.private FundamentalMatrix
Estimated fundamental matrix.private String
ID to identify this instance.private BitSet
Indicates which samples used for fundamental matrix estimation where considered inliers.Left samples used for fundamental matrix estimation.private double
Quality score of estimated fundamental matrix.Right samples used for fundamental matrix estimation.private int
ID of first view related by fundamental matrix.private int
ID of second view related by fundamental matrix. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.irurueta.algebra.Matrix
Gets covariance of estimated fundamental matrix.Gets estimated fundamental matrix.getId()
Gets id to identify this instance.Indicates which samples used for fundamental matrix estimation where considered inliers.Gets left samples used for fundamental matrix estimation.double
Gets quality score of estimated fundamental matrix.Gets right samples used for fundamental matrix estimation.int
Gets id of first view related by fundamental matrix.int
Gets id of second view related by fundamental matrix.void
setCovariance
(com.irurueta.algebra.Matrix covariance) Sets covariance of estimated fundamental matrix.void
setFundamentalMatrix
(FundamentalMatrix fundamentalMatrix) Sets estimated fundamental matrix.void
Sets id to identify this instance.void
setInliers
(BitSet inliers) Specifies which samples used for fundamental matrix estimation where considered inliers.void
setLeftSamples
(List<Sample2D> leftSamples) Sets left samples used for fundamental matrix estimation.void
setQualityScore
(double qualityScore) Sets quality score of estimated fundamental matrix.void
setRightSamples
(List<Sample2D> rightSamples) Sets right samples used for fundamental matrix estimation.void
setViewId1
(int viewId1) Sets id of first view related by fundamental matrix.void
setViewId2
(int viewId2) Sets id of second view related by fundamental matrix.
-
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. -
fundamentalMatrix
Estimated fundamental matrix. -
qualityScore
private double qualityScoreQuality score of estimated fundamental matrix. The larger the value, the better the quality. -
covariance
private com.irurueta.algebra.Matrix covarianceCovariance of estimated fundamental matrix. This can be computed during estimation. -
viewId1
private int viewId1ID of first view related by fundamental matrix. -
viewId2
private int viewId2ID of second view related by fundamental matrix. -
inliers
Indicates which samples used for fundamental matrix estimation where considered inliers. -
leftSamples
Left samples used for fundamental matrix estimation. -
rightSamples
Right samples used for fundamental matrix estimation.
-
-
Constructor Details
-
EstimatedFundamentalMatrix
public EstimatedFundamentalMatrix()
-
-
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.
-
getFundamentalMatrix
Gets estimated fundamental matrix.- Returns:
- estimated fundamental matrix.
-
setFundamentalMatrix
Sets estimated fundamental matrix.- Parameters:
fundamentalMatrix
- estimated fundamental matrix.
-
getQualityScore
public double getQualityScore()Gets quality score of estimated fundamental matrix. The larger the value, the better the quality.- Returns:
- quality score of estimated fundamental matrix.
-
setQualityScore
public void setQualityScore(double qualityScore) Sets quality score of estimated fundamental matrix. The larger the value, the better the quality.- Parameters:
qualityScore
- quality score of estimated fundamental matrix.
-
getCovariance
public com.irurueta.algebra.Matrix getCovariance()Gets covariance of estimated fundamental matrix. This can be computed during estimation.- Returns:
- covariance of estimated fundamental matrix.
-
setCovariance
public void setCovariance(com.irurueta.algebra.Matrix covariance) Sets covariance of estimated fundamental matrix. This can be computed during estimation.- Parameters:
covariance
- covariance of estimated fundamental matrix.
-
getViewId1
public int getViewId1()Gets id of first view related by fundamental matrix.- Returns:
- id of first view related by fundamental matrix.
-
setViewId1
public void setViewId1(int viewId1) Sets id of first view related by fundamental matrix.- Parameters:
viewId1
- id of first view related by fundamental matrix.
-
getViewId2
public int getViewId2()Gets id of second view related by fundamental matrix.- Returns:
- id of second view related by fundamental matrix.
-
setViewId2
public void setViewId2(int viewId2) Sets id of second view related by fundamental matrix.- Parameters:
viewId2
- id of second view related by fundamental matrix.
-
getInliers
Indicates which samples used for fundamental matrix estimation where considered inliers.- Returns:
- which samples used for fundamental matrix estimation where considered inliers.
-
setInliers
Specifies which samples used for fundamental matrix estimation where considered inliers.- Parameters:
inliers
- which samples used for fundamental matrix estimation where considered inliers.
-
getLeftSamples
Gets left samples used for fundamental matrix estimation.- Returns:
- left samples used for fundamental matrix estimation.
-
setLeftSamples
Sets left samples used for fundamental matrix estimation.- Parameters:
leftSamples
- left samples used for fundamental matrix estimation.
-
getRightSamples
Gets right samples used for fundamental matrix estimation.- Returns:
- right samples used for fundamental matrix estimation.
-
setRightSamples
Sets right samples used for fundamental matrix estimation.- Parameters:
rightSamples
- right samples used for fundamental matrix estimation.
-