Revision 33221 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/properties/panels/GeneralPanel.java
GeneralPanel.java | ||
---|---|---|
46 | 46 |
import org.gvsig.raster.IProcessActions; |
47 | 47 |
import org.gvsig.raster.RasterLibrary; |
48 | 48 |
import org.gvsig.raster.RasterProcess; |
49 |
import org.gvsig.raster.dataset.IBuffer; |
|
49 | 50 |
import org.gvsig.raster.dataset.properties.DatasetListStatistics; |
50 | 51 |
import org.gvsig.raster.dataset.serializer.RmfSerializerException; |
51 | 52 |
import org.gvsig.raster.grid.GridTransparency; |
... | ... | |
495 | 496 |
} |
496 | 497 |
|
497 | 498 |
if (statistics.isCalculated()) { |
498 |
double[] maxRGB = statistics.getMaxRGB(); |
|
499 | 499 |
double[] max = statistics.getMax(); |
500 |
double[] minRGB = statistics.getMinRGB(); |
|
501 | 500 |
double[] min = statistics.getMin(); |
502 | 501 |
double[] variance = statistics.getVariance(); |
503 | 502 |
double[] mean = statistics.getMean(); |
504 | 503 |
|
504 |
if(((FLyrRasterSE) fLayer).getDataType()[0] == IBuffer.TYPE_BYTE) { |
|
505 |
max = statistics.getMaxByteUnsigned(); |
|
506 |
min = statistics.getMinByteUnsigned(); |
|
507 |
} |
|
508 |
|
|
505 | 509 |
for (int i=0; i<max.length; i++) { |
506 | 510 |
html += setHTMLTitleTable(RasterToolsUtil.getText(this, "band") + " " + (i + 1), 2); |
507 | 511 |
html += setHTMLBasicProperty(RasterToolsUtil.getText(this, "minimo"), Double.valueOf(min[i]).toString()); |
508 | 512 |
html += setHTMLBasicProperty(RasterToolsUtil.getText(this, "maximo"), Double.valueOf(max[i]).toString()); |
509 |
html += setHTMLBasicProperty(RasterToolsUtil.getText(this, "minimoRGB"), Double.valueOf(minRGB[i]).toString()); |
|
510 |
html += setHTMLBasicProperty(RasterToolsUtil.getText(this, "maximoRGB"), Double.valueOf(maxRGB[i]).toString()); |
|
511 | 513 |
html += setHTMLBasicProperty(RasterToolsUtil.getText(this, "media"), Double.valueOf(mean[i]).toString()); |
512 | 514 |
html += setHTMLBasicProperty(RasterToolsUtil.getText(this, "varianza"), Double.valueOf(variance[i]).toString()); |
513 | 515 |
} |
Also available in: Unified diff