/* * (non-Javadoc) * * @see org.gvsig.raster.grid.filter.statistics.TailTrimFilter#post() */ public void post() { super.post(); // Cogemos el minimo y máximo para cada banda if (tailPercentList == null) { for (int i = 0; i < raster.getBandCount(); i++) { result[i][0] = sample[i][posInit + tailSize]; result[i][1] = sample[i][(posInit + nSamples) - tailSize]; } stats.setTailTrimValue(tailPercent, result); } if (tailPercentList == null) return; // Cogemos el minimo y máximo para cada banda for (int iValue = 0; iValue < tailSizeList.length; iValue++) { double[][] res = new double[raster.getBandCount()][2]; for (int i = 0; i < raster.getBandCount(); i++) { res[i][0] = sample[i][posInit + tailSizeList[iValue]]; res[i][1] = sample[i][(posInit + nSamples) - tailSizeList[iValue]]; } stats.setTailTrimValue(tailPercentList[iValue], res); } }
/* * (non-Javadoc) * * @see org.gvsig.raster.grid.filter.statistics.TailTrimFilter#pre() */ public void pre() { super.pre(); sample = new int[raster.getBandCount()][nSamples]; result = new double[raster.getBandCount()][2]; }