Related article: Understanding Histograms
Levels is a simple post processing tool available in most photo editing software, used to improve contrast in an image. A dull picture can be transformed into a colorful image in no time by making minor adjustments with Levels tool. In photoshop, you can open Levels tool from the menu Image >> Adjustments >> Levels or by the shortcut key Ctrl+L. In Gimp, Levels tool can be found at Colors >> Levels.
First, let's open the target image in Photoshop. For this exercise, I am using this picture of a lake surface shown below.

click to enlarge
Next, open the Levels tool. As shown below, the Levels tool displays the histogram for the image, with three sliders at the bottom. Let's look at each of these sliders and adjust them.