i.fft(1grass)
๐ i.fft ๐
okay bestie, so this is i.fft from the GRASS User's Manual โ and no, the "i" is not giving iPhone, it's giving imagery. Sit down, hydrate, we're doing Fourier transforms today. โจ
๐ธ NAME ๐ธ
i.fft โ Fast Fourier Transform (FFT) for image processing. that's it, that's the whole name. iconic behavior honestly. ๐
๐ท๏ธ KEYWORDS ๐ท๏ธ
imagery, transformation, Fast Fourier Transform
iykyk ๐
โจ SYNOPSIS โจ
i.fft
i.fft --help
i.fft input=name real=name imaginary=name [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
๐ Flags: ๐
--overwriteโ lets your output files just steamroll right over any existing files. no asking, no warning, it's giving bold.--helpโ prints the usage summary so you can read it and go "ohhh okay". ๐ซถ--verboseโ verbose module output. she talks a lot and we love her for it.--quietโ quiet module output. shhh. the opposite vibe.--uiโ forces the GUI dialog to launch. for the girlies who like a little window moment. ๐ช
๐ Parameters: ๐
input=nameโ [required] the name of your input raster map. mandatory bestie, you can't skip this one.real=nameโ [required] the name for output real part arrays, stored as a raster map.imaginary=nameโ [required] the name for output imaginary part arrays, stored as a raster map. yes it's really called imaginary, no that's not a typo, that's math. ๐ญ
๐ซ DESCRIPTION ๐ซ
so i.fft is an image processing program, and it's built on the FFT algorithm given by Frigo et al. (1998) โ shoutout to them, legends fr fr. ๐
What it does: it takes one single input raster map layer (input) and constructs the real and imaginary Fourier components in frequency space. one input, two beautiful components, main character energy all around. โจ
๐ NOTES ๐
The real and imaginary components get stored into the real and imaginary raster map layers respectively. no cap.
And here's the layout you need to remember: in those raster map layers, the low frequency components are in the center and the high frequency components are toward the edges. center girlies = low freq, edge girlies = high freq. ๐
The input need not be square โ she's flexible, she contains multitudes. Also, a color table is assigned to the resultant map layer, so it will look cute when you view it. ๐
The current geographic region and mask settings are respected when reading the input file. periodt.
๐จ okay important warning bestie: the presence of nulls or a mask will make the resulting fast Fourier transform invalid. like fully invalid. not "a little off", not "we'll fix it in post" โ INVALID. so clear your nulls and masks before you run this, or your output is gonna be a mess. ๐
๐ฆ EXAMPLE ๐ฆ
North Carolina example, our beloved:
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
look at that flow. chef's kiss. ๐จโ๐ณ๐
๐ 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. she does it ALL. ๐ฅ
- 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. vintage correspondence moment, we stan. ๐ฎ
๐ SEE ALSO ๐
i.cca, g.gui.iclass, i.ifft, i.pca
(if you liked this one, girl, you're gonna want the inverse โ that's i.ifft, go get her ๐ธ)
๐ AUTHORS ๐
David Satnik, GIS Laboratory, Central Washington University Glynn Clements (FFTW support)
two absolute icons. thank you for your service. ๐ซก๐
๐ป SOURCE CODE ๐ป
Available at: i.fft source code (history)
Latest change: Friday Jan 02 21:25:59 2026 in commit: 83362df5af36c1e7d95fad93dff0a57b4dfde476
Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index
ยฉ 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
okay and that's the whole page bestie!! ๐ this was i.fft(1grass), served to you straight from the GRASS 8.5.0 Reference Manual โ ยฉ 2003-2026 GRASS Development Team, last touched Friday Jan 02 21:25:59 2026 in commit 83362df5af36c1e7d95fad93dff0a57b4dfde476. go do a Fourier transform, you're gonna slay. โจ๐ฆ๐
๐ฆ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 ยท GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 ยท 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