powerspectrum.m

Version 1.0.0.0 (2.26 KB) by Anton
Get the normalized power spectrum of an image.
1.7K Downloads
Updated 21 May 2009

View License

The power spectrum measures how much information is contained at each spatial frequency.

Construction of the power spectrum takes three steps:

1) Get the 2D (fftshifted) power spectrum
2) Sample lines through sf=0 and rotated by 1degree intervals
3) Average sampled lines to get result

This function works fast compared with other approaches I've tried, the most obvious (and worst) of which is to rotate the entire 2D spectrum.

Finally, this function can accurately sample images with nonsquare pixels (such as in some medical imaging applications).

Cite As

Anton (2024). powerspectrum.m (https://www.mathworks.com/matlabcentral/fileexchange/24227-powerspectrum-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fourier Analysis and Filtering in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0