Sub topic 14
Selecting subject, sky and tonal ranges automatically
This chapter assumes you can open the Camera Raw filter on a Smart Object, that you know the Basic panel sliders, and that you have made a brush or gradient mask (the previous chapter). Here you will build masks without painting: Select Subject, Select Sky, Select Background, and the Range masks for color, luminance and depth.
What automatic masks are
In the Masking panel of the Camera Raw filter, the top row offers one-click mask types. Each one analyzes the pixels, builds a mask, and creates a mask with its own set of adjustment sliders. A mask is a grayscale map that says how strongly an adjustment applies to each pixel. White means full effect, black means none, and gray means partial.
The main automatic types are:
- Subject: finds the most prominent subject, such as a person, animal or object.
- Sky: finds the sky region.
- Background: finds everything except the subject.
- Objects: you draw a loose rectangle or brush stroke around an item, and Camera Raw refines the mask to its edge.
- People: detects individual people and offers parts such as face skin, eyes, hair and clothes.
- Color Range, Luminance Range and Depth Range: build a mask from a sampled color, a brightness band, or distance from the camera.
Subject, Sky and Background analysis uses a machine-learning model. The result is a starting point. Always inspect it before you rely on it.
Creating a Subject or Sky mask
- Choose Filter > Camera Raw Filter on a Smart Object layer.
- Click the Masking icon in the right-hand toolbar.
- Click Subject or Sky. Camera Raw analyzes the image and shows a red overlay on the selected area.
- Set the adjustment sliders in the mask's panel, such as Exposure, Highlights, Dehaze or Temperature.
- Click OK to commit the filter.
Turn on Show Overlay to see the mask. Its default is a red tint, and you can change the overlay color if the tint is hard to see against your image. Press the Y key to toggle the overlay.
A common use is to darken a washed-out sky with a Sky mask. Lower Exposure by about 0.5 and Highlights by about 30, then add a little Dehaze. Because only the sky is selected, the foreground stays unchanged.
Refining a mask with Add and Subtract
Each mask has Add and Subtract buttons. Use them to combine tools. A mask is built from components, and each component adds to or subtracts from the result.
The common recipe:
- Create a Subject mask.
- Click Subtract and choose Brush.
- Paint over any area that was wrongly included, such as a shadow on the ground.
- Click Add and choose Brush to paint back areas that were missed, such as flyaway hair.
You can also intersect. Choose Add or Subtract, then Intersect With in the mask's menu to keep only the area two components share. For example, intersect a Sky mask with a Luminance Range mask so a change affects only the brightest part of the sky.
Range masks
Range masks select pixels by a property instead of by shape. They work well for fixes that follow tone or color.
Luminance Range
Luminance Range selects by brightness. Click the Luminance Range tool, then click the image to sample a brightness value. Adjust the Range slider handles to set the band. Use the Smoothness slider to soften the transition. A low Smoothness gives hard edges and can create visible halos or banding. A higher value blends more gradually.
Use it when you want to lift only the shadows in a specific area, or darken only the brightest highlights.
Color Range
Color Range selects by hue. Click the eyedropper on a color, such as a blue jacket. You can Shift-click to sample several points and widen the selection. Adjust Refine to change how wide a spread of similar colors is included.
Use it when a color adjustment would otherwise spill onto a similar color elsewhere. The Color Mixer from earlier chapters changes a color everywhere in the image. A Color Range mask limits the change to the area you choose, which you can combine with a brush or gradient.
Depth Range
Depth Range selects by distance. Drag the range to include the near, middle or far part of the scene, and use Feather to soften the edges. It is useful for darkening a distant background or for adding haze only to far objects.
Working with People masks
When the image contains people, the People section lists each detected person. Select one, and you can choose parts to mask:
- Face Skin and Body Skin
- Eyebrows, Eyes and Lips
- Teeth
- Hair
- Clothes
Select the parts you want and click Create Mask. You can create a separate mask for each, so you can brighten eyes without changing skin. Each created mask keeps its own sliders.
Checking and correcting results
Automatic masks fail in predictable ways.
| Problem | Typical cause | Fix |
|---|---|---|
| Sky mask leaks into trees or buildings | Thin branches or a bright roofline against the sky | Subtract with a Brush, or intersect with Luminance Range |
| Subject mask misses hair or fur | Fine edges against a similar-colored background | Add a Brush with Auto Mask turned on |
| Subject mask includes a shadow or reflection | Similar tone to the subject | Subtract with a Brush |
| Wrong item selected as the subject | Several prominent items in the frame | Use Objects instead, or add and subtract by hand |
| Halos along an edge after a large adjustment | Hard mask edge | Lower the adjustment, or feather the edge |
| Depth Range option is missing | File has no depth map | Use Luminance Range or a Gradient |
Turn on the overlay and look at edges at 100% zoom. A mask can look correct when the whole image fits the screen and still show a halo at full size.
Managing several masks
Each mask appears in the list in the Masking panel. You can rename a mask by double-clicking its name, which helps in a file with many masks. To hide one, click its eye icon or press Y for the overlay. Delete a mask by selecting it and pressing Delete.
Duplicating a mask copies its shape and its sliders. It is useful when you want a second adjustment on the same area, for example one mask that cools the sky and another that darkens it.
Remember that the filter is applied to a Smart Object. If you reopen the Camera Raw filter later, all masks reload and stay editable. Subject and Sky masks are recalculated from the pixels, so if you change the layer underneath, for example by editing the Smart Object's contents, the result may shift. Check the overlay after such a change.
Exercise
A Sky mask darkens the sky well, but the edges of some tree branches show a bright halo. You do not want to repaint the whole mask. Name one approach that fixes this using a Luminance Range mask.
Show answer
Intersect the Sky mask with a Luminance Range mask that selects the bright sky tones only. The dark branches fall outside the brightness band, so they drop out of the mask. Raise the Smoothness slightly to avoid creating a new hard edge.
Exercise
You open a phone portrait-mode photo and a standard raw file. Depth Range is available only in one of them. Which one, and why?
Show answer
The phone portrait-mode photo. Depth Range needs a depth map stored in the file, and phones in portrait mode record one. A standard raw file from most cameras contains none.