This script helps fix noise found in digital camera pictures.
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:
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)
Feedback welcome!
The script is located in "<Image> / Script-Fu / Enhance / Clean CCD Noise"
| Attachment | Size |
|---|---|
| cleanccdnoise.scm | 2.68 KB |
Comments
Error: Invalid number of arguments
GIMP-Error: Execution error for 'Clean CCD Noise':
Error: Invalid number of arguments for plug-in-gmic (expected 5 but received 3)
well, just to be here, for lazy penguins ... if you stomp over this error this means that you are a very lazy person and changed
(gmic RUN-INTERACTIVE inImage subtract)to
(plug-in-gmic RUN-INTERACTIVE inImage subtract)not
(plug-in-gmic RUN-INTERACTIVE inImage subtract 0 "")like is should be!
and why is not working with gmic standalone executable!? not sure because even if i have one, changing back plug-in-gmic to gmic and subtract 0 "") to subtract) i get same error:
Error: eval: unbound variable: gmicbut i have a standalone, console gmic executable!
which gmic
/usr/local/bin/gmic
and from console is working:
gmic [gmic] No commands, options or data provided (type 'gmic -h' to get help).anyway no real problem because from gimp, gmic_gimp plugin and cleanccdnoise.scm script is working just fine ...
I don't understund if you
I don't understund if you have problems or you just explain how solve hypotetical problems!
If the first gimp script may call any gimp plugin, including here other scripts but i doubt that may call standalone programs.
To wildly simplify the concept you may call with a script what is initialized when gimp loads, ...and so NOT other indipendent program as command line gmic
no, problem solved
no, problem is solved now, i list here my solutions only to be easy to find my solutions ...
Does not work under Windows
Does not work under Windows either. Not tried under Linux yet.
The G'mic plugin executable is called gmic_gimp under Linux and gmic_gimp.exe under Windows. So I suppose you cannot call it with "gmic", except if an alias has been defined somewhere (by the way, I found a gmic.exe in my plugins folder, maybe the command-line version, dated 2010/3/8 (?), but the plugin does not work with it either.
I tried to edit the script and write gmic_gimp, then the complete path without success.
The idea of a G'mic wrapper is not so bad, if it allows to launch G'mic with customized parameters, for instance. By the way, why not use the command-line (not plugin) version I had mistakenly copied in my plug-ins directory, if possible? You should ask David Tschumperlé. I suppose in that case, the user would not have to select G'mic settings. The only drawback would be console opening while G'mic is operated.
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?
Where did you istall G'mic?
Where did you install G'mic? Is it the plug-in version?
Plugin version
I have it installed in my Users folders.
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 ?
My G'mic plug-in is in my
My G'mic plug-in is in my user dir. Maybe yours is in your Gimp dir?
Doesn't work for me yet...
"Do you have g'mic installed?"
Yes, of course. Currently using Fedora 12 (32-bit), GIMP 2.6.7 and G'MIC 1.3.3.3.
G'MIC works, just not the "cleanccdnoise" script. I get the original layer duplicated twice and then it halts with the cryptic (to me) error messages:
"Execution error for 'Clean CCD Noise':"
"Error: eval: unbound variable: gmic "
And also:
"Plug-In 'Clean CCD Noise' left image undo in inconsistent state, closing open undo groups."
Under Gimp 2.6 for Linux, if
Under Gimp 2.6 for Linux, if you installed the Gimp plug-in version of G’MIC, you need to change the following line :
(gmic RUN-INTERACTIVE inImage subtract)
by this line :
(plug-in-gmic RUN-INTERACTIVE inImage subtract 0 "")
Having done this, it works.
But I think you will need to change the default value for the bilateral filter as I have not seen a strong difference between the corrected and non corrected image.
Same error under Linux (two
Same error under Linux (two unchanged layers). Under Windows, I get only error messages, same as those of Linux.
I have Gmic plugin in Gimp main plug-ins directory and G'mic command line under Linux. Under Windows, I have G'mic plugin in my user plug-ins dir and furthermore I announced G'mic's path (command line version) in Windows paths, off chance. But I cannot get it to work.
Did you ever get it working?
I have the same error message as you, except I have G'MIC 1.3.3.4 installed.
I also noticed that if you do not have an image file open when you go to Clean CCD Noise it opens a dialog box asking for Image and Layer but you can't select anything. I don't know if that helps tell you what I'm doing wrong or not.
Any help would be great!
Thanks!
Clay
CCD noise
advantage
advantage
http://i47.tinypic.com/2rnyky
http://i47.tinypic.com/2rnykya.jpg
:( not found
Gmic is required
And seems as you have no installed
(from the message, i don't use the script )