gmic icon indicating copy to clipboard operation
gmic copied to clipboard

Inverse Fourier Transform Not Present

Open ei14 opened this issue 4 years ago • 2 comments

To my knowledge, older versions of gmic had an explicit Inverse Fourier Transform function. This allowed users to import the Fourier Transform output from another program into gmic and recover the image it describes. In gmic 2.9.7-5, the inverse option is not present. The Fourier Transform can only be performed inversely on output produced by gmic, making it somewhat useless.

ei14 avatar Jul 20 '21 07:07 ei14

The filter "Fourier Transform" does the direct and inverse fourier transform. Just apply it to the Fourier transform to get the inverse transform.

dtschump avatar Sep 02 '21 07:09 dtschump

The Fourier Transform doubles the size of the image to create sections for magnitude and phase. The Inverse Fourier Transform ought to be able to take two images, magnitude and phase, and combine them to create one image. The Inverse Fourier Transform cannot be achieved by simply using the forward transform.

For example, take an image. Apply the Fourier Transform. Apply a blur filter of a sufficiently high radius. Apply the Fourier Transform again.

Were it not for the blur filter, gmic would apply the Inverse Fourier transform. However, the blur filter screws this up.

The use of the Fourier Transform is to be able to edit the transform, then see what the resulting image looks like after the transformed image was altered. This functionality seems to have been lost.

ei14 avatar Sep 02 '21 13:09 ei14