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).
Citation pour cette source
Anton (2024). powerspectrum.m (https://www.mathworks.com/matlabcentral/fileexchange/24227-powerspectrum-m), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |