geotrellis.raster
Uses the approach given here: http://fourier.eng.hmc.edu/e161/lectures/contrast_transform/node3.html