www.scantips.com

Curve and Levels Tools Usage Compared

The photo editor Curve Tool actions are similar to, but in some ways more versatile and more powerful than the Levels Tool — But Levels is of coures quite important too. The intent on this page is to explain the action of both tools (Levels and Curves, CTRL L and CTRL M in Adobe), but specifically also to show HOW the two tools do many of the same jobs. Understanding concepts of how they are similar helps to understand both.

Histograms: Our starting point is to assume you know that the histogram shows the distribution of the actual tonal values in the image. Specifically, it is a bar chart of the relative count of pixels with each tone from black at 0 to white at 255. IMO, the most important thing about a histogram is how closely the data fills the entire width, but of course, to be sure there is no tall spike of clipping at the either end. However, the histogram data maximum height is not important numerically, because it is always scaled so that the maximum does reach the top (which aids seeing the tiny shortest ones).The taller histogram graph spikes just means relatively more pixels exist with that tone value. There is no "correct" value. Black scenes will have many dark pixels, and white scenes will have many bright pixels. The histogram is not a light meter, it only shows what did happen (it has no clue what the scene is, or how it ought to be). There is rarely any image detail we can identify in the histogram, but it does show the overall extent from dark to light tones (which depends on our exposure).

Both the Curve and Levels tools show the image histogram data. To be able to adjust the data, we have to see the data to know what it needs. We do think in terms of adjusting exposure to align the data towards the right edge, to be "bright enough" - but primarily the main point of looking is specifically to insure there is no clipping at 255 (a tall thin spike right at 255 indicates clipping), which would be detail lost (and colors changed) due to overexposure. A second useful idea might be that any empty areas at either end are “wasted” capability, and is often better if adjusted so the data spans the full available range (meaning the whites will actually be white, and the blacks will actually be black ... which is more contrast). But which depends, any far right alignment necessarily assumes our scene actually does have bright data which ought to be far right (not always true of every image - for example, probably true of the picture of a polar bear in the sun on the snow, but not true for the black cat in a coal mine). So the histogram shows what is (resulting from the exposure), but it cannot recognize the scene to know how it ought to be. However the human photographer’s brain should have a good idea how it ought to be (so do use your brain). We do like dark things dark, and bright things bright (contrast). There are two types of common histograms, very different and important, see this page. The histogram data numerical values are also gamma encoded, see this page

The Curve tool may actually seem to be simpler to understand than Levels, because it is graphic. It "maps" the data to a curve we draw on it. That curve is same as any graph, associating points along the horizontal axis with points along the vertical axis. Basically, the curve tool is a graphic "response curve" of the response you want. It just maps tones, a conversion from "input" tone to "output" tone (a before and after concept, of what this tool does). Input is the image data that you read in (before). Output is the image data that you will write out (after)... with modified tonal values, which is the purpose of editing. The graphic curve is the response curve of the tool, the specific map to convert input to output. The histogram is shown faintly in the background, which is the data which will be processed, which could be a guide. Shown next is a standard Curve Tool (from Photoshop):


Input is shown across the bottom, and Output is shown upward on the right. The gray scale gradients show the tone values of the scale, and they have numerical values too (you may or may not notice that these scales in a grayscale image's curve tool probably are reversed to have white at the origin, but everything is still all the same).

The Key is that the default response curve is a straight linear line, from lower left to upper right, so that all tones map to their unmodified original values. The default of the 45 degree line is that 255 input is mapped to 255 output, midpoint is mapped to midpoint, and 0 input is mapped to 0 output, which is no change at all.

However, the shape of the curve is very fluid, and we can simply drag the curve around, to change the response to be any shape that we want. Above, in this case (a standard S-Curve for contrast), we did three things:

This new curve is the new response curve of the tool, mapping the tool input to its output. The marked Red line arrows above (for example) shows how we read the Curve, and shows that this new curve shape maps Input 192 to be Output 222 (brighter, instead of the default unmodified 192 output). Said another way, tones at the 3/4 point are brightened to be about 7/8 scale. If we also imagined more of these imaginary red arrows in the bottom half of this Curve, those tones would be made darker (lower output, this case). Then all the other tones follow the curve too, as shown. It is really this simple, just a simple response Curve, showing what it does (whatever you want it to do). Often the exact numbers are not important to us, but we do work with the zones, like brightest brights, darkest darks, middle tones, etc. This example curve shown is called an S-Curve, which creates brighter brights and darker darks, which causes greater image contrast (see more at Contrast at bottom of page here).

Both tools (Levels and Curves) provide the default RGB map, which affects all three RGB channels equally (changes tones). Or we can select and modify the three RGB channels individually (changes tone and colors).

The eye dropper tools are same in Curves as in Levels, and the black and white pointers can set Black Point (new point to become zero), or White Point (new point to become 255), or the middle pointer is about gamma, which is a great tool for brightness of the image.

The two more common uses of the curve tool are shown near page bottom, but first, let's detail the way these two tools can do the same jobs.

Brief Summary, Levels vs. Curves (probably easier to look at the diagrams below to show the setting detail).

But this is the complete list of what the Levels tool can do (five sliders). The Curves tool can modify the response curve any way desired.

The Original image. All images on this page are this one same exact image (repeated a few times below), with then different degrees of example processing. My settings are all overdone, without any logic image-wise here, just to show a recognizable change by the tool. Obviously we use the tools to make a desirable change to the image. The histogram of this image shows a huge spike near the white end, which is the white background, and the white cup. If we had used a black paper background, the histogram would look very different, with a spike near the black end.

1. Image Inversion


The dramatics first, because it shows the idea really well about how the Curve Tool works. It simply maps input tone values against the Curve, to compute new output tone values.

For example, to invert the image (color or B&W), just drag the lower left end of curve up to the top, and drag the upper right end down to the bottom. Then the curve slope instead runs downward at 45 degrees to invert a negative image. Because then, input at zero (black) becomes output at 100% (white), and input at 100% (white) becomes output at zero (black). This is the standard inversion technique. The idea is that negatives become positive. Inverts colors to their complement too, orange becomes blue, red becomes green, etc (180 degrees across on the color wheel). The unmodified straight line 45 degree inverted curve maps 255 to 0, and 0 to 255, which numerically, all RGB components become (255-previous), or (255-255=0 and 255-0=255), which is inverted. As marked in red, a bright value at 3/4 scale outputs at 1/4 (darker), and at 1/4 outputs at 3/4 bright.

This inversion works fine for B&W negatives, and would work for color negatives, except they have the orange cast which is very significant, and quite difficult. The orange inverts to be a strong blue background mask. We could then drag this new slope to be other response shapes too (see this page for more of that, concerning color negatives).

The Levels tool cannot do inversion, but there should be a regular menu Image - Adjustments - Invert that does it.

Levels may not do Inversion, or the special intricate curved shapes, but otherwise, the images are in pairs below, to show both of the Levels and Curve tools doing same thing, to show that in many cases, they can actually do the same thing, just done in slightly different ways. Realizing this similarity helps understanding. The Curve Tool does anything Levels can do, and much more too.

I am not knocking Levels in any way, I use Levels greatly more than Curves, very handy. Because, Levels is more specific purpose. Levels only has five adjustment sliders. Four mainly only specify end points. In organizing it here (related to Curves), these four Levels sliders are the Top Right corner of the Curve, moved in or down, and Bottom Left corner of the curve moved in or up. Moving either corner inward is Levels Input (the more common use), and either corner moved vertically is Levels Output. The fifth Levels slider can move one point to bow the curve up or down, but the curve tool can do that too, or move and reshape it in about any other way. But otherwise, the four Levels controls simply limit the Curve in these four ways.

2. White Point

By definition, the White Point is the end point at 255 (right end of histogram). If you move it, the data is shifted so that this new point selected will become the new White Point at 255. Anything brighter will be clipped to stay at 255.


 The Original image.


Levels, White Point 205 (205 becomes 255). Any value above 205 becomes 255 (clipping).
Whites got whiter, including the cup and the background (205 became 255, very white).


Curve, White Point 205 (205 becomes 255). In both tools, any value 205 to 255 becomes 255 on output (clipping), but now the Curve explains graphically why - it seems more clearly why. It is simply the shape of the response curve, how it specifies the tones are to be mapped. You can drag the Curve, or you can slide the White Point/Black Point markers on the bottom scale.

Some big things to know:

Both tools make the new marked White Point become 255, and any values above it are clipped (all those values above it become 255 too - a loss of detail). Changing the composite RGB slider (as shown) changes each of the three RGB channels in the same degree, which mostly increases overall brightness (towards white), instead of changing color balance. But changing the individual RGB channels differently skews and changes color, perhaps an intentional change or not. An original idea of White Balance was for the maximum extent of the data in the three RGB channels to be at the same White Point. Photoshop Auto Levels still has this action as default (Enhance per channel contrast) to align the individual end points of the three RGB channels while clipping very slightly (0.1% - see Options in Levels). Sometimes Auto Levels fixes terrible color (faded colors), sometimes it hurts good color. We can use Undo.

These White Point tools are the SAME action (same thing) as the Exposure slider in Adobe RAW - this is what it does. White Point leaves Black Point where it was, but stretches White to more "exposure". For "less" exposure, use the Output Levels below. The Black Point tools are the SAME action as the Blacks slider in Adobe RAW.

A BIG DEAL we should know: In Adobe, both the Levels and Curve Tools, and also these Exposure and Blacks tools in Adobe RAW (ACR) have the default that if you hold the ALT key (or Mac Options key I think) down while sliding these, the image preview changes to be blank (all white or all black), and then shows only the pixels that have been clipped at present setting (shows those pixels which now have value 255 or 0). The curve tool also has the check box to show this, but it is not default. This is quite powerful to show what you are actually clipping, to let you see what is actually being clipped, and thus is losing detail. Sometimes losses matter, sometimes it doesn't matter, but this is how you can know what is really happening. Same ALT key action works on Black Point too.

The usual way this tool is used is to set the White Point to about the histogram point where the image data actually begins, more as shown in the tiny picture here. This excludes the range of tones not present in the image, and maximizes the contrast of those present. The extent of the data actually present becomes White at 255. We might quibble where the data actually ends, but clipping away any trailing tail here is often a good thing to do (perhaps even more in grayscale images). Black point too, same thing. By eliminating the “blank” histogram ends, we expand the range of the existing data to fill the full 0..255 span.
The Yellow flower on the cup is the brightest thing in this image, but on images with a white background, often that background is the brightest thing, and makes the largest spike on the histogram. Sometimes placing the white point at that white spike is good to make the background actually be white (something like shown done here, but this one is different, the yellow flower is the brightest here (holding ALT shows that instantly).

These tools (in Photoshop) have the three eyedropper icons in them, colored black, gray, and white.

3. Black Point

By definition, the Black Point is the end point at 0 (left end of histogram). If you move it, the data is shifted so that this new point selected will become the new Black Point at 0. Anything darker will be clipped to stay at 0.


 The Original image.


Levels, Black Point 60 (60 becomes 0). Blacks became blacker.


Levels, Black Point 60 (60 becomes 0)

In both tools, any value 0 to 60 becomes 0 on output. This makes the new marked Black Point become 0, to now be as black as possible.

This is same as "Blacks" in Adobe RAW. Can hold ALT key to see clipped values in either one.

4. White Output Level

The Output White Point marks the tone that will become the brightest tone in the image. If you move it, any data at 255 becomes this lesser tone, and there will be nothing brighter.


 The Original image.


Levels, Output 200 (maximum white level, 255 becomes 200, white becomes more gray)


Curve, Output 200 (maximum white level, 255 becomes 200, white becomes more gray)

This might be used to prevent a screened image to retain slight evidence of the screen dots, instead of printing nothing on blank white paper.

Both tools make the original value 255 move down to become the new marked White Output point, as bright as it gets, a maximum in the image, nothing brighter than this value. The curve shows there is no possibility of anything brighter than this point.

5. Black Output Level

The Output Black Point marks the tone that will become the darkest tone in the image. If you move it, any data at 0 becomes this greater tone, towards gray from black, and there will be nothing darker. This is typically used in prepress printing, to prevent excessive build up of black ink in dark areas.


 The Original image.


Levels, Output 60 (minimum black level, 0 becomes 60, black becomes more gray)


Curve, Output 60 (minimum black level, 0 becomes 60, black becomes more gray)

This is sometimes done in printing processes (like newspapers), raising black to be a few percent lighter, to prevent the ink from being a dense blob buildup problem. In more extreme degree, it could also be used to create faint "ghost" images.

Both tools make original value 0 move up lighter to become the new marked Black Output point, as dark as it gets, a minimum in the image, nothing darker than this value is possible.


A couple of the most usual purposes

The editor tools actually named Brightness and Contrast are definitely NOT the best tools in the bag. Levels and Curve do it better, are much more versatile, and offer more control.

The standard editor tools named Brightness and Contrast are about the oldest tools, dating back a few decades (well before “digital”). They are relatively poor tools today, but some editors retain them instead of adding Levels and Curve.

6. Brightness

The separate tool named Brightness simply adds a constant to all pixel RGB values, to shift the data graph to the right, which is detrimental to contrast (whites are clipped, and blacks become gray). Those old tools do not watch and show the histogram (blind work in the dark, except by final appearance). That is really too dumb to consider today, but we see these versions. These better Curve and Levels tools below do not affect the end points (unless we so choose using additional operations).

The Level and Curve tools do something similar but better, to make the image brighter (or, they can lower it to darken the image too).


 The Original image.


Levels, Brightness - the center slider raises the middle tone values (brighter). The end points and dynamic range are unchanged and unclipped. The center slider of Levels is called Gamma, said to be 1.0x relative to the image gamma value (2.2),. The center slider multiplied the value of gamma, boosting the center and dark values too. If you set the slider value to 1.15, then gamma 2.2 is considered to be changed to 2.2 x 1.15 = 2.53. This is a 1.15 multiplier, and any gamma works. Gamma is not necessarily 2.2, but the standard sRGB is 2.2. Watch the image preview brightness to judge the change. You likely don’t care about the numerical value, you do this to make the image brighter or darker, as desired. Moving the White Point in mostly affects the brightest tones, and this midpoint control mostly affects the middle and darker half. But changing the middle slider does not shift the end points, and cannot cause clipping.


Curve, Brightness - Raising the curve increases middle tone values (brighter). The end points and dynamic range are unchanged and unclipped. Just pull the curve up a bit. Watch the image preview to judge it.

These Levels and Curve tools are far better ways (better than the usual old tools named Brightness or Contrast) to make images be brighter (or darker), because they do not shift the end points, and do not cause clipping and do not change dynamic range or image contrast.

7. Contrast

The other older separate tool named Contrast simply moves both ends inward (white point and black point), like Levels can do, but inward equally in that case, intentionally clipping both ends, but with less control and no visibility of image data (without seeing the histogram data as Levels and Curve shows). It is not as smart as being able to see the data graph, and to have individual control of the two end points. Ordinarily, in general, we normally position those points at about where the data actually starts (unlikely often at equal positions). But everything has exceptions, and sometimes we may choose to clip them a bit, usually unequally.

The Level and Curve tool action is different regarding not clipping the end points, but they do a somewhat similar thing to increase contrast.


 The Original image.


Levels, Greater Contrast is Brighter whites and Blacker blacks, done by clipping both end points slightly and individually, by manual choice after seeing the histogram data. This is a very standard procedure for contrast. Watch the image preview to judge it, but again, realize you can hold the ALT key to see what detail you are clipping. Some things don't matter if clipped a bit, some things do matter. A little clipping can often be a great thing for grayscale contrast, if it does not cost important detail. A little clipping with White Point can affect colors in color photos, but grayscale thrives on contrast, and a little clipping is often done for that purpose. Just use the Preview to watch what you are clipping. To know what you are clipping, see the Big Deal above again that explains it.

Color can be the contrast for color work, but greater actual contrast is especially important for grayscale images... The best one trick for grayscale images is adequate contrast, by specifically being sure there is something that is really black, and something that is really white (which is a tip from Ansel Adams). He was speaking of contrast for Black & White work, and he was NOT speaking of portraits. A little clipping does this, but it should not be enough to lose any of the important detail in highlights or shadows. (See more). IMO,a little clipping really can help B&W photos, but too much contrast can make color photos look glary. And clipping can shift the colors a bit in color photos.


Curve, Greater Contrast - We could have moved the end points in like the contrast examples above (#2 and #3), to do the about same thing with Levels, but both Levels and Curve would have clipped the ends then.

But instead, this S-Curve shown here is specifically one of the great features of the Curve Tool. This S-Curve is brighter whites and darker blacks too, but the end points are unchanged and are not clipped, more suitable for color images. The end areas are not clipped, but still offer subtle graduation of tone. The central linear portion still has a steep slope - more values are either darker or lighter, with less middle range.
The center is clicked first to pin it, so it won't move with the curve. S-curve is a standard contrast procedure, maybe the best contrast method, especially for color work. Watch the image preview to judge it.

These two tools are the best way to address contrast, because of the individual control they offer (of the two ends of data, with respect to the data).

Here is another older page about the same Brightness and Contrast tools mentioned here.

Copyright © 2012-2024 by Wayne Fulton - All rights are reserved.

Previous Menu