public HandCalibratedModifierStrategy(CaptureConfig captureConfig, Point target) : base(captureConfig, target) { _regressorPair = new LinearRegressorFactory().GetHandMeasured320x240(); // calibration was done in 320x240. If capture settings different need to scale the calibration decimal xDiffScale = captureConfig.Resolution.Width / 320m; decimal yDiffScale = captureConfig.Resolution.Height / 240m; Scale = new PointD(xDiffScale, yDiffScale); }
public HandCalibratedModifierStrategy(CaptureConfig captureConfig, Point target) : base(captureConfig, target) { _regressorPair = new LinearRegressorFactory().GetHandMeasured320x240(); // calibration was done in 320x240. If capture settings different need to scale the calibration decimal xDiffScale = captureConfig.Resolution.Width / 320m; decimal yDiffScale = captureConfig.Resolution.Height / 240m; Scale = new PointD(xDiffScale, yDiffScale); }