Revision 2315 org.gvsig.raster/branches/org.gvsig.raster_dataaccess_refactoring/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/grid/filter/enhancement/LinearStretchEnhancementIntegerFilter.java
LinearStretchEnhancementIntegerFilter.java | ||
---|---|---|
33 | 33 |
public class LinearStretchEnhancementIntegerFilter extends LinearStretchEnhancementFilter { |
34 | 34 |
|
35 | 35 |
public void process(int col, int line) { |
36 |
for (int iBand = 0; iBand < numberOfBandsToProcess(); iBand++) { |
|
37 |
int p = raster.getElemInt(line, col, iBand); |
|
38 |
if (iBand < scaleOffsetList.length) |
|
39 |
processValue(p, scaleOffsetList[iBand], col, line, iBand); |
|
40 |
else |
|
41 |
rasterResult.setElem(line, col, iBand, (byte) p); |
|
36 |
for (int destinationBand = 0; destinationBand < renderBands.length; destinationBand++) { |
|
37 |
if(renderBands[destinationBand] >= 0) { |
|
38 |
int p = raster.getElemInt(line, col, destinationBand); |
|
39 |
if (destinationBand < scaleOffsetList.length) |
|
40 |
processValue(p, scaleOffsetList[destinationBand], col, line, destinationBand); |
|
41 |
else |
|
42 |
rasterResult.setElem(line, col, destinationBand, (byte) p); |
|
43 |
} |
|
42 | 44 |
} |
43 | 45 |
} |
44 | 46 |
|
Also available in: Unified diff