5 Replies Latest reply on Dec 14, 2017 10:13 AM by Miguel Curto

# Q:Why inverting a feathered mask isnt pixel perfect?

Ok, this one had me puzzled for a long long time, and I've accepted and found work-arounds to cope with it but its something I quite can't still understand why.

When one inverts a feathered mask there's always some pixel gap between that one and previous and never understood why.

Like the example If I put a black layer with a feathered (say 1px) mask and duplicate that layer and invert mask, I think its safe to assume one would expect a full black rendering, but it isn't so.

Any ideas why?

Ty

• ###### 1. Re: Q:Why inverting a feathered mask isnt pixel perfect?

The mask is feathered so the edge pixels are not fully masked in the feathered area. That's the nature of feathered masks. It's working as expected. If you don't want a gap, avoid feathering and use a hard-edge mask.

• ###### 2. Re: Q:Why inverting a feathered mask isnt pixel perfect?

I'm sorry but I need a little more elaborate than "nature of it", from my view any thing inverted should be "Absolute" inverted.

Any feathered mask is a ramp from black to white in mask, from I gather the two grey areas (50% ramp) should coincide, but they dont.Could be to the number of steps being a odd number (as opposed to even), I really don't know so was hoping for a bit more technical reason why.

I do need  feathered masks frequently and need to work with the inverted ones, my work around usually is to apply some more feather than needed and use Levels on both to displace them a bit.There can be other work-arounds thought, that's why I'm asking.

• ###### 3. Re: Q:Why inverting a feathered mask isnt pixel perfect?

Feathering is a radius. With a 1 pixel feather, you actually have 2 pixels, one of each side of the edge. Hope that helps.

• ###### 4. Re: Q:Why inverting a feathered mask isnt pixel perfect?

I have a hunch (not tested) that it's because of grayscale gamma encoding. The mask is a grayscale image, as per your working gray.