Mobile app version of vmapp.org
Login or Join
Sent7350415

: Display layer where luminosity is greater than fixed value I had a paper-and-ink image with a thick black border around it. Past the black border was very dirty white paper. I wanted to (using

@Sent7350415

Posted in: #AdobePhotoshop

I had a paper-and-ink image with a thick black border around it. Past the black border was very dirty white paper. I wanted to (using Photoshop) replace the dirty white paper with pure white, or possibly with paper texture cloned from other parts of the image.

I realized that there was a reasonable gap in luminosity between the border and the dirt, so I figured what I could do is pick a shade of grey somewhere inside that gap, let's call it the threshold, that's brighter than the border, and darker than the dirt. Then just use the polygonal lasso tool to select right down the middle of the black border (so no finicky feathered edges on the selection, just nice straight lines) and select the dirty trim around the image. Fill that area with white on a new layer, and then say "Display this layer wherever the background is brighter than the threshold, otherwise display the background." If I pick the right threshold value, that should have the effect of masking off the dirty white paper, but letting through the border, right? All without the need to do any tedious, risky manual work that might gnaw into the border.

But how can I do that? Is it even possible?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sent7350415

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kaufman565

I think what you try to do is this:


Copy the original layer
Hit D to reset your foreground and background colors
Use the stamp-filter on the copied layer Filter > Sketch > Stamp
Adjust Light/Dark Ballance (your threshold) and smoothness to your liking
Select the whole layer and copy it
Create a mask on your original layer
Alt+Click on the mask thumbnail
Paste the copied content from before
Invert the mask CMD or CTRL+I)
Delete the layer you used the stamp filter on
Create a white layer for your background

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme