public ShortMatrixSignal getShortFromBigDec(BigDecimalMatrixSignal signal) {
ShortSample2D[][] samples = new ShortSample2D[signal.getSizeX()][signal
.getSizeY()];
for (int i = 0; i < signal.getSizeX(); i++) {
for (int j = 0; j < signal.getSizeY(); j++) {
Sample2D samp = signal.getPixel(i, j);
Point2D point = samp.getPoint();
samples[i][j] = new ShortSample2D(point, new ShortSampleValue(
samp.getValue().shortValue()));
}
}
return new ShortMatrixSignal(samples);
}