public void CalibrationByLine_Update(Guid id, PointF a, PointF b) { if (calibratorType != CalibratorType.Line || id != this.calibrationDrawingId) { return; } PointF aRectif = distortionHelper.Undistort(a); PointF bRectif = distortionHelper.Undistort(b); calibrationPlane.Update(aRectif, bRectif); AfterCalibrationChanged(); }
public void CalibrationByPlane_Update(QuadrilateralF quadImage) { QuadrilateralF undistorted = new QuadrilateralF( distortionHelper.Undistort(quadImage.A), distortionHelper.Undistort(quadImage.B), distortionHelper.Undistort(quadImage.C), distortionHelper.Undistort(quadImage.D)); calibrationPlane.Update(undistorted); AfterCalibrationChanged(); }