Revision 10996 trunk/libraries/libRaster/src/org/gvsig/raster/dataaccess/buffer/RasterBuffer.java

View differences:

RasterBuffer.java
381 381
			return null;
382 382
		Histogram hist = new Histogram(getBandCount(), 256);
383 383
		for (int iBand = 0; iBand < getBandCount(); iBand++) 
384
			for (int row = 0; row < getHeight(); row++) 
384
			for (int row = 0; row < getHeight(); row++) {
385 385
				for (int col = 0; col < getWidth(); col++) 
386 386
					hist.incrementPxValue(iBand, (getElemByte(row, col, iBand) & 0xff));
387
				percent = ((iBand*getHeight() + row) * 100) /(getHeight() * getBandCount());
388
			}
387 389
		percent = 100;
388 390
		return hist;
389 391
	}
......
412 414
		}
413 415
		return hist;
414 416
	}
417
	
418
	public int getPercent() {
419
		return percent;
420
	}
415 421
}

Also available in: Unified diff