Clean CCD Noise

This script helps fix noise found in digital camera pictures.

Important:

G'MIC must be installed! When this script calls up the G'MIC plug-in, select Bilateral Filter with default settings.

There seems to be some confusion as to what all this script does... So here's a short description of the procedure:

  • Duplicates the active layer
  • Calls G'MIC plug-in (requiring user to select the Bilateral Filter with default settings, then OK'ing)
  • This layer is duplicated (saved for later)...
  • The layer is subtracted from a copy of the original layer and ran through curves-spline to increase the contrast at the lowest end
  • Finally, this layer acts as a alpha mask for the original copied layer (from above)

The subtracted mask tempers dark spots found in browns (wood, some skin, etc). This is found with red / green highlights in the brown to begin with.... I believe.

Version 1.1 (2009 July 06)

  • Tempered darkening noise found in browns (wood)

Feedback welcome!

The script is located in "<Image> / Script-Fu / Enhance / Clean CCD Noise"

AttachmentSize
cleanccdnoise.scm2.68 KB

Comments

It does work for me

Using GIMP 2.6.7 and the latest release of G'MIC on Vista 64 bit.

I used the default setting as suggested and it actually added noise to my picture (or it could be that by removing a certain range of color it made other colors more prominent in the image). Which left me wondering if there is any control over which colors are sorted out.

Why not just call the function right up from G'MIC instead of having to hunt it down in enhancements? Or is that even possible?

Doesn't work for me

GIMP 2.6.7
G'MIC 1.3.2.8

"Execution error for 'Clean CCD Noise':"
"Error: eval: unbound variable: gmic

It would be nice if the description of exactly what the script does was fleshed out in a little more detail--it isn't totally clear to me what the last few steps are doing. Thanks.

Doesn't work for me

Do you have GMIC installed ?

CCD noise

what is the advantage from using directly that Gmic filter ?

advantage

the bilateral filter is one of the best smoothing filters that i've seen, minding the edges quite well. unfortunately, i've only seen two implementations of it... G'MIC being the easier of the two to install. the script duplicates the original layer and applies a bilateral filter to smooth out any slight irregularities in the color tone (noise from CCD, red / green spots, etc.). by itself, the bilateral filter can give a very cartoony effect, so i used the filtered layer as a coloring layer, keeping all of the underlying values there to maintain all the details in the image. there's a bit more to it than this, but that's the gist. if you've got a better idea, i'm all ears!! (or would it be eyes?)

advantage

Maybe you overlook GMIC "output" options ?

is that not almost exactly the same then call gmic bilateral filter, use GMIC output option NEW LAYER and then run it with default value ?

Only difference seems the new layer merging mode