It is currently Sun Jun 30, 2024 5:06 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Remove Stain from Image
PostPosted: Tue Apr 06, 2021 7:07 pm  (#1) 
Offline
New Member

Joined: Apr 06, 2021
Posts: 2
GIMP Version: 2.8.14
Operating System: Windows
OS Version: 10
GIMP Experience: New User



I have an image of a map that has a stain on it in multiple places. I am trying to get rid of the stain. I have tried Colors/Map/Color Exchange... and Colors/Map/Rotate Colors... without success. I think I am missing a step from the Color Exchange because it never does anything even though it appears to be working. There are two primary background colors. One where the stain is over water and one where it is over land. Both are quite close in color though. I could use masking or something else for these areas, but I can't do that for all the words and lines. What is the best approach to fixing this?


Thanks for any suggestions.

Here is a small part of the map.

Attachment:
map.PNG
map.PNG [ 649.74 KiB | Viewed 19911 times ]


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Remove Stain from Image
PostPosted: Tue Apr 06, 2021 8:07 pm  (#2) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
A quick try.
Removing the stains and using masks to restore the original colors was my attempt, but the process would require attention to detail and some time availability.

There must be a technique that is faster and more efficient, perhaps some G'MIC filter.


Attachments:
cleanMap.jpg
cleanMap.jpg [ 83.29 KiB | Viewed 19895 times ]
Top
 Post subject: Re: Remove Stain from Image
PostPosted: Tue Apr 06, 2021 8:14 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Image

I found there was an inner discoloration and an outer discoloration.
I duplicated the layer and only worked on the top layer.
G'MIC > details > freaky details (because you lose print clarity with next operations)
Free-selected with fuzzy select the inner portion of stain. I used colors > curves to lighten it and then did the same with the outer stain. May have to do the text details again with freaky details.
Then adjust opacity and lower layer to original.


Top
 Post subject: Re: Remove Stain from Image
PostPosted: Wed Apr 07, 2021 3:04 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
Use the Wavelet decompose, after decomposing, two different techniques:

1) Use Filter>Blur>Pixellize to completely blur (replace by its own average) the Residual layer (and possibly the layer immediately above):

Attachment:
BlurredResidual.png
BlurredResidual.png [ 628.54 KiB | Viewed 19856 times ]


2) Copy the Residual filter to the top (above the decomposition group) and set it to "divide" mode:

Attachment:
DivideResidual.png
DivideResidual.png [ 362.24 KiB | Viewed 19856 times ]

_________________
Image


Top
 Post subject: Re: Remove Stain from Image
PostPosted: Wed Apr 07, 2021 1:56 pm  (#5) 
Offline
New Member

Joined: Apr 06, 2021
Posts: 2
Thanks for these tips. I will try them after work today and tomorrow.


Top
 Post subject: Re: Remove Stain from Image
PostPosted: Wed Apr 07, 2021 10:30 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7742
Location: On the other side of this screen
Using the Clean text filter (under repair) in GMIC would also give you something to overlay to get your text back
Image

_________________


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) AI Remove image background(use rembg)

49

No new posts I need to remove a hand from a photo

3

No new posts How to remove halo around ink drawings? (for anime)

3

No new posts Attachment(s) How do I remove the mask after using Fuzzy Select?

4

No new posts Attachment(s) Remove only black spots in scanned documents?

2



* Login  



Powered by phpBB3 © phpBB Group