BigDecimal value = signal.getSampleValue(i, j)
.bigDecimalValue().subtract(offset)
.multiply(boundWidth).divide(signalWidth,
MatrixSignal.SCALE, MatrixSignal.ROUNDING);
Point2D point = new Point2D(i, j);
result[i][j] = new BigDecimalSample2D(point,
new BigDecimalSampleValue(value));
}
}
return new BigDecimalMatrixSignal(result);