I have an old image that I would like to use in a book. But it has some a blotch on it, as well as some other unsightly blemishes. I would like to try to "airbrush" it with Latex, if possible.
To model the scenario, consider the following MWE:
\documentclass{article}
\usepackage{graphicx,xcolor,tikz}
\usepackage{transparent}
\begin{document}
\usetikzlibrary{calc}
\def\blob#1#2{\draw[fill,rounded corners=#1*3mm] (#2) +($(0:#12+#1rnd)$)
\foreach \a in {10,20} { -- +($(\a: #12+#1rnd)$) } -- cycle;}
\begin{figure}[!htb]
\centering
\includegraphics[width=20em,height=33em]{example-image}\llap{\texttransparent{0.5}{\color{green}\rule{20em}{33em}}}
\end{figure}
\vspace{-125pt}\hspace{125pt}\begin{tikzpicture}
\blob{0.2}{1,3}
\foreach \a in {15,35} {
\fill[green!65!brown] let \p1 = ($(1,3)+(\a+20rnd:2rnd)$),
\n1 = {0.15*rnd}
in (\p1) circle(\n1);
}
\end{tikzpicture}
\end{document}
which produces the output
As you can see, there are a few blotches of different colors on the example-image.
QUESTION: If this were the image I want to use, without considering the Latex code which produced it, how may I make a reasonably good attempt at airbrushing out these blotches? Also, can somebody inform me as to how I may begin to eliminate one of the faint diagonals, as something similar appears on my actual picture as well?
Thank you.




