(09-12-2025, 09:34 PM)Grobe Wrote: 1. Install the G'MIC 2.9.6 - Flathub
Ask the question on the https://discuss.pixls.us/ forum. The gmic command line people are there.
Quote:2. using the -fft flag on the magick command
First of all, does your version of Imagemagick 7 (IM7) come with fft enabled. With kubuntu 24.04 I use the magick appimage provided but that does not come with fft. I had to compile a (static) version with fft. Looks like you have it, with the xxx-0.png and xxx-1.png output, but for a check.
In a terminal what does magick -version tell you ? There should be a delegate for fft as:
Delegates (built-in): fftw fontconfig freetype jbig jng jpeg lcms lzma openexr pangocairo png webp x zlib
Then it is all as http://www.fmwconcepts.com/imagemagick/f...tml#im_fft and you have to go way down to find the bit about denoising.
Code:
magick noisy.jpg +depth -fft n.png
Same as using the Gimp fft plugin you need to edit the defects map and maybe something like this as a mask. (scaled as an example - has to match the image size)
and combine with n-1.png
Code:
magick n-1.png mask.png -compose multiply -composite n-1a.png
then use that with the inverse fft
Code:
magick n-0.png n-1a.png -ift denoised.png
...and comparing before / after not much change. Depends on original and mask.