Revision 11072 trunk/libraries/libRaster/src/org/gvsig/raster/util/Histogram.java
Histogram.java | ||
---|---|---|
153 | 153 |
for (int iBand = 0; iBand < histogram.length; iBand++) { |
154 | 154 |
for (int j = 0; j < histogram[iBand].length; j++) |
155 | 155 |
// Lo multiplico por 1000 para que no se pierdan datos al redondear |
156 |
hist[iBand][j] = (long) (java.lang.Math.log((double) (histogram[iBand][j] - min + 1))*1000);
|
|
156 |
hist[iBand][j] = (long) (1000.0 * java.lang.Math.log((double) (histogram[iBand][j] - min + 1)));
|
|
157 | 157 |
} |
158 | 158 |
return hist; |
159 | 159 |
} |
Also available in: Unified diff