Revision 19409 trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/statistics/TailTrimFloatFilter.java
TailTrimFloatFilter.java | ||
---|---|---|
92 | 92 |
|
93 | 93 |
//Cogemos el minimo y m?ximo para cada banda |
94 | 94 |
for (int iValue = 0; iValue < tailSizeList.length; iValue++) { |
95 |
double [][] res = new double[raster.getBandCount()][2]; |
|
95 | 96 |
for (int i = 0; i < raster.getBandCount(); i++) { |
96 |
result[i][0] = sampleDec[i][posInit + tailSizeList[iValue]];
|
|
97 |
result[i][1] = sampleDec[i][(posInit + nSamples) - tailSizeList[iValue]];
|
|
97 |
res[i][0] = sampleDec[i][posInit + tailSizeList[iValue]]; |
|
98 |
res[i][1] = sampleDec[i][(posInit + nSamples) - tailSizeList[iValue]]; |
|
98 | 99 |
} |
99 |
stats.setTailTrimValue(tailPercentList[iValue], result);
|
|
100 |
stats.setTailTrimValue(tailPercentList[iValue], res); |
|
100 | 101 |
} |
101 | 102 |
} |
102 | 103 |
} |
Also available in: Unified diff