Skip to content
Camera Nation

Photography, culture & the art of seeing

Benvenuti in Camera Nation info@cameranation.com

Free online photography course – 12th lesson – The histogram

21 Apr 2016
1087
histogram

In this 12th lesson of the basic photography course, we talk about a tool present on all digital cameras, from compacts to DSLRs, which is however little used by photographers who often ignore its existence: we are talking about the histogram.

What is the histogram

The histogram is a simple graphical representation present both on digital cameras (except for low-end compacts) and in all photo editing software including Photoshop and Lightroom. Unfortunately, this graph can often be incomprehensible and for this reason ignored, but it allows you to precisely check some fundamental aspects in photography such as the exposure and the tonal range.

Once you learn to read the histogram, you will see your images from a different perspective. The histogram is one of the most powerful tools available to a digital photographer.

Before delving deeper into its use, however, let's see together what are the ranges, shadows, highlights, and midtones.

histogram

Range, shadows, midtones, and highlights

There are 2 types of range: tonal and dynamic. When we talk about tonal range (tonal range) we refer to the breadth of color shades present within a photograph, while with the term dynamic range (dynamic range) we refer to the breadth of brightness levels reproduced by the camera sensor.

In most cases (but not always) the goal is to achieve the maximum range value, which means obtaining as many color (or brightness) shades as possible within our image. If this does not happen, the image will appear to you flat, washed out, with the classic effect of “a gray veil” over it.

To illustrate the concept well, I’ll give you an example with 2 black and white photos. On the left, an image with low dynamic range, while on the right is the same image but with a wide and broad range.

As is easy to observe, the image on the right has a greater contrast and much deeper blacks while on the left the image appears flat.

histogramhistogram

Both tonal range and dynamic range can be divided into zones. In particular, when we talk about zones, we refer to shadows, highlights and midtones.

As is easily understood, when we talk about shadows we refer to the darkest areas of the image dark, highlights are the brightest areas bright, while the midtones are everything in between. In images with low range (see image above on the left) midtones are much more present than shadows and highlights.

Overexposure or underexposure? How the histogram helps to find the correct exposure.

Reading the histogram is actually very simple. Reading the graph from left to right we find the values related to shadows, midtones, and finally highlights. The height of the columns instead represents the number of pixels present within the image for that specific tonal range value.

histogram

At the extreme left of the graph we find the absolute black (RGB 0,0,0) while on the right there is the perfect white (RGB 255,255,255). It is important that the columns of pure black and white are kept to a minimum because it means these areas will be devoid of any detail and therefore unrecoverable, in jargon they are called “crushed” (shadows) and “blown out” (highlights). (see example below)

histogram

In some images this effect is deliberately sought (we will see some examples later) but in most images it is always better to check that these columns are not present.

So how do we understand, through the histogram, if our image is correctly exposed?

A correctly exposed image has a histogram shaped like a “mountain photography” (or a bell shape if you prefer) with its peak in the midtones area but also plenty of information in the highlights and shadows. In the image below we can notice that the entire tonal range has been covered, there may be some highlights slightly blown out but it’s minimal, this image will certainly be correctly exposed.

histogram

It is said that an image is underexposed when the dark areas dominate, the histogram curve will be shifted entirely to the left. Conversely, an image overexposed is a very bright image with the histogram curve shifted to the right.

histogramhistogram

In these cases the photo will almost certainly need to be retaken by changing the shooting settings: aperture, shutter speed, ISO value or exposure compensation.

Now I will show you the same image retaken with 3 different settings, notice the curve of the histogram.

histogram

histogram

histogram

Incorrect histogram does not mean a bad photograph

There are some cases, however, where a histogram skewed to the right or left is not a photo to discard. I am referring, for example, to night photographs and we see an example below.

histogram

If we look at the histogram we can notice a curve skewed towards underexposure but, if we look at the image, we see that we have achieved the desired effect and the photo is well done.

In general, when you want to introduce many shadowed or very bright areas in a photo that contrast with the rest of the image, we will get ALWAYS a skewed histogram but not necessarily an incorrect one.

Another example below:

histogram

In this photo I purposely darkened the shadows so that they became pure black (notice the peak on the left of the histogram) precisely because I wanted to highlight the balsamic vinegar barrels, everything else does not matter and therefore may not have detail.

RGB histogram, brightness histogram, color histogram

Since this is a basic photography course, I don't want to go too much into detail and complicate things, but know that there are 3 different types of histograms that can be displayed and they are:

    \t

  • RGB Histogram: it is used especially by photo editing programs and uses a calculation method that overlays the 3 RGB colors (red, green, and blue)
  • \t

  • Brightness histogram: it is the classic one we see on our cameras immediately after taking a photo. It uses a calculation method with a weighted average to show a sort of perceived brightness of the image. In this calculation, the RGB values do not have the same weight: specifically, 59% weight is assigned to green, 30% to red, and finally 11% to blue.
  • \t

  • Color Histogram: It shows the representation of the primary colors (RGB) and the secondary colors (overlapping of two or more primaries). The set of all colors is represented by the gray area. This particular histogram is also used by photo editing programs such as Lightroom.

histogram

The Histogram in Photo Editing Software

The histogram on our camera can immediately help us understand if the photo is correctly exposed and if we need to retake it by changing the settings, but sometimes, due to lack of time or laziness, we do not view the histogram and move straight to the next photo.

Fortunately, photo editing programs come to our aid (Photoshop and Lightroom among the most famous). These software also include histograms, just like on our cameras, which give us the possibility to intervene by modifying the overall contrast of the image.

Let's take as an example the image of the duck used at the beginning of this lesson and see how to use the histogram to improve the overall contrast.

histogram

In the histogram of this image we can notice that the shadow and highlight areas are completely missing, consequently the image is really lacking contrast and tends to be gray! How can we improve it? In Photoshop (but also in other software) we have 2 ways: adjusting the tonal values and adjusting the curves.

Adjusting the tonal values

By opening the Image menu --> Adjustments --> Levels, a window like this will open:

histogram

To improve contrast and increase shadows and highlights, just move with the mouse the little triangles at the ends of the histogram, bringing them to the edge of the curve, like this:

histogram

Then by clicking OK, the image we will see will be the one we wanted to achieve, with shadows and highlights definitely more accentuated and without the annoying gray “veil.”

histogram

The same effect, but with a slightly different procedure, is obtained if we work on the curved: Image menu --> Adjustments --> Curves

histogram

This tool is definitely more complex to use and the slightest mouse movement can change the image contrast a lot, so it should be used sparingly.

Conclusions. Improving photos with the histogram.

Ok, now we know how to read a histogram! We understand that it is a tool capable of giving us an approximate overview of the information contained in an image, but is it really that useful? I always recommend, if you have the time, to take a quick look right after the shot because you can immediately realize if the photo is correct or not.

Even if your image seems "good" technically, there are lighting situations where sometimes a slight underexposure or overexposure. Certainly, this way objective criteria are mixed with subjective criteria, but only the first or only the second do not guarantee impeccable results anyway, so...

Therefore, personal sensitivity comes into play personal sensitivity and the ability to get the best out of each image. Ideally, histograms should be used not as a rule that governs every photographic decision but as an (important) suggestion.

This concludes the 12th lesson of the free online photography course. In the next lesson, we will talk about focusing; if you missed the previous lessons, you can always consult them at this link.

Do you want to have all the lessons in a portable, elegant format that can also be consulted offline? Today you can buy our ebook: 250 pages of useful and practical advice