Gimp-Forum.net
Use the Filters->Enhance->Noise Reduction in a script - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: Use the Filters->Enhance->Noise Reduction in a script (/Thread-Use-the-Filters-Enhance-Noise-Reduction-in-a-script)



Use the Filters->Enhance->Noise Reduction in a script - mwmuc - 11-30-2019

Hello,
I am new to Gimp and script processing and I could not find the name of the procedure for the following feature in Gimp:
Filters -> Enhance -> Noise Reduction.
I would like to use this function in a script.
Does anyone know how to address this procedure?
Kind regards
mwmuc Huh


RE: Use the Filters->Enhance->Noise Reduction in a script - rich2005 - 11-30-2019

I am sure one of the scripting experts will be along but as a starter

Filters -> Enhance -> Noise Reduction is a GEGL procedure and at the moment not script-able in Gimp.

Alternatives?
There is the Gimp 2.8 despeckle plugin that can be taken from a Gimp 2.8 installation for use in Gimp 2.10
The g'mic plugin. http://www.gmic.eu Ian's denoise filter should work.

It will definitely help if you narrow your OS down to one of Windows (7 / 10 ?) or Linux (which distro)


RE: Use the Filters->Enhance->Noise Reduction in a script - mwmuc - 11-30-2019

Thanks for the quick answer. OS is Windows 10 or Linux Ubuntu 19.04.
So far I used "Filters -> Enhance -> Noise Reduction" because it has only one parameter (strength) and does the job beautifully for my files.
I will look into Q'MIC plugin's options for noise reduction in more detail.
It is clear already that they have lots of parameters.


RE: Use the Filters->Enhance->Noise Reduction in a script - rich2005 - 11-30-2019

G'mic filters do have lots of parameters, that is true. You might use it on a typical image. It can write to a log file if you set that option in gmic settings.

Attached a script as an example. Uses gmic default values for ians noise reduction. A one-liner, no adjustable parameters. Registers in the tools menu. Unzip & pop in your Gimp plugins folder.

Keep looking back here, there are scripting gurus around who will give better recommendations than me. It is not really a good idea to use a dependency such as gmic in a plugin.