Code covered by the BSD License  

Highlights from
powerspectrum.m

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 2.26 KB File ID: #24227
image thumbnail

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.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
image processing Anton 22 May 2009 10:52:08
power spectrum Anton 22 May 2009 10:52:08

Contact us at files@mathworks.com