Revision 19116
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/enhancement/LinearEnhancementFilter.java | ||
---|---|---|
86 | 86 |
if (calculated) { |
87 | 87 |
if (removeEnds) { // Si est? activado eliminar extremos gastamos el 2? m?ximo/m?nimo |
88 | 88 |
if (raster.getDataType() == IBuffer.TYPE_BYTE) { |
89 |
minBandValue = stats.getSecondMinRGB().clone(); |
|
90 |
maxBandValue = stats.getSecondMaxRGB().clone(); |
|
89 |
minBandValue = (double[]) stats.getSecondMinRGB().clone();
|
|
90 |
maxBandValue = (double[]) stats.getSecondMaxRGB().clone();
|
|
91 | 91 |
} else { |
92 |
minBandValue = stats.getSecondMin().clone(); |
|
93 |
maxBandValue = stats.getSecondMax().clone(); |
|
92 |
minBandValue = (double[]) stats.getSecondMin().clone();
|
|
93 |
maxBandValue = (double[]) stats.getSecondMax().clone();
|
|
94 | 94 |
} |
95 | 95 |
} else { // Si no est? activado eliminar extremos |
96 | 96 |
if (raster.getDataType() == IBuffer.TYPE_BYTE) { |
97 |
minBandValue = stats.getMinRGB().clone(); |
|
98 |
maxBandValue = stats.getMaxRGB().clone(); |
|
97 |
minBandValue = (double[]) stats.getMinRGB().clone();
|
|
98 |
maxBandValue = (double[]) stats.getMaxRGB().clone();
|
|
99 | 99 |
} else { |
100 |
minBandValue = stats.getMin().clone(); |
|
101 |
maxBandValue = stats.getMax().clone(); |
|
100 |
minBandValue = (double[]) stats.getMin().clone();
|
|
101 |
maxBandValue = (double[]) stats.getMax().clone();
|
|
102 | 102 |
} |
103 | 103 |
} |
104 | 104 |
} else { |
Also available in: Unified diff