You can set the gray values of an image by setting the gamma to brighten or darken an image without greatly affecting the shadows or highlights.
To set the gamma of the image:
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License