Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
This is part of a bigger investigation of why fftdeconvol only returns colourful messes for me. I'm trying to do a simple deblur manually to see where things mess up.
I'm working with 16bit sRGB PNG files and with HRDI configured (and OpenCL if that might be relevant.)
PNG does not support fractional values or negative values. You must use either MPC, PFM or TIFF with the float -define for your real/imaginary images from the +fft. After the +ift, you are safe to save to PNG.
I always use either MPC or PFM for the output of +fft.
My script, fftconvol and fftdeconvol, need square images to work properly. You do not say what size your images are.
OpenCL will not be used.
If you still have trouble, send me your input image and filter image and your command line(s).
Yup, and I read that like three times in the fft guide and it still didn't sink in! Thanks bundles!
My images are square powers of two, 512 2k or 4k. Asking for png output from fft{de}convol wouldn't mess the scripts up would it? I'll let you know if my continuing investigation reveals anything other than my own foolishness.
The input and output from fftconvol and fftdeconvol can be png. In the script, I use MPC or PFM for intermediate images from the +fft. So if you are using my script and the images are square and the filter corresponds, then either your noise value is way off or there could be a new bug in the script. I always try several factors of 10 for my noise value to see if I can tune it in, e.g. (0.000001, 0.00001, 0.0001, 0.001, 0.01, 0.1). Then refine by a factor of 5 or 2 once I get close.