Tone Mapping

Top  Previous  Next

Once you created HDR file, you already have an image that has expanded dynamic range.

One problem with HDR has always been in viewing the images. CRTs, LCDs, prints, and other methods of displaying images only have a limited dynamic range. Thus various methods of "converting" HDR images into a viewable format have been developed, generally called "tone mapping".

 

It is important to realize that there are many different algorithms to tone-map a HDR image and there are many scientific papers and also few books written on the subject. There is no single "correct" way to do it. The goal is to take the hight dynamic data and "compress" it into low dynamic image in such way that the result will show details in both dark and light areas (where normally the details are clipped).

For our purpose the result has to be also more pleasing than a truthful representation of the scene. The top tone-mappings algorithms tends to create a wow factor while the bottom algorithms are more for a natural looking output.

You can also take the HDR and tone map it in any other tone mapping software if you like the different results.

 

Preview

There are three preview buttons. The Quick button is the automatic preview. Any time we change a parameter the image will be recalculated using the Quick settings.

 

clip0036

 

2x Fine Preview will recalculate the image in more finer details. This will be about 4 times slower calculation than the Quick mode, but it may give you idea about noise and image feel. After the 2x Fine calculation is done a 2 times bigger window will open with a large preview. You can close this window by simply clicking inside the image or closing it with x button.
Note: The Fine preview window is 1100x740

If you have enough space on monitor (for example with dual monitors) you can actually keep this larger 2x Fine preview window open and create another Fine preview window using different settings. This way you can compare two or more images in a much higher detail. Then you can close the 2x Fine preview windows as above.

 

The full preview process the image with the maximum quality settings and depending on the image size, this could take considerable time. The image will be saved in temporary location and opened using default associated program in windows. It is very similar to the full export using Process button and it will take about the same time.

 

Process

Processing image is the final stage. Mapping the full image and writing it to the disc. You can choose many of the common 8-bit formats such as JPG, BMP, PSD or PNG. You can also export the final image as 16-bit TIFF file that you can use for further processing.

 

clip0024

 

16-bit output

The tone-mapping process itself always works with floating data up to the final export, therefore 16-bit per color image will simply retain more of the subtle information than the 8-bit image. However you cannot fully appreciate the 16-bit per color image on a common 8-bit per color monitor (some LCD monitors are in fact even less: 6-bit per color). The 16-bit export is a good option if you want to further edit the result in image editing application that can work with 16-bit per color image (Adobe Photoshop for example).

Note: The 16-bit TIFF file will be rather large, even close to 100MB.

 

After the image is written, you will still remain in the Tone Mapping dialog which allows you to process and save another image with perhaps different mapping method or different settings. You will stay in the Tone mapping dialog until you press Close.

 

Memory Dots

You can store current Method and its Settings into the Memory Dots so you can recall them later or to quickly compare different settings.
Only the Method and its settings are stored, not Color, Hue or Gamma values.

 

clip0037

 

You can store settings to an empty or already existing memory dot.

 

To store current Settings to a Dot: Right Click

To recall settings from a Dot: Left Click

To remove the settings from a Dot: CTRL + Right Click

 

Loading/Saving Method and Color
To Save the Current Method and all Color adjustments for future to disc, press the S button. To load it back press L button.

 

clip0050

 

The current Method and all Color settings is saved into a file that you can recall later.

 

Dragging Samples for Comparison

To compare different settings at the same time you can click on the preview window and drag out a Sample view.  You can arrange these Samples around the Tone mapping window and if  you want to return to that particular settings just click inside the Sample view.

 

clip0049

 

The Samples remember all the settings including Color and Hue curves, Gamma, Filter or any additional settings and allow us to quickly return to them with one click.

 

Resize

Resize button will allow to resize the original data from which the output will be created.

 

 

clip0072

 

The obvious benefit is the speed increase when calculating the full image. Many times we need output of a certain size for example for web page and it is simply unproductive to tonemap a 10 megapixel image then resize it down.

 

clip0073

 

Here is example of resizing 4368x2898 into more manageable 50% size before tone-mapping.

 

 

 

 

Methods

We selected six methods  that represent a wide range of results from vivid painting-like images to more subtle smooth output. They all are optimized for speed.

The first two methods are the main methods and can be used for almost any situation.

 

clip0022

 

The first two use local operator that adjust the pixels in dependence to their surrounding. This will produce a vivid, contrast image thanks to its high dynamic range color separation. The results will often have more painting-like feel and certain wow factor. They work best on typical HDR images with lots of details and varying high contrast changes such as landscape, skies etc.. They will not perform well for images with a large smooth surfaces or very subtle gradients where they could enhance a picture noise.

The third is a combination of Local and Global operator to produce vivid, but yet smooth images.

The last three are global operators with a fast local tone mapping that mostly adjust the image as a whole. The result is smooth, photographic images. They perform well in any situation if the goal is to produce a realistic image especially foir further image processing.

 

Eye Catching

This settings create a vivid images that enhance contrast and color separation. The default settings are set to minimize noise but still produce high impact images. It is also the most tweakable method with the many settings.

 

clip0024

 

Brightness - Adjust the brightness of the image.

Color Saturation - adjusting the saturation of colors. Thanks to the local operator the default saturation of 1.0 already produces a lot of color separation, so the basic adjustment for this settings is to mostly tone the saturation down for a bit less color.

Vivid Colors - controls the color separation of primary colors - in short the result will be a brilliant basic colors such as green or red. This is different than Saturation that simply saturate all colors.

Dramatic Light Radius - controls the actual light and contrast distribution and it can significantly change the way the image feels.

Dramatic Light Strength - the amount of the dramatic light effect

Surface Smoothness - extreme values of Dramatic Light can create banding or a grain noise that can be attenuated by this process in places with smooth surfaces such as blue sky without clouds, flat walls etc. This slider will suppress the creation of this artefacts, but it also little softens the effect.

 

This Method is suitable for images with enough contrast and details such as landscapes, skies with clouds etc. It is not as suitable for scenes with many flat surfaces or smooth gradients. If your camera/lens has vignetting this process may increase its effect.

 

A typical process would be:

- Start form default values (press R button right of the blue Settings label)

- Set Gamma value to 1.0

- Adjust Brightness of the image

- Move Dramatic Light Strength a little bit up (to about 0.5) to temporarily emphasize the effect

- Change value of the Dramatic Light Radius in smaller steps to see the different fill-in effect. Each value can give a different feel to the image

- Lower the Dramatic Light Strength back to more reasonable values

- If a banding or added noise is still visible in flat and smooth areas, increase the Surface Smoothness until you are comfortable with the tradeoff between the effect and noise.

 

Note: Surface Smoothness has certain counter effect to Dramatic Light Radius and Strength. Therefore it is difficult adjust these parameters with Surface Smoothness increased too much above 0.5. If you want to adjust the effect of Dramatic Light, do it while Surface Smoothness is lowered to 0.5 or lower. When you are satisfied with the effect and you see some banding or grain noise in smooth surfaces, you can start increasing the Surface Smoothness.

 

 

Ultra-Contrast

More dynamic process than the previous method with more grainy, contrast result, but also more saturated colors. It could be adjusted to the point where the image looks more like a graphics.

 

Instead of Saturation parameter we have Natural/Saturated slider. This is named like that because the saturation itself is not actually adjusted. When the slider is in right position (1.0) the image is processed using a process that saturates images but it also better suppress grain noise in flat areas. In the left position (0.0) the image is processed using similar process that0 however produce more natural looking image, reminiscent of a grainy contrast photography, with a grain noise in flat areas. Choosing values in between will mix the processes.

 

clip0023

 

This Method is suitable for images with enough contrast such as landscapes, skies etc. It can significantly add grain noise in a smooth areas. You cam try to suppress the grain and banding with the Surface Smoothness, but it will also lower the overall contrast.

 

Sometimes, during the preview this method  may show number of crossing lines in a very bright areas:

clip0027

This is an artefact of preview scaling that is amplified by the grain process and it is a good indicator that there is not enough dynamic data in that particular area. It will disappear completely during final export. Nevertheless the area will still be over-exposed as result of not having enough dynamic range.

 

Smooth Compressor

The previous two methods produce an eye catching images, but they can also increase banding noise in smooth flat areas. This may become too visible in indoor images (on walls) or on sky with no clouds.

 

The Smooth Compressor method helps you to create balanced and noise free (no added noise) images.

 

clip0038

 

The parameters are:

Brightness - sets the overall brightness of the image

Lighten Shadows - lighten (dodge) shadow areas. Moving the slider too much to the right may create a negative effect of "glowing" shadows

Darken Highlights - darkens (burn) bright areas. This has usually more subtle effect

Saturation - saturation of the color

Radius - sets the radius of the filter, larger radius create a more visible halo.

 

Note: As you move the Lighten slider, the image tries to keep its overall brightness constant (by darkening the whole image). That means after certain point when too many places are lightened up, the image may actually become darker than before.

 

A typical process would be:

(1) Initially set both Darken Highlights and Lighten Shadow to zero and adjust the Brightness so there are no overblown highlights in the image and it has enough details in light areas. At this moment the image may look dark.

(2) Add Lighten Shadows to balance the image by dodging the dark areas.

(3) After that you may try to add Darken Highlights to burn the light areas (this has less severe effect than the Lighten Shadows slider)

 

clip0040

 

This process usually takes longer to calculate than any of the other methods.

 

Auto-Adaptive

A fast, adaptive tone mapping operator that produce smooth, natural results without over saturating or enhancing too much of contrast. The process automatically adapts to different images and there is just one color parameter - Vivid Colors.

 

clip0025

 

Instead of Dramatic Light settings as in the first two operators we have much smoother Light Radius and Strength. Changing Radius will change the overall feel and partially also contrast of the image. The Strength obviously affects the impact of the effect.

 

Result image is a good candidate for further image processing that produce well balanced image with a lots details in shadow and highlights.

 

Photographic

More advance smooth global tone operator with settings for Brightness, Color Saturation, Vivid colors and Color Sharpness. The result is more close to a traditional photography with a lots of detail over whole tonal range.

 

clip0026

 

Human Eye

Operator that balances the image contrasts and produce smooth looking image. You can adjust Brightness, Color Saturation and Vivid Colors. Additional parameters are Light Radius and Light Strength.

 

clip0027