Page 1 of 1

rain drops removal

Posted: December 22nd, 2023, 12:32 pm
by johnp
I took a photo on a recent trip during a storm and my lens got a some rain drops on it.
Does anyone have any ideas on how to minimize their effects?
raindrops.JPG
raindrops.JPG (87.47 KiB) Viewed 2111 times
Thanks!

John P.

Re: rain drops removal

Posted: December 22nd, 2023, 1:27 pm
by tomczak
One idea that may improve things a little automatically is trying the Dehaze transformation.

Re: rain drops removal

Posted: December 22nd, 2023, 1:36 pm
by tomczak
Another way I can think of is trying to use the Levels and Colour Tool, with a large radius, to selectiely increase saturation, contrast, and dynamic range for those spots while decreasing their mid tone brightness (and possibly shifting colour balance a little warmer for those spots).

Re: rain drops removal

Posted: December 22nd, 2023, 3:25 pm
by jsachs
Mostly what this need is subtracting white using a mask that isolates where the raindrops are. Getting the mask exactly right is the hard part.

The Hotspot transformation also does a fairly good job removing one raindrop at a time. The two drops near the sky line are the hardest to remove, in part due to some color fringing.
Rain.jpg
Rain.jpg (80.16 KiB) Viewed 2100 times

Re: rain drops removal

Posted: December 23rd, 2023, 7:51 pm
by johnp
Thanks for the replies. I did some initial playing with the hot-spot tool and it seems to work
pretty well. I think with the tips so far I can salvage the image.
Thanks!!!

John P

Re: rain drops removal

Posted: December 26th, 2023, 6:20 am
by jsachs
For the next release, I am adding Add and Subtract modes to the Paint tool. Subtracting white with a soft, mostly transparent brush lets you gradually paint away the raindrops quite effectively.

Re: rain drops removal

Posted: December 27th, 2023, 9:56 pm
by johnp
Jonathon -

It is such a pleasure to use Picture Window Pro. I mentioned a problem (the rain drops) and you've added
a new feature to help deal with it.

This reminds me of working with a Japanese developer of a cheap/free Verilog simulator (that I still like to use) that
was extremely responsive to bugs reports, feature requests, etc.

This makes it a joy to deal with products/tools wit support likes his.

Many, many thanks.

John P

Re: rain drops removal

Posted: December 27th, 2023, 10:35 pm
by jsachs
It was useful to see a fairly common problem which got me thinking about different tools for dealing with it, so I appreciate your input as well.