Revision 21022 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/properties/DatasetStatistics.java
DatasetStatistics.java | ||
---|---|---|
396 | 396 |
for (int col = 0; col < dataset.getWidth(); col++) { |
397 | 397 |
for (int row = 0; row < hB; row++) { |
398 | 398 |
double z = (b != null) ? b[iBand][row][col] : ((s != null) ? s[iBand][row][col] : ((i != null) ? i[iBand][row][col] : (f != null) ? f[iBand][row][col] : d[iBand][row][col])); |
399 |
if (z == dataset.getNoDataValue())
|
|
399 |
if (dataset.isNoDataEnabled() && (z == dataset.getNoDataValue()))
|
|
400 | 400 |
continue; |
401 | 401 |
|
402 | 402 |
if (Double.isNaN(z)) |
403 | 403 |
continue; |
404 | 404 |
|
405 |
// if(z < 0) |
|
406 |
// System.out.println(""); |
|
407 | 405 |
double rgb = (b != null) ? (b[iBand][row][col] & 0xff) : 0; |
408 | 406 |
if (init[iBand]) { |
409 | 407 |
min[iBand] = z; |
... | ... | |
421 | 419 |
secondMinRGB[iBand] = minRGB[iBand]; |
422 | 420 |
minRGB[iBand] = rgb; |
423 | 421 |
} |
424 |
|
|
422 |
|
|
425 | 423 |
if (max[iBand] < z) { |
426 | 424 |
secondMax[iBand] = max[iBand]; |
427 | 425 |
max[iBand] = z; |
Also available in: Unified diff