public ComparisonFrameRender(CameraCalibrator calibrator, int width, int height, Resources resources) { mCalibrator = calibrator; mWidth = width; mHeight = height; mResources = resources; }
public void OnCameraViewStarted(int width, int height) { if (mWidth != width || mHeight != height) { mWidth = width; mHeight = height; mCalibrator = new CameraCalibrator(mWidth, mHeight); if (CalibrationResult.tryLoad(this, mCalibrator.getCameraMatrix(), mCalibrator.getDistortionCoefficients())) { mCalibrator.setCalibrated(); } mOnCameraFrameRender = new OnCameraFrameRender(new CalibrationFrameRender(mCalibrator)); } }
public UndistortionFrameRender(CameraCalibrator calibrator) { mCalibrator = calibrator; }
public CalibrationFrameRender(CameraCalibrator calibrator) { mCalibrator = calibrator; }