Rich42 Posted August 6, 2024 Posted August 6, 2024 Hi there, I wonder if anyone can give me some advice or help. I have a scan of a drawing, the paper has become very stained and I want to remove this and leave just the pencil drawing. I have tried a few tools on Photo 2 but I'm not particularly getting anywhere. Can somebody suggest how I could go about this please. I've attached screen shot of what I'm trying to work with. Thanks Quote
Ldina Posted August 6, 2024 Posted August 6, 2024 @Rich42 I played around with this and found it to be quite a challenge. You have at least two impediments....color and contrast. Some of the thin pencil lines are lighter than the reddish blotches, which makes it tough to isolate and retain them based on luminosity. Zooming in, I saw that the color also permeates the gray pencil lines, which makes it hard to isolate by color. Without a lot of manual cleanup, I suspect you will have to settle for 'improvement'. Someone may have some far better solutions. I tried a few things. Frequency Separation (Median Blur method seemed to work best). Keep the high frequency layer and turn the low frequency layer white. Then try things like noise reduction, desaturating, etc.. I also tried Detect Edges, then inverted it, applied some noise reduction, Levels, etc. My third attempt used a very steep Curves Adjustment to darken the pencil lines. I followed this with an HSL adjustment, targeting the reddish color and desaturating it (-100%) and increasing the luminosity (+100%). Unfortunately, it's still pretty blotchy due to the fact that many of the blotches are darker than your thin pencil lines. One additional approach is to look at the individual red, green and blue channels. Not surprisingly, the Red channel seems to be the cleanest of the bunch (since the color cast is primarily red) and provides the best separation between pencil lines and the reddish coloration. Create a Grayscale Layer based on the Red channel as a starting point. You still have the problem that blotches are darker than many of your thin pencil lines. Perhaps employing an AI alternative will do a much better job, but I have almost no experience with artificial intelligence. Hopefully, someone here can provide a better solution. Quote 2024 MacBook Pro M4 Max, 48GB, 1TB SSD, Sequoia OS, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish, Wacom Intuos 4 PTK-640 graphics tablet, 2TB OWC SSD USB external hard drive.
carl123 Posted August 6, 2024 Posted August 6, 2024 Add a Black & White adjustment Layer (make sure the adjustment layer is a child layer of the Image, not above it) Max out the yellow slider in the Black & White adjustment Layer Duplicate the Image Layer (including the adjustment layer) Set Blend Mode on the duplicated layer to Linear Burn for a bit more of a contrast Can't tell if that works for the rest of the document, due to only having a small sample to look at Note: You may be able to increase some more of the details but no time to play with that today PaoloT and Ldina 2 Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
NotMyFault Posted August 6, 2024 Posted August 6, 2024 I would utilize the colors of the scan. The red channel looks much cleaner than green and blue. The mold has actually green/blue color, so we can use this to selectively suppress the mold and keep the contrast between paper and lines drawing high add channel mixer Red channel increase red to about 160 subtract green -35 subtract blue -35 green and blue: set to zero add another channel mixer to use red channel for all RGB channels add curves adjustment to boost contrast maybe sharpen a bit scan clean.afphoto Ldina and PaoloT 2 Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
Ldina Posted August 6, 2024 Posted August 6, 2024 @carl123, @NotMyFault Both superior methods!! Thanks. NotMyFault 1 Quote 2024 MacBook Pro M4 Max, 48GB, 1TB SSD, Sequoia OS, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish, Wacom Intuos 4 PTK-640 graphics tablet, 2TB OWC SSD USB external hard drive.
thomaso Posted August 6, 2024 Posted August 6, 2024 1 hour ago, carl123 said: Add a Black & White adjustment Layer (make sure the adjustment layer is a child layer of the Image, not above it) Max out the yellow red slider in the Black & White adjustment Layer 2a. red max. / yellow as you like. 3. Add a Levels Adjustment -> move the Black slider to increase contrast as you like. 4. Thanks to @carl123 PaoloT 1 Quote • MacBookPro Retina 15" | macOS 10.14.6 | Eizo 27" | Affinity V1 • iPad 10.Gen. | iOS 18.5. | Affinity V2.6
Rich42 Posted August 6, 2024 Author Posted August 6, 2024 This is brilliant, thank you all for your help. I shall give this a go. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.