Skip to main content

Digital photography histogram explained for better photos

The ability to read histograms in digital photography is an excellent skill that every photographer should have. Getting a properly exposed shot is crucial when it comes to photography, and using the histogram is a solid way to achieve it. That 2 to 3 inch LCD screen located on digital cameras is only a quick way to look at the photo exposure and its details. In harsh lighting or vivid ambient lighting conditions, it can prove to be misleading to the human eye. Sometimes the LCD brightness level can also create issues with judging the exposure of a shot. So what does histogram explain about an image? How can histogram help you to take better images? In this beginner-friendly post, I will try to answer these questions. You can consider it as a tutorial or cheat sheet for digital photography histograms.

Photography histogram image examples:
The histogram is basically a mathematical way of representing data, and it applies to digital image information too. In digital photography, histogram represents the pixels associated with different tonal values in a given image. Each pixel in a colour image is a combination of red, green and blue colours. The brightness level of each colour ranges from 0 to 255 if the image is of 8 bits. Let's start with black and white photos first for simplicity.

Black and white histogram:


Phoography hisrogram explained
Dark or underexposed image

Histogram explained
Bright or overexposed image

Histogram photography explanation
Properly exposed image
From the above 3 image examples, it is evident that an overexposed or extremely bright photo will have the curve area moved to the right. In contrast to this, an underexposed image will have the curve being squished to the left. For a properly exposed or a balanced exposure shot, the curve will cover the whole axis without abrupt spikes or cut-offs. A spike or cut off means image information is being clipped or lost.

Colour histogram:
A colour image histogram will show a bit more information as compared to a black and white image histogram. It has 3 different curves representing the red, blue and green colour pixels present in the image.  Overlapping of any 2 colour curves with each other makes cyan, yellow and magenta. One colour being clipped (overexposed) can be bad as it means you won't be able to recover much information without losing the natural look of the image.
Most of the modern day DSLR cameras allow separate representation of all three curves in 3 different histograms at the same time.
Histogram of a colour image
Colour image histogram example

Image histogram graph:
Vertical axis: Pixel count for each brightness or tone level.
Horizontal axis: Brightness level. Leftmost is pure black, the rightmost is pure white. As we move left to right, the brightness increases. Every image has dark areas, bright areas and some normal areas. The darker part is called shadows, bright part is called highlights and mid-normal range is called mid-tones.

Explanation of camera histogram
Histogram explanation

How to use a histogram?
Ideally, the histogram curve should be smooth and well spread but perfect situations are not always present. What if the scene has a lot of light variation like say Sunset? Or shooting indoors and there are windows showing bright daylight. In cases like this, it is very hard to avoid a bit of highlight clipping or shadow clipping. To help with this, some digital cameras have a functionality called as "blinkies" or "highlight clipping warning". It is a flashing animation that tells the user if highlights are being clipped in your image when previewing.  In addition to this, usually exposed to the right is considered as a safe bet when taking photos. We will talk about this technique in a separate post, don't want to overwhelm beginners in one single post. :)


Why can't a camera show histogram from the raw image?
Even when shooting raw, a histogram is based on the jpeg preview of the raw file. But why don't cameras show a histogram based on the raw data instead of jpeg preview? One possible reason could be because it's faster to show information based on the jpeg review. Raw files are huge in size and for a camera processor to read that 25-40 MB image data would definitely introduce some delay. Another reason is that a raw file has no contrast curve, white balance and saturation applied to it. 
If you still want to view the raw file histogram, you can use Magic lantern software to view histogram in live view and image review. Still, that wouldn't be a very meaningful representation of the raw data.

Lastly, the ability to read and understand histograms helps a lot with post processing images too. All the major photo editing software use sliders such as highlights, shadows etc. and a knowledge of histogram can make processing a lot faster. Hope this post helped you to understand the basics of camera histograms.
Share the photography love by sharing this post. :) 

Comments

Popular posts from this blog

sRGB vs Adobe RGB colour space explained

Digital images are everywhere, both offline and online. Each digital image is made up of a large number of square sized individual pixels. Zoom into an image at 2000 % or more in any of the viewers, you will see these pixels. Here is an example:


In order to categorize pixel colours, RGB and CMYK are the two widely used colour models. According to the RGB colour model, each pixel colour can be considered as an addition of different shades of red/green/blue light. These light shades are calculated according to the bit depth of the image. Jpeg images are usually 8 bits per colour channel (red, blue or green), which means 2^8 ( 256) different shades of each red/blue/green colour are possible. Few examples to make it clear how different colours shades are represented:
Red: (255, 0, 0)
Green: (0,255,0)
Blue: (0,0,255)
White: (255, 255, 255)
Black:  (0,0,0)



What does CMYK do? It is a subtractive colour model for printing purposes and stands for Cyan, Magenta, Yellow and Black. According to …

5 things to know before switching DSLR between Canon and Nikon

Photography is an expensive hobby or profession and everyone wants the best bang for every dollar they spend. This applies to any photography equipment starting with low-cost tripods to super expensive professional grade lenses. I am sure all of us must have heard of Nikon and Canon. The good old battle between these two DSLR brands will never end. Whether you are a beginner or a full time professional, there are a few quirks everyone should know before switching camera between these brands.
1) The used market for Canon gear is just enormous which makes a good plus point for investment and buying decent used gear. Go to craigslist for a given city and search used photography gear, the difference will be easily noticeable. I searched for 10 different cities in Canada and all had comparatively more listings for Canon.
2) Nikon has better dynamic range cameras. Dynamic range is the ability of the camera to sense the lightest and darkest scene in a given photo retaining as much detail as…

How to locate the milky way for night sky DSLR photography?

Our Earth is part of a huge sized galaxy, known as the Milky Way. Milky Way basically consists of our whole solar system and is made up of 100-400 billion stars. Until last year, I had no idea if we can see Milky Way with naked eyes. After a lot of failed late night drives and sleeping at the beach, I was finally able to get a grip on what I actually need to see Milky Way. In September 2016, I got my first Milky Way shot. It was an extremely emotional and priceless moment when I first saw the magnificent milky way with my own eyes. All the failed attempts or discomfort of not going to bed early seemed nothing in that moment. I would consider sharing this priceless memory with fellow photography folks as the inspiration behind this post.  Moving on to the technical part, there is a minimal amount of gear required to take Milky Way shots using your dslr. Focusing at infinity and calculating the shutter speed to avoid star trails is purely technical, capturing Milky Way takes a little mor…