Photo Curves
A photo taken from a digital camera may sometimes appear too dull or too bright. This is a situation where we could use a photo curve for photo post-processing to make our photos look dramatically better. Applying a curve to a photo can be thought of as a way of remapping an image's tonality, enabling us to adjust the brightness, increase contrast, or emphasize colors.
Applying a curve to a photo can be thought of as a way of remapping an image tonality, enabling us to adjust brightness, increase contrast, or emphasize colors.
Background
This article is part of a 100 days series that explores the use of Digital Compositing for Photo Editing and Photo Post-Processing.
Why bother?
“The ability to express what we want to do Succinctly”
Using Digital Compositing has a significant impact on many things including: the way we design graphics software, how we write articles to discuss image post-processing, and how it can help people quickly understand a graphical process. Find out more at the following:
Digital Compositing for Photo Editing on iPhone
Photo Curve - RGB Tone Curve
Every photo has a mix of shadows, mid tones, and highlights. Shadows are the darkest parts of the photo, highlights are the brightest, and mid tones are in between. When shown on a Photo Curve, the upper-right area of the graph represents the highlights, the lower-left area represents the shadows, and the middle part represents the mid tones.
The Photo Curve below shows a linear curve mapping all parts of the photo as it is, performing no adjustments to the photo. This means if we apply a linear Photo Curve to an image, we will be getting back the original image without any changes.
A photo curve can be applied to all the RGB channels together in an image, or to each of the Red, Green, or Blue channel individually. We start by applying the curve on all the channels of a RGB photo.
Increase the darkness of a photo
As described earlier, the lower left of the Photo Curve of an RGB image represents the shadows, or darkness portion of our photo. By shifting the points on the lower left of a linear curve to the right, we can increase the darkness of the photo. This is shown below.
Lighten the shadows or darkness of a photo
The shadows or darkness of the photo can be lighten if we shift the lower left points of the Photo Curve up.
Darken the highlights or brightness of a photo
On the other hand, the upper right of a curve represents the highlights or brightness of a photo. We can darken the highlights by shifting the points on the top right down as shown below.
Decrease the contrast of a photo
We can decrease the contrast of a photo by a curve shown below. We shifted point 1 up slightly while point 4 down slightly. This has the effect of increasing the darkness of shadows and reducing the brightness of highlights.
Posterize a Photo
We can posterize a photo by reducing the number of colors with a curve shown below.
RGB Channels
Besides applying a Photo Curve on all 3 color channels (RGB). We can also apply the curve on an individual channel such as the Red Channel. We will need to change the Channel Mode from "RGB - All" to "RGB". This enables us to select the channel to apply our curve to.
In "RGB" Channel Mode, after applying the curve to the individual channels: Red, Green, and Blue, we get back a final combined image of the three channels. This is useful in circumstances when we just want to change the color of a single channel without affecting others. Below, we raise the curve of the Red channel. This in effect is adding more of the Red color to our final image.
RGB - Red Channel
Besides applying a Photo Curve on individual color channels (RGB) and getting back a combined image. We can aslo apply the curve on an individual channel such as the Red Channel and then get back the image of this specific channel. We can change the Channel Mode to "RGB Red" as shown below.
Working with a single channel is useful in circumstances when one of the color channels in the photo enables us to more easily extract a mask.
Open Source Project
Download Photo Curves
Source: PhotoCurves.zip
GitHub: Photo Curves