High dynamic range (HDR) images enable photographers to record a greater range of tonal detail than a camera could capture in a single photo. This opens up a whole new set of lighting possibilities which one might have previously avoided — for purely technical reasons. The new "merge to HDR" feature of Photoshop accomplishes this by combining a series of bracketed exposures into a single image, which encompasses the tonal detail of the entire series.
→ | ||
Single Photo without HDR | After High Dynamic Range Technique |
---|
Image above courtesy of Kyle Kruchock (albeit in a heavily modified form).
MOTIVATION: THE DYNAMIC RANGE DILEMMA
As digital sensors attain progressively higher resolutions, the one quality of an image which does not benefit is its dynamic range. This is particularly apparent with modern compact cameras, as these are more susceptible than ever to blown highlights or noisy shadow detail. Furthermore, some scenes simply contain a greater brightness range than can be captured by current digital cameras — of any type.The "bright side" is that nearly any camera can actually capture a vast dynamic range — just not in a single photo. By varying the shutter speed alone, most digital cameras can change how much light they let in by a factor of 50,000 or more. High dynamic range imaging utilizes this characteristic by creating images composed of multiple exposures.
WHEN TO USE HDR IMAGES
Only use HDR when the scene's brightness distribution cannot be easily blended using a graduated neutral density (GND) filter. This is because GND filters extend dynamic range while still maintaining local contrast. Scenes which are ideally suited for GND filters are those with simple lighting geometries, such as the linear blend from darker land to a brighter sky in landscape photography:GND Filter | Final Result |
Brightness Distribution | Underexposure | Overexposure |
INNER WORKINGS OF AN HDR FILE
Photoshop creates an HDR file by using the EXIF information from each of your bracketed images to determine their shutter speed, aperture and ISO settings. This tells Photoshop how much light actually came from each image region. Since this light may vary greatly in its intensity, Photoshop creates the HDR file using 32-bits to describe each color channel (as opposed to the usual 16 or 8-bits; see "Understanding Bit Depth").HDR files use these extra bits to create a relatively open-ended brightness scale, which can adjust to fit the needs of your image. However, the key benefit is that these extra bits are also used more efficiently than typical 8 or 16-bit images (which we'll refer to as "low dynamic range" or LDR images from here on out).
The 32-bit HDR file format is able to record a greater dynamic range because it uses its bits to specify floating point numbers, also referred to as exponential notation. A floating point number is composed of a decimal number between 1 and 10 multiplied by some power of 10, such as 5.467x103, as opposed to the usual integers of 0-255 (for 8-bit) or 0-65535 (for 16-bit). This way, an image file can specify a brightness of 4,300,000,000 simply as 4.3x109, which would be too large even with 32-bit integers.
OK, the floating point notation certainly looks more concise, but how does this help a computer? Why not just keep adding more bits to specify successively larger numbers, and therefore a larger dynamic range? It's a problem of diminishing returns. As more bits are added to ordinary LDR files, an exponentially greater fraction are just used to specify color more precisely — not to extend dynamic range. This results in far more bits being used to describe the darker tones than the lighter ones:
Actual Brightness* → |
LDR Bits Become Progressively More Sparsely Spaced → |
*As measured by a digital camera. See the tutorial on gamma correction for more on this topic. Above representation is qualitative. The more closely spaced bits for darker values is a result of gamma-encoding. This is of great benefit with ordinary images and can even help increase dynamic range, but becomes progressively more inefficient as the bit depth increases.
Note: just as how using high bit depth images don't necessarily mean your image contains more color, an HDR file does not guarantee greater dynamic range unless this is also present in the actual subject matter.
All of these extra bits provided by the HDR format are great, and effectively allow for a nearly infinite brightness range to be recorded. However, your computer display and prints can only show a fixed, narrow range. This tutorial therefore not only focuses on creating 32-bit HDR files, but also on converting these into images which can be can be displayed on your computer, or will look great as a photographic print. This conversion step is commonly referred to as "tonal mapping."IN-FIELD PREPARATION
Since creating an HDR image requires capturing a series of identically-positioned exposures, a sturdy tripod is essential. Photoshop has a feature which attempts to align the images when the camera may have moved between shots, however best results are achieved when this is not relied upon.Make sure to take at least three exposures, although five or more is recommended for optimum accuracy. More exposures allow the HDR algorithm to better approximate how your camera translates light into digital values (a.k.a. the digital sensor's response curve) — creating a more even tonal distribution. The doorway example is best-suited with several intermediate exposures, in addition to the two shown previously.
Reference | -1 Stops | -2 Stops | -3 Stops |
We also note another disadvantage of HDR images: they require relatively static subject matter, due to the necessity of several separate exposures. Our previous ocean sunset example would therefore not be well-suited for the HDR technique, as the waves would have moved significantly between each exposure.
CREATING A 32-BIT HDR FILE IN PHOTOSHOP
Here we use Adobe Photoshop to convert the sequence of exposures into a single image, which uses tonal mapping to approximate what we would see with our eye. First, we need to combine all exposures into a single 32-bit HDR file:Open the HDR tool (File>Automate>Merge to HDR�), and load all photographs in the exposure sequence; for this example it would be the four images shown in the previous section. If your images were not taken on a stable tripod, this step may require checking "Attempt to Automatically Align Source Images" (which greatly increases processing time). After pressing OK, you will soon see a "Computing Camera Response Curves" message.
Once your computer has stopped processing, it will show a window with their combined histogram. Photoshop has estimated the white point, but this value often clips the highlights. You may wish to move the white point slider to the rightmost edge of the histogram peaks in order to see all highlight detail. This value is for preview purposes only and will require setting more precisely later. After pressing OK, this leaves you with a 32-bit HDR image, which can now be saved if required. Note how the image may still appear quite dark; only once it has been converted into a 16 or 8-bit image (using tonal mapping) will it begin to look more like the desired result.
At this stage, very few image processing functions can be applied to a 32-bit HDR file, so it is of little use other than for archival purposes. One function which is available is exposure adjustment (Image>Adjustments>Exposure). You may want to try adjusting the exposure to have this reveal any hidden highlight or shadow detail.
USING HDR TONAL MAPPING IN PHOTOSHOP
Here we use Adobe Photoshop to convert the 32-bit HDR image into a 16 or 8-bit LDR file using tonal mapping. This requires interpretive decisions about the type of tonal mapping, depending on the subject matter and brightness distribution within the photograph.Convert into a regular 16-bit image (Image>Mode>16 Bits/Channel...) and you will see the HDR Conversion tool. The tonal mapping method use one of four methods:
Exposure and Gamma | This method lets you manually adjust the exposure and gamma, which serve as the equivalent to brightness and contrast adjustment, respectively. |
---|---|
Highlight Compression | This method has no options and applies a custom tonal curve, which greatly reduces highlight contrast in order to brighten and restore contrast in the rest of the image. |
Equalize Histogram | This method attempts to redistribute the HDR histogram into the contrast range of a normal 16 or 8-bit image. This uses a custom tonal curve which spreads out histogram peaks so that the histogram becomes more homogenous. It generally works best for image histograms which have several relatively narrow peaks with no pixels in between. |
Local Adaptation | This is the most flexible method and probably the one which is of most use to photographers. Unlike the other three methods, this one changes how much it brightens or darkens regions on a per-pixel basis (similar to local contrast enhancement). This has the effect of tricking the eye into thinking that the image has more contrast, which is often critical in contrast-deprived HDR images. This method also allows changing the tonal curve to better suit the image. |
The remainder of this tutorial focuses on settings related to the "local adaptation" method, as this is likely the most-used, and provides the greatest degree of flexibility.
CONCEPT: TONAL HIERARCHY & IMAGE CONTRAST
In contrast to the other three conversion methods, the local adaptation method does not necessarily retain the overall hierarchy of tones. It translates pixel intensities not just with a single tonal curve, but instead also based on the surrounding pixel values. This means that unlike using a tonal curve, tones on the histogram are not just stretched and compressed, but may instead cross positions. Visually, this would mean that some part of the subject matter which was initially darker than some other part could later acquire the same brightness or become lighter than that other part — if even by a small amount.Underexposed Photo | Overexposed Photo | Final Composite that Violates Large-Scale Tonal Hierarchy |
An example of a more complex brightness distribution is shown below for three statue images. We refer to contrast over larger image distances as global contrast, whereas contrast changes over smaller image distances are termed local contrast. The local adaptation method attempts to maintain local contrast, while decreasing global contrast (similar to that performed with the ocean sunset example).
Original Image | High Global Contrast Low Local Contrast | Low Global Contrast High Local Contrast |
The original image looks fine since all tonal regions are clearly visible, and shown with sufficient contrast to give it a three-dimensional appearance. Now imagine that we started with the middle image, which would be an ideal candidate for HDR conversion. Tonal mapping using local adaptation would likely produce an image similar to the far right image (although perhaps not as exaggerated), since it retains local contrast while still decreasing global contrast (thereby retaining texture in the darkest and lightest regions).
HDR CONVERSION USING LOCAL ADAPTATION
The distance which distinguishes between local and global contrast is set using the radius value. Radius and threshold are similar to the settings for an unsharp mask used for local contrast enhancement. A high threshold improves local contrast, but also risks inducing halo artifacts, whereas too low of a radius can make the image appear washed out. For any given image, it is recommended to adjust each of these to see their effect, since their ideal combination varies depending on image content.In addition to the radius and threshold values, images almost always require adjustments to the tonal curve. This technique is identical to that described in the Photoshop curves tutorial, where small and gradual changes in the curve's slope are nearly always ideal. This curve is shown for our doorway example below, yielding the final result.
Photoshop CS2 Tool | Final Result Using Local Adaptation Method |
The main problem with the local adaptation method is that it cannot distinguish between incident and reflected light. As a result, it may unnecessarily darken naturally white textures and brighten darker ones. Be aware of this when choosing the radius and threshold settings so that this effect can be minimized.
0 comments:
Post a Comment