Jump to content

Subtract one layer from another


Recommended Posts

I have a set of images that were all created with the same background elements. By combining sections of these, I've recreated the original background. Now I'd like to use that composite to remove the background from the original images. But I cannot figure out a way to do that. What I want is the ability to replace all the pixels in layer A with either white or with nothing if they match the pixel in layer B. Is there a layer blending mode that will do this that I'm not finding, or some combination of blending multiple layers that can achieve this?

Link to comment
Share on other sites

Try the XOR blend mode. It replaces matching pixels with black. Pixels that don't match will be colored.

Link to comment
Share on other sites

Is there any way to get pixels that don't match to either be 100% or 0% transparent?

 

XOR gives me very similar results to Negation - lots of black where the images are the same, and wild technocolor where they're different.

 

My end goal is to use the background that I've assembled to easily remove the background on a stack of images, replacing it with either white or transparency, and I'm trying to find a way to do that without having to try and select edges and manually erase pixels from each individual image.

Link to comment
Share on other sites

That's getting me back to the problem I was originally having though - getting the wand to select the background and not bleed into the image that I'm trying to keep. If there was a binary output - either black to indicate a match or white to indicate a difference, that would work really well.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...