powerspectrum.m
by Anton
21 May 2009
Get the normalized power spectrum of an image.
|
Watch this File
|
| File Information |
| Description |
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).
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com