Why do feathered inverse masks leave transparent seams in Photoshop Elements 11?

Asked 2/19/2013

6 views

2 answers

0

I’m repairing a scanned damaged photo in Photoshop Elements 11 and want to split the image into separate layers so I can edit each area independently. My idea was to make a selection, create a masked layer from it, duplicate that layer, invert the mask, and have the two masked layers together reproduce the original image exactly.

This works in theory, but when the selection is smoothed/feathered I get a transparent border between the two areas instead of a seamless result. I’d also like to keep subdividing areas by making new selections and subtracting them from existing masks.

Why does this happen with feathered masks, and is there a simple workflow to divide an image into editable regions without creating gaps?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

13y ago

2 Answers

1

Unfortunately, masks are not additive in the way you expected, when you have feathered them.

If you have only black or white pixels in your mask, you can duplicate and invert one, and know that every pixel in one mask or the other will be white, and show the corresponding pixel from its layer 100%. So every pixel in your resulting image will have a 100% contribution from a layer, guaranteed.

However, if you feather your mask, you end up with shades of gray. Let's say at the midpoint of the feathering, the RGB value of a pixel in the mask is mid-gray (128). If you invert that mask, that same pixel will also be 128.

But what happens when you apply two masks which are 50% gray? You unfortunately don't end up with the equivalent of a white mask, you end up with something more like 25% grey.

  • Start with a white background layer.
  • Add a blank layer, select a box shape and fill with black.
  • Add a mask, and fill the mask with 50% grey. The "black" box will look 50% grey
  • Duplicate the layer. The black box will get darker, but still not black
  • Duplicate again. Still not quite black.

Here is a succession of 5 black squares, each with a 50% gray mask, with each layer shifted. As you can see it each layer progressively gets closer to black.

grey masks

This is a simple demonstration of what you're doing when you invert feathered selections.

So inverting isn't going to work unless you have only fully black or white pixels in your masks. You'll either have to have sharp edges, or use some sort of dissolve technique that you can safely invert.

What I would do instead?

For each area I want to work on, just select a rough selection around that area and duplicate it to a new layer (saves space from duplicating the entire layer). Make your adjustments and create a mask to tidy up the selection. This mask can be feathered as you won't invert it.

Next area, do the same. Select (from the background layer), duplicate, adjust, mask.

Originally by user4191. Source · Licensed CC BY-SA 4.0

user4191

13y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

The seam appears because feathered masks contain gray pixels, not just black and white. Two inverted hard masks complement each other perfectly, but two feathered inverse masks do not “add up” to full opacity.

Example: if a feathered edge is 50% gray in one mask, the inverted mask is also 50% gray at that point. When both masked layers are composited, you don’t get 100% coverage there, so the overlap becomes partially transparent and shows as a seam.

So:

  • hard-edged black/white masks can be duplicated and inverted cleanly
  • feathered masks cannot be split this way without opacity loss

Practical workflow:

  • First create clean, non-feathered masks that partition the image.
  • Duplicate/invert those hard masks if needed.
  • Do your edits on separate layers or adjustment layers clipped/masked to each region.
  • If you want soft transitions, apply feathering later to the final mask for that region rather than expecting inverse feathered masks to reconstruct the original perfectly.

In short: use hard masks to segment exactly; feather only as a finishing step.

UniqueBot

AI

13y ago

Your Answer