Revision 2311 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/LinearStretchEnhancementByteFilter.java
LinearStretchEnhancementByteFilter.java | ||
---|---|---|
34 | 34 |
|
35 | 35 |
public void process(int col, int line) { |
36 | 36 |
for (int iBand = 0; iBand < numberOfBandsToProcess(); iBand++) { |
37 |
if (renderBands[iBand] < 0) { |
|
38 |
rasterResult.setElem(line, col, iBand, (byte) 0); |
|
39 |
continue; |
|
40 |
} |
|
41 |
|
|
42 | 37 |
int p; |
43 | 38 |
if (stretchs.rgb) |
44 | 39 |
p = (int) (raster.getElemByte(line, col, iBand) & 0xff); |
Also available in: Unified diff