i.fft(1)

πŸ’– i.fft β€” the manual, but make it make sense πŸ’–

okay bestie, this is the GRASS GIS User's Manual page for i.fft(1), and I'm gonna walk you through it like we're texting at 1am. no cap, it's actually so good. πŸ¦‹


✨ NAME ✨

i.fft β€” Fast Fourier Transform (FFT) for image processing.

like. it takes your image and yeets it into frequency space. iconic behavior honestly. πŸ’…


🏷️ KEYWORDS ✨

imagery, transformation, Fast Fourier Transform


πŸŽ€ SYNOPSIS πŸŽ€

i.fft
i.fft --help
i.fft input=name real=name imaginary=name  [--overwrite]  [--help]
[--verbose]  [--quiet]  [--ui]

🚩 Flags:

  • --overwrite β€” bestie, this lets your output files just bulldoze whatever was already there. Allow output files to overwrite existing files. use responsibly, ok? 😭
  • --help β€” prints the usage summary so you're not out here guessing. Print usage summary.
  • --verbose β€” the module gets chatty and tells you everything. Verbose module output.
  • --quiet β€” the opposite. it shuts up. Quiet module output.
  • --ui β€” forces the GUI dialog to pop off. Force launching GUI dialog.

πŸ“₯ Parameters:

  • input=name [required] β€” Name of input raster map. this is the thing you're transforming, periodt.
  • real=name [required] β€” Name for output real part arrays stored as raster map. yes you have to name it yourself, I don't make the rules.
  • imaginary=name [required] β€” Name for output imaginary part arrays stored as raster map. your imaginary bestie needs a name too. πŸ’œ

🌸 DESCRIPTION 🌸

so i.fft is an image processing program, and it's based on the FFT algorithm given by Frigo et al. (1998). it takes a single input raster map layer (input) and constructs the real and imaginary Fourier components in frequency space. that's the whole vibe. lowkey elegant.


πŸ’€ NOTES πŸ’€

okay so listen up, this part matters:

  • The real and imaginary components are stored into the real and imaginary raster map layers.
  • In these raster map layers, the low frequency components are in the center, and the high frequency components are toward the edges. remember this. it's giving "map layout lore."
  • The input need not be square. no pressure to be a perfect square, we love you as you are. 🫢
  • A color table is assigned to the resultant map layer.
⚠️ The current geographic region and mask settings are respected when reading the input file. The presence of nulls or a mask will make the resulting fast Fourier transform invalid. so like, don't do that. fr fr. 😭

πŸ”₯ EXAMPLE πŸ”₯

North Carolina example, a classic:

g.region raster=lsat7_2002_70
i.fft input=lsat7_2002_70 real=lsat7_2002_70.real imaginary=lsat7_2002_70.imag
# set region to resulting FFT output map (due to new FFT coordinate space):
g.region raster=lsat7_2002_70.real -p
d.mon x0
d.rast lsat7_2002_70.real
d.rast lsat7_2002_70.imag

see that comment in the middle? yeah β€” you gotta reset the region to the resulting FFT output map, because the FFT lives in a whole new coordinate space. main character energy, honestly. ✨


πŸ“š REFERENCES πŸ“š

  • M. Frigo and S. G. Johnson (1998): "FFTW: An Adaptive Software Architecture for the FFT". See www.FFTW.org: FFTW is a C subroutine library for computing the Discrete Fourier Transform (DFT) in one or more dimensions, of both real and complex data, and of arbitrary input size.
  • John A. Richards, 1986. Remote Sensing Digital Image Analysis, Springer-Verlag.
  • Personal communication, between program author and Ali R. Vali, Space Research Center, University of Texas, Austin, 1990.

πŸ‘€ SEE ALSO πŸ‘€

i.cca, g.gui.iclass, i.ifft, i.pca

(go read i.ifft next, it's the reverse girly. the way they're a matched set πŸ˜­πŸ’–)


πŸ‘‘ AUTHORS πŸ‘‘

  • David Satnik, GIS Laboratory, Central Washington University
  • Glynn Clements (FFTW support)

πŸ’» SOURCE CODE πŸ’»

Available at: i.fft source code (history)

Accessed: Saturday Jan 17 05:41:45 2026

Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index


and that's the whole page bestie!! πŸŽ€ this was GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and the version vibes are GRASS 8.4.2, accessed Saturday Jan 17 05:41:45 2026. go slay your Fourier transform. no cap. πŸ’…πŸŒˆβ­

πŸ“¦ where this page comes from