Beispiel #1
0
        private void FitLineRegression(double[] xs, double[] ys, out HTuple lineX1, out HTuple lineY1,
                                       out HTuple lineX2, out HTuple lineY2)
        {
            var lineResult = SimpleRegression.Fit(xs, ys);
            var bias       = lineResult.Item1;
            var weight     = lineResult.Item2;

            HalconScripts.ImageLineIntersections(weight, bias, _width, _height, out lineX1, out lineY1, out lineX2,
                                                 out lineY2);
        }