Semi-automatic healing of white dust spots
I have trouble with dust getting into the scanning process of printed photos. I know, I know - work harder on avoiding the dust in the first place. I will, but I will never eliminate it, and I'm getting ready to scan a LOT of photos. The content-aware Spot Healing Brush does a magical job, but it's laborious to click on all the spots one by one. While doing that on a a particularly dusty scan of an old 8x10 aerial photo of a marathon (see small snippet below), I decided to look for something more automatic. Because it was scanned at 1200dpi, the image content had no sharp color changes, making the dust distinctive by sharpness. I tried the Dust & Scratches filter, but even at a setting of only 2 or 3 pixels, I was not happy with the effect on the image content, and a setting of 1px didn't catch enough of the dust.
So my engineering brain started imagining how the various smarts of Photoshop could theoretically be combined to automate it, and I thought I'd ask if something like this is possible. Given a scan at a high resolution like my sample below, so that the dust is much sharper than any content, I imagine a tool doing something like this:
- Select all areas of white (or nearly white - perhaps a threshold like the Magic Wand tool has) that have edges sharper than some threshold (e.g. a luminosity change of at least 50 within 2px).
- Apply the same technology as the Spot Healing Brush (content-aware) to each of those selected areas.
Naturally that wouldn't catch everything - there are occasionally defects that are dark instead of light (dust in the camera instead of the scanner) or particles that are translucent, but the ugliest ones are the bright white ones, and I would happily do additional touches manually if a tool could eliminate the specks like this.
Does anything like this exist in Photoshop, or can I kluge a macro from existing tools? I'm also open to suggestions of third-party tools (PS plugins or standalone tools for Windows) if free or not too expensive.




