ImageMagick – MagickCore, C API: Fourier Transform
Description: ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for web developers, graphic designers, and researchers, it offers versatile tools for image processing, including batch processing, format conversion, and complex image transformations.
Keywords: MagickCore, C API: Fourier Transform, Image Processing, Digital Image Editing, Image Conversion, Open-Source Software, Image Manipulation, Command-Line Image Tools

# Fourier

## ComplexImages

ComplexImages() performs complex mathematics on an image sequence.

The format of the ComplexImages method is:

    MagickBooleanType ComplexImages(Image *images,const ComplexOperator op,
      ExceptionInfo *exception)

A description of each parameter follows:

image
  the image.
op
  A complex operator.
exception
  return any errors or warnings in this structure.

## ForwardFourierTransformImage

ForwardFourierTransformImage() implements the discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair.

The format of the ForwardFourierTransformImage method is:

    Image *ForwardFourierTransformImage(const Image *image,
      const MagickBooleanType modulus,ExceptionInfo *exception)

A description of each parameter follows:

image
  the image.
modulus
  if true, return as transform as a magnitude / phase pair otherwise a real / imaginary image pair.
exception
  return any errors or warnings in this structure.

## InverseFourierTransformImage

InverseFourierTransformImage() implements the inverse discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair.

The format of the InverseFourierTransformImage method is:

    Image *InverseFourierTransformImage(const Image *magnitude_image,
      const Image *phase_image,const MagickBooleanType modulus,
      ExceptionInfo *exception)

A description of each parameter follows:

magnitude_image
  the magnitude or real image.
phase_image
  the phase or imaginary image.
modulus
  if true, return transform as a magnitude / phase pair otherwise a real / imaginary image pair.
exception
  return any errors or warnings in this structure.