Beispiel #1
0
        public int[,] CalcQualityMeasureOriginalSize(IQualityMeasure measure, int range)
        {
            var result = new int[_columns, _rows];

            for (var x = 0; x < _columns; x++)
            {
                for (var y = 0; y < _rows; y++)
                {
                    if (!_foreground[y][x])
                    {
                        continue;
                    }
                    var px = _border + x * _step;
                    var py = _border + y * _step;
                    result[x, y] = measure.CalculateInArea(px, py, range);
                }
            }

            return(result);
        }
Beispiel #2
0
        public int[,] CalcQualityMeasure(IQualityMeasure measure, int range)
        {
            var result = new int[_module.GetLength(0), _module.GetLength(1)];

            for (var y = 0; y < _rows; y++)
            {
                for (var x = 0; x < _columns; x++)
                {
                    if (!_foreground[y][x])
                    {
                        continue;
                    }
                    var px = _border + x * _step;
                    var py = _border + y * _step;
                    result[px, py] = measure.CalculateInArea(px, py, range);
                    FillAreaNearPixel(result, px, py, _step / 2);
                }
            }

            return(result);
        }