appliedinsights.net


Imaging Tutorial #3: AiPICT v8 and AiPICX v8

You can save/print this file for offline reference. This page is best viewed with a 1024x768 display (or higher).
Download this entire tutorial with test images for experimentation here.


Combining Bitmaps: Shadows, Midtones and Highlights

In previous lessons, we demonstrated methods for color balancing and contrast enhancement. As our eyes are particularly sensitive to changes in contrast (i.e., luminance changes) it is useful to segment three target areas for image improvement:

Common image processing functions that manipulate brightness and contrast affect all three segments simultaneously -- usually at the cost of degrading one segment for another. Significant improvement in image quality can be achieved by selectively manipulating shadows, midtones and highlights. Lets continue from the previous lesson (i.e., remapping colors) ...

Use the default value detected for adjusting highlights. Highlights slider was set to "238". Adjust the Gamma slider to lighten more of the shadows; it is set to "105". Finally, adjust the Mask slider to "39" to avoid overexposure by blending some of the original highlights and midtones. The "white" of the eyes are now more visible; also, shadows around the eyes and cheekbones have been lightened.

By adjusting Highlights, brightness was improved from midtones and up. Adjusting the Gamma control boosted midtones and some shadows. Finally, the Mask slider tweaked the enhancement by combining some of the original highlights and midtones to avoid overcompesation effects. We can still do better in our pursuit of the "perfect picture".

The shadows could still be a bit darker and the highlights could take a little boost. Yet, we want to keep all modification to midtones. Using the Optimize method, the entire picture is remapped for maximum contrast -- i.e., it remaps to span the widest possible range between shadows and highlghts - affecting midtones in the process. The Mask control of the extended Optimize function, keeps existing midtones in variable amounts. Here we set it to "182". Viola! All modifications to midtones are kept, while maximizing shadows and highlights.

 original  color balanced  masked midtones

Summary: After remapping, colors were balanced. In this lesson, midtones and highlights were selectively enhanced. Photos, more often than not, contain "invisible" information; isolating changes to tonal ranges (i.e., shadows, midtones, highlights) surfaces the "invisible" information in your photos.


Smoothing and Sharpening

Images with high signal-to-noise ratios are perceived to be more pleasant to look at. Smooth images have low noise, while well-defined edges are perceived as having greater detail (or signal). As a goal, we want to have a very smmoth image with well-defined edges.

Using the output from previous lesson (i.e., masking midtones) ...

In this example we set the Filter slider to maximum (i.e., "255") and modify its effect slightly by setting the Effect slider to "192". The sharpened image has well defined edges. Details, such as individual hair strands, are now visible. JPEG artifacts (i.e., noise) inherent in the demo image have also surfaced. We need to clean the noise.

To clean the noise on her person, we first have to isolate the flesh tones. On the "Original image" pane, click a pixel on her cheek to select a flesh tone. By adjusting the HLS (Hue, Luminance, Saturation) bands the range of selected colors varies - as displayed by the purple mask. To see a preview of the smoothing effect, uncheck the "Modified image (show mask only)" box.

Summary: After color correction and contrast enhancement, the signal-to-noise ratio of the image can be enhanced by selectively smoothing and sharpening the image. Many magazine images are manipulated to optimize signal-to-noise ratios in this manner to enhance "glamour". You can apply the same techniques to your photos with these techniques.

 original  color balanced  final result

Return to Index   |   Next Lesson