Class AlternatingCameraCalibratorTest

java.lang.Object
com.irurueta.ar.calibration.AlternatingCameraCalibratorTest
All Implemented Interfaces:
CameraCalibratorListener

class AlternatingCameraCalibratorTest extends Object implements CameraCalibratorListener
  • 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:
    • INHOM_3D_COORDS

      private static final int INHOM_3D_COORDS
      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:
    • ABSOLUTE_ERROR

      private static final double ABSOLUTE_ERROR
      See Also:
    • VERY_LARGE_ABSOLUTE_ERROR

      private static final double VERY_LARGE_ABSOLUTE_ERROR
      See Also:
    • ULTRA_LARGE_ABSOLUTE_ERROR

      private static final double ULTRA_LARGE_ABSOLUTE_ERROR
      See Also:
    • MIN_NUM_SAMPLES

      private static final int MIN_NUM_SAMPLES
      See Also:
    • MAX_NUM_SAMPLES

      private static final int MAX_NUM_SAMPLES
      See Also:
    • TIMES

      private static final int TIMES
      See Also:
    • STD_ERROR

      private static final double STD_ERROR
      See Also:
    • PERCENTAGE_OUTLIERS

      private static final int PERCENTAGE_OUTLIERS
      See Also:
    • MIN_DISTORTION_PARAM_VALUE

      private static final double MIN_DISTORTION_PARAM_VALUE
      See Also:
    • MAX_DISTORTION_PARAM_VALUE

      private static final double MAX_DISTORTION_PARAM_VALUE
      See Also:
    • REAL_IAC_THRESHOLD

      private static final double REAL_IAC_THRESHOLD
      See Also:
    • calibrateStart

      private int calibrateStart
    • calibrateEnd

      private int calibrateEnd
    • calibrateProgressChange

      private int calibrateProgressChange
    • intrinsicParametersEstimationStarts

      private int intrinsicParametersEstimationStarts
    • intrinsicParametersEstimationEnds

      private int intrinsicParametersEstimationEnds
    • radialDistortionEstimationStarts

      private int radialDistortionEstimationStarts
    • radialDistortionEstimationEnds

      private int radialDistortionEstimationEnds
  • Constructor Details

    • AlternatingCameraCalibratorTest

      AlternatingCameraCalibratorTest()
  • Method Details

    • testConstructor

      @Test void testConstructor()
    • testGetSetPattern

      @Test void testGetSetPattern() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetSamples

      @Test void testGetSetSamples() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetSamplesQualityScores

      @Test void testGetSetSamplesQualityScores() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetEstimateRadialDistortion

      @Test void testGetSetEstimateRadialDistortion() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetHomographyMethod

      @Test void testGetSetHomographyMethod() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetImageOfAbsoluteConicMethod

      @Test void testGetSetImageOfAbsoluteConicMethod() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testIsSetZeroSkewness

      @Test void testIsSetZeroSkewness() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testIsSetPrincipalPointAtOrigin

      @Test void testIsSetPrincipalPointAtOrigin() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testIsSetFocalDistanceAspectRatioKnown

      @Test void testIsSetFocalDistanceAspectRatioKnown() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetFocalDistanceAspectRatio

      @Test void testGetSetFocalDistanceAspectRatio() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetProgressDelta

      @Test void testGetSetProgressDelta() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetHomographyEstimatorThreshold

      @Test void testGetSetHomographyEstimatorThreshold() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetHomographyEstimatorConfidence

      @Test void testGetSetHomographyEstimatorConfidence() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetHomographyEstimatorMaxIterations

      @Test void testGetSetHomographyEstimatorMaxIterations() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetIACEstimatorThreshold

      @Test void testGetSetIACEstimatorThreshold() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetIACEstimatorConfidence

      @Test void testGetSetIACEstimatorConfidence() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetIACEstimatorMaxIterations

      @Test void testGetSetIACEstimatorMaxIterations() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetListener

      @Test void testGetSetListener() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetMaxIterations

      @Test void testGetSetMaxIterations() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetConvergenceThreshold

      @Test void testGetSetConvergenceThreshold() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetDistortionMethod

      @Test void testGetSetDistortionMethod() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetDistortionEstimatorThreshold

      @Test void testGetSetDistortionEstimatorThreshold() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetDistortionEstimatorConfidence

      @Test void testGetSetDistortionEstimatorConfidence() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testGetSetDistortionEstimatorMaxIterations

      @Test void testGetSetDistortionEstimatorMaxIterations() throws com.irurueta.geometry.estimators.LockedException
      Throws:
      com.irurueta.geometry.estimators.LockedException
    • testCalibrateCirclesPatternNoDistortion

      @Test void testCalibrateCirclesPatternNoDistortion() throws com.irurueta.geometry.estimators.LockedException, CalibrationException, com.irurueta.geometry.estimators.NotReadyException
      Throws:
      com.irurueta.geometry.estimators.LockedException
      CalibrationException
      com.irurueta.geometry.estimators.NotReadyException
    • testCalibrateQRPatternNoDistortion

      @Test void testCalibrateQRPatternNoDistortion() throws com.irurueta.geometry.estimators.LockedException, CalibrationException, com.irurueta.geometry.estimators.NotReadyException
      Throws:
      com.irurueta.geometry.estimators.LockedException
      CalibrationException
      com.irurueta.geometry.estimators.NotReadyException
    • testCalibrateCirclesPatternDistortion

      @Test void testCalibrateCirclesPatternDistortion() throws com.irurueta.geometry.estimators.LockedException, com.irurueta.geometry.estimators.NotReadyException, com.irurueta.geometry.NotSupportedException, DistortionException
      Throws:
      com.irurueta.geometry.estimators.LockedException
      com.irurueta.geometry.estimators.NotReadyException
      com.irurueta.geometry.NotSupportedException
      DistortionException
    • testCalibrateQRPatternDistortion

      @Test void testCalibrateQRPatternDistortion() throws com.irurueta.geometry.estimators.LockedException, CalibrationException, com.irurueta.geometry.estimators.NotReadyException, com.irurueta.geometry.NotSupportedException, DistortionException
      Throws:
      com.irurueta.geometry.estimators.LockedException
      CalibrationException
      com.irurueta.geometry.estimators.NotReadyException
      com.irurueta.geometry.NotSupportedException
      DistortionException
    • testCalibrateCirclesPatternDistortionAndOutliers

      @Test void testCalibrateCirclesPatternDistortionAndOutliers() throws com.irurueta.geometry.estimators.LockedException, com.irurueta.geometry.estimators.NotReadyException, com.irurueta.geometry.NotSupportedException, DistortionException
      Throws:
      com.irurueta.geometry.estimators.LockedException
      com.irurueta.geometry.estimators.NotReadyException
      com.irurueta.geometry.NotSupportedException
      DistortionException
    • testCalibrateQRPatternDistortionAndOutliers

      @Test void testCalibrateQRPatternDistortionAndOutliers() throws com.irurueta.geometry.estimators.LockedException, CalibrationException, com.irurueta.geometry.estimators.NotReadyException, com.irurueta.geometry.NotSupportedException, DistortionException
      Throws:
      com.irurueta.geometry.estimators.LockedException
      CalibrationException
      com.irurueta.geometry.estimators.NotReadyException
      com.irurueta.geometry.NotSupportedException
      DistortionException
    • testCalibrateMixedPatternDistortionAndOutliers

      @Test void testCalibrateMixedPatternDistortionAndOutliers() throws com.irurueta.geometry.estimators.LockedException, com.irurueta.geometry.estimators.NotReadyException, com.irurueta.geometry.NotSupportedException, DistortionException
      Throws:
      com.irurueta.geometry.estimators.LockedException
      com.irurueta.geometry.estimators.NotReadyException
      com.irurueta.geometry.NotSupportedException
      DistortionException
    • testCalibrateRealData

      @Test void testCalibrateRealData() throws com.irurueta.geometry.estimators.LockedException, CalibrationException, com.irurueta.geometry.estimators.NotReadyException
      Throws:
      com.irurueta.geometry.estimators.LockedException
      CalibrationException
      com.irurueta.geometry.estimators.NotReadyException
    • onCalibrateStart

      public void onCalibrateStart(CameraCalibrator calibrator)
      Specified by:
      onCalibrateStart in interface CameraCalibratorListener
    • onCalibrateEnd

      public void onCalibrateEnd(CameraCalibrator calibrator)
      Specified by:
      onCalibrateEnd in interface CameraCalibratorListener
    • onCalibrateProgressChange

      public void onCalibrateProgressChange(CameraCalibrator calibrator, float progress)
      Specified by:
      onCalibrateProgressChange in interface CameraCalibratorListener
    • onIntrinsicParametersEstimationStarts

      public void onIntrinsicParametersEstimationStarts(CameraCalibrator calibrator)
      Specified by:
      onIntrinsicParametersEstimationStarts in interface CameraCalibratorListener
    • onIntrinsicParametersEstimationEnds

      public void onIntrinsicParametersEstimationEnds(CameraCalibrator calibrator, com.irurueta.geometry.PinholeCameraIntrinsicParameters intrinsicParameters)
      Specified by:
      onIntrinsicParametersEstimationEnds in interface CameraCalibratorListener
    • onRadialDistortionEstimationStarts

      public void onRadialDistortionEstimationStarts(CameraCalibrator calibrator)
      Specified by:
      onRadialDistortionEstimationStarts in interface CameraCalibratorListener
    • onRadialDistortionEstimationEnds

      public void onRadialDistortionEstimationEnds(CameraCalibrator calibrator, RadialDistortion distortion)
      Specified by:
      onRadialDistortionEstimationEnds in interface CameraCalibratorListener
    • reset

      private void reset()
    • checkLocked

      private void checkLocked(AlternatingCameraCalibrator calibrator)