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
realandimaginaryraster 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
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms