Class HomographyDecomposerTest
java.lang.Object
com.irurueta.ar.epipolar.estimators.HomographyDecomposerTest
- All Implemented Interfaces:
HomographyDecomposerListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final doubleprivate intprivate intprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final doubleprivate static final intprivate static final doubleprivate static final doubleprivate static final intprivate static final doubleprivate static final doubleprivate static final doubleprivate static final intprivate static final doubleprivate static final doubleprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanareEqualUpToScale(FundamentalMatrix fundamentalMatrix1, FundamentalMatrix fundamentalMatrix2) voidonDecomposeEnd(HomographyDecomposer decomposer, List<HomographyDecomposition> result) voidonDecomposeStart(HomographyDecomposer decomposer) private voidreset()(package private) void(package private) void(package private) void(package private) void(package private) void(package private) voidprivate static booleanvalidDecomposition(com.irurueta.geometry.ProjectiveTransformation2D homography, HomographyDecomposition decomposition, com.irurueta.geometry.PinholeCameraIntrinsicParameters intrinsic1, com.irurueta.geometry.PinholeCameraIntrinsicParameters intrinsic2)
-
Field Details
-
MIN_FOCAL_LENGTH
private static final double MIN_FOCAL_LENGTH- See Also:
-
MAX_FOCAL_LENGTH
private static final double MAX_FOCAL_LENGTH- See Also:
-
MIN_ANGLE_DEGREES
private static final double MIN_ANGLE_DEGREES- See Also:
-
MAX_ANGLE_DEGREES
private static final double MAX_ANGLE_DEGREES- See Also:
-
MIN_CAMERA_SEPARATION
private static final double MIN_CAMERA_SEPARATION- See Also:
-
MAX_CAMERA_SEPARATION
private static final double MAX_CAMERA_SEPARATION- See Also:
-
MIN_NUM_POINTS
private static final int MIN_NUM_POINTS- See Also:
-
MAX_NUM_POINTS
private static final int MAX_NUM_POINTS- See Also:
-
MIN_RANDOM_VALUE
private static final double MIN_RANDOM_VALUE- See Also:
-
MAX_RANDOM_VALUE
private static final double MAX_RANDOM_VALUE- See Also:
-
MIN_RANDOM_VALUE_PLANAR
private static final double MIN_RANDOM_VALUE_PLANAR- See Also:
-
MAX_RANDOM_VALUE_PLANAR
private static final double MAX_RANDOM_VALUE_PLANAR- See Also:
-
TIMES
private static final int TIMES- See Also:
-
MAX_TRIES
private static final int MAX_TRIES- See Also:
-
HOMOGRAPHY_ESTIMATOR_THRESHOLD
private static final double HOMOGRAPHY_ESTIMATOR_THRESHOLD- See Also:
-
ABSOLUTE_ERROR
private static final double ABSOLUTE_ERROR- See Also:
-
LARGE_ABSOLUTE_ERROR
private static final double LARGE_ABSOLUTE_ERROR- See Also:
-
decomposeStart
private int decomposeStart -
decomposeEnd
private int decomposeEnd
-
-
Constructor Details
-
HomographyDecomposerTest
HomographyDecomposerTest()
-
-
Method Details
-
testConstructor
@Test void testConstructor() -
testGetSetHomography
@Test void testGetSetHomography() throws com.irurueta.geometry.estimators.LockedException- Throws:
com.irurueta.geometry.estimators.LockedException
-
testGetSetLeftIntrinsics
@Test void testGetSetLeftIntrinsics() throws com.irurueta.geometry.estimators.LockedException- Throws:
com.irurueta.geometry.estimators.LockedException
-
testGetSetRightIntrinsics
@Test void testGetSetRightIntrinsics() throws com.irurueta.geometry.estimators.LockedException- Throws:
com.irurueta.geometry.estimators.LockedException
-
testGetSetListener
@Test void testGetSetListener() -
testDecompose
@Test void testDecompose() throws com.irurueta.algebra.AlgebraException, com.irurueta.geometry.GeometryException- Throws:
com.irurueta.algebra.AlgebraExceptioncom.irurueta.geometry.GeometryException
-
validDecomposition
private static boolean validDecomposition(com.irurueta.geometry.ProjectiveTransformation2D homography, HomographyDecomposition decomposition, com.irurueta.geometry.PinholeCameraIntrinsicParameters intrinsic1, com.irurueta.geometry.PinholeCameraIntrinsicParameters intrinsic2) throws com.irurueta.algebra.WrongSizeException - Throws:
com.irurueta.algebra.WrongSizeException
-
areEqualUpToScale
private static boolean areEqualUpToScale(FundamentalMatrix fundamentalMatrix1, FundamentalMatrix fundamentalMatrix2) throws com.irurueta.geometry.NotAvailableException, com.irurueta.geometry.estimators.NotReadyException - Throws:
com.irurueta.geometry.NotAvailableExceptioncom.irurueta.geometry.estimators.NotReadyException
-
reset
private void reset() -
onDecomposeStart
- Specified by:
onDecomposeStartin interfaceHomographyDecomposerListener
-
onDecomposeEnd
- Specified by:
onDecomposeEndin interfaceHomographyDecomposerListener
-