Пример #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));
            }
        }
Пример #3
0
 public UndistortionFrameRender(CameraCalibrator calibrator)
 {
     mCalibrator = calibrator;
 }
Пример #4
0
 public CalibrationFrameRender(CameraCalibrator calibrator)
 {
     mCalibrator = calibrator;
 }