Example #1
0
 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));
            }
        }
Example #3
0
 public UndistortionFrameRender(CameraCalibrator calibrator)
 {
     mCalibrator = calibrator;
 }
Example #4
0
 public CalibrationFrameRender(CameraCalibrator calibrator)
 {
     mCalibrator = calibrator;
 }