Image editing with Picture Window Pro:
Example: Sunset, Providence, January 1962
by Norman Koren

Site map/guide to tutorials
Contact | News

Making fine prints in your digital darkroom
Understanding image sharpness and MTF
Image galleries / How to purchase prints
Photographic technique
Image editing with Picture Window Pro

A simplified zone system
Canon FS4000US 4000 dpi scanner
Epson 2450 flatbed scanner
Digital vs. film | Canon EOS-10D
Building simple web pages
updated Jan. 4, 2003
Color Management by X-Rite  Canon  Epson  HP  i1  Eye-One - Densitometers - Spectrophotometers - Eizo - Canon Large Format
 
Help support this site by linking to these merchants
or

In Association with Amazon.com
for books & merchandise

for all your photographic needs



View image galleries

Google

Search WWW Search www.normankoren.com
Table of contents

for Image editing with
Picture Window Pro

Introduction | Making masks
Contrast masking
Tinting and hand coloring B&W images
Example: Sunset, Providence
Introduction  |  Color Curves
Making the mask  |  Using the mask
Color curves  |  Sharpening  | The result



for the Making Fine
Prints series
Getting started | Light & color
Pixels, images, & files | Scanners
Digital cameras | Printers | Papers and inks
Monitor calibration and gamma
Printer calibration | Scanning | Basic image editing
Black & White | Matting and framing
Tonal quality and dynamic range in digital cameras

Color Management: Introduction | Implementation
Profiles with MonacoEZcolor | Evaluating profiles

.
This page illustrates how to use Picture Window Pro to turn a raw scan into a fine image using masking, color curves and the remarkable color correction transformation.

Introduction: Providence, Rhode Island, January 1962

The January night was frigid, but the sky above Providence, Rhode Island was aflame with brilliant light that transformed the workaday world into a magic reality. As I scurried about the western slope of College Hill trying to capture the beauty of the moment, I wondered if anyone else noticed. I was carrying my first adjustable 35mm camera-- the Graphic 35. I couldn't afford the Nikon F I'd fondled the previous summer-- I was an Ivy League freshman from a working class family. The Graphic 35 was pretty decent-- its lens was sharp in the center and it didn't freeze. It did the job.

The Kodachrome slide came out beautifully. I made a Cibachrome print in the late 1970s using an elaborate mask to lighten the foreground relative to the sky. I made the mask by projecting the image half size, tracing the edge of the buildings, then cutting the outline with a scissors. I carefully positioned it in a fixture about half way between the enlarging lens and the easel, aligning it with a drawing of the edge. I exposed the masked sky, then removed the mask and exposed the entire image. Very tedious.

The cyan dye in the Cibachrome is somewhat faded (it was displayed in a bright room) but the slide is remarkably well preserved. The image below is straight out of the scanner without adjustment. It is bluer than the slide, and there is a significantly more embedded dust (or fungus or whatever) than there was in when I made the Cibachrome. It seems to have fared more poorly than other slides in the same plastic sleeves. Infrared dust removal in scanners doesn't work with Kodachrome, so I had to do a lot of cloning. The image looks pretty good with a little color adjustment-- more yellow (the compliment of blue). But it needs additional work to recapture the timeless feeling of that cold January evening, over forty years ago.

Providence sunset as scanned, unedited

First step: dust removal

The first step is to remove the dust using the Clone or Speck Removal tools. I generally prefer Clone because it preserves the grain structure; the Speck Removal tool tends to blur the corrected area slightly. But sometimes it works better in tight edge areas where the Clone tool is awkward. I keep most of Clone's default settings: Transparency: 50, Softness: 50, and Spacing: 25%, but I often change Radius from its default of 3.0, especially in the sky, where editing procedes faster with a larger Radius.  Dust removal is discussed in detail elsewhere.

Polaroid has an excellent Dust & Scratch Removal Utility, which operates at a standalone program or as a Photoshop plug-in. It's a big time saver for dirty images like this one with lots of scratches and dust specks. You can download it for free. You'll see a somewhat intimidating questionnaire that asks for your scanner model and serial number. You don't need to answer.

Balance the image with Color Curves

The next step is to correct the overall color balance. Picture Window Pro has several approaches including Filter, Color Balance and Levels and Color, but my favorite is the Color Curves transformation, which allows you to adjust the contrast curve for each color. This gives the finest control. Click on the input image, then click on Transformation, Color, Color Curves. This versatile transformation has a histogram in its dialog box (below, left), and can work in three color spaces: RGB, HSV (Hue, Saturation, Lightness: reduces saturation as you darken the image), and HSL (Hue, Saturation, Value: increases saturation as you darken the image). HSV and HSL work best for adjusting tones and saturation; RGB is best for balancing color. Click on the Show Histograms icon(by the red arrow, below), to bring up the display shown below in the Color Curves dialog box. I find this display most useful for making adjustments.

The image below illustrates the Color Curves transformation for the B (blue) channel in RGB color space. Since the highlights in the image (the sky) are excessively blue, we reduce blue levels considerably. The extra control points (there were two at the beginning) were added by shift-clicking on the upper bar of the histogram. They can be removed by control-clicking. Adjustments to the other channels (R and G; not shown) are not as large.

An important adjustment, where the histogram is a particularly helpful, is to reduce the darkest tone in the image to pixel level 0 (pure black; the left of the histogram). We do this for each of the three channels. This is important for ensuring high print quality in virtually all images that have shadow regions (and that encompasses virtually all images). An image that doesn't have deep black tones in the darkest shadows appears weak and washed out. Aesthetic judgment plays a strong role in these settings: when an image has too much deep black, shadows can appear lifeless.

The images below have been shrunk for Web presentation.

Making the mask

A mask is a Black & White (grayscale) image with the same pixel dimensions as the image to be edited (the input image). Its purpose is to select portions of the image to be altered. Masks work with transformations that adjust brightness, contrast, color, sharpness, and more. They are discussed in detail in Making and using masks.

For this image we create a mask so we can adjust the foreground and sky separately: the foreground contrast must be increased and the sky must be darkened. In making the mask we must pay special attention to edges: flare light blurs the boundary between the foreground and sky, especially on the left, where the sky is brilliant yellow. If the mask is too sharp or too blurred, adjustments will make the boundary appear artificial. The goal is to design the mask so the boundary looks natural, even to experienced photographers. We accomplish this by making the mask gradual where the boundary is gradual.

To create the mask, click on the input image, then click on the Mask tool or Mask, New to bring up the mask dialog box, shown on the right. The initial tool for creating the mask is Color Range, which selects areas based on color properties. To select the sky, click on the sky near the boundary, then click on Contract. Now move the cursor along the sky side of the boundary, keeping the shift key and the left mouse button depressed. As you move the cursor, the selected areas, which appear white in the HSL sliders, will expand. Take care to cover all representative areas of the sky near the boundary.

Now the important trick. To make the boundary gradual, rather than abrupt, manually reduce the left black L (lightness) slider setting, indicated by the red arrow below. Click Apply to view the mask. To refine the settings, click on None to remove the mask, adjust the sliders, then click Apply again. If you've adjusted the sliders well, the transition at the boundary will look similar for the image and the mask. But the mask is not yet complete. Unmasked regions in the sky and masked regions in the foreground remain. The mask at this stage is shown on the left, below.

To complete the mask you must edit manually, using Paint or Freehand Outline with Mask mode set to Add in the sky and Subtract in the foreground. The final mask is shown on the right, below. Examine the mask carefully: set Mask display to Mask only, magnify the image and scroll around it. Touch up any pinholes you may have missed. When you are satisfied, click OK to open the mask as an independent image. You can always edit it later if needs be.
 

Color Range L-slider manual setting
Original mask Mask after manual editing

Editing with the mask

Once we have the mask we can correct brightness, contrast and color in the sky and foreground separately. Here we illustrate the adjustment on the sky.

Click on the input image, then click on Transformation, Color, Color Curves. Click on the Show Histograms icon to bring up the display shown in the dialog box on the right. I perfer to work in HSL color space, where maximum L corresponds to white (it corresponds to a saturated color in HSV), and saturation is increased when L is reduced.

To apply the mask, click on the box to the right of the Amount slider. A list of masks loaded in Picture Window Pro is displayed. Select the appropriate mask. The mask we just created is shown.

For HSL color space you can adjust the H, S, or L channels individually by selecting from the second box to the right of Color Space. L is shown. I added two control points by shift-clicking on the upper bar of the histogram, then made the adjustments. The control points can be removed by control-clicking. Saturation (S) has also been increased.

In the image on the right, the Preview window is shown on the upper right. The input image is in the background on the left. To complete the adjustment, click OK. The foreground is adjusted separately, using Color Curves with the white Amount slider set to 0.0% and the black slider set to 100%

Fine tuning

A number of fine adjustments were made, mostly with Color Curves. We'll skip the details. Most of them were the result of aesthetic judgment-- darken the sky a little, adjust saturation, balance colors, play with the forground contrast, etc. But we will describe the most important of the adjustments: using the Color Correct transformation to correct for the green flourescent office lights in the windows. Color Correct is a powerful transformation that adjusts a single color and its close neighbors, but leaves the overall color balance unchanged. It is sold separately as a Photoshop plug-in called Color Mechanic.
Using Color Correct (Color Mechanic)
Click on the input image, then click on Transformation, Color, Correction...  This brings up the dialog box shown on the left of the above image. The mask created earlier is used to protect the sky against change, but the Amount slider settings are reversed from their default: white (the sky) is set to 0 and black (the foreground) is set to 100%. Be sure the Probe button is activated: it should be, by default, when Color Correct is opened.

To add a control point, click on a point you want to alter in the input image. If you need to, you can change the probe size with the OPT button. A black square appears on the Color Wheel. Click on the black square and move to the cursor to the desired color while pressing the left mouse button. The final cursor position becomes the head of an arrow. The change appears in the Preview window. You can add additional control points by repeating this procedure. The most recent point has the black square at its end; the others have circles. You can click and drag on an arrowhead to modify an adjustment. The two control points shown were opened by clicking on two greenish portions of the windows, one darker than the other. When you are finished, click OK.

Color Correct has a number of useful features. You can

The Radius slider determines how closely colors must match those of the control points to be affected by the transformation: the smaller the value, the closer the color must be. You can observe the effect of the Radius slider by checking Show Modified Color Wheel.

Sharpening

The final step is sharpening the image. As we discussed in Understanding image sharpness, Part 2, sharpening benefits almost any image. It works by making edges more abrupt. But it must be applied carefully to avoid enhancing grain and defects, which are most noticeable in smooth areas like skies. Sharpening should be restricted to edges and textured areas.

To make sure no sharpening takes place in the sky, apply a mask. Here, we use the same mask that we used for separately editing the foreground and sky. It's a good idea to take a close look at the boundary between the sky and foreground before applying the mask-- the image should be enlarged to 1:1. You may want to feather the mask. To do so, click on the mask, then click on Geometry, Copy. This allows you to leave the original mask unchanged. Now click on the input image, click on Mask, and select the copy. Click on Feather . Adjust Radius by a few pixels (5-10 usually works fine): positive to enlarge the mask (to sharpen the edge less), negative to shrink it (to sharpen it more). Click Apply, then OK. Now we're ready to sharpen.

Click on the input image, then click on Transformation, Sharpen... This brings up the Sharpen transformation dialog box with the default method, Sharpen. Enlarge the Preview window to 1:1so you can observe the effects of sharpening. (This also speeds the preview.) Click on the window to the right of the Amount slider to select the mask. Since we are sharpening the foreground and not the sky, reverse the Amount settings. Move the white slider (the masked sky area) to 0 and the black slider (the unmasked foreground) to 100%. Select Method: Unsharp Mask. This allows you to set the Radius and Threshold for finer control. When Threshold is set larger than 0, adjacent pixels that differ by less than the threshold are unaffected by sharpening. The best Radius setting depends on the sharpness of the input image: the sharper the image, the smaller the radius.

Try out different Radius, Threshold, and Amount settings, observing their effects in the Preview window. Use the smallest Radius that gives effective sharpening. Set Threshold high enough to keep that grain in smooth areas from looking nasty, but not so high that edges are compromised. If you observe overshapening-- harsh, exaggerated edges, reduce Amount below 100%. When you are pleased with the result, click OK.

The result

Sunset, Providence: final version
About as close as I can get to recapturing that magic sunset.
 .


Images and text copyright © 2000-2014 by Norman Koren.
Norman Koren lives in Boulder, Colorado, founded Imatest LLC in 2004, previously worked on magnetic recording technology. He has been involved with photography since 1964.