Radially averaged surface roughness/topography power spectrum (PSD)
In surface roughness analysis, one of the powerful tools for roughness characterization is surface roughness power spectrum. If the surface under study has isotropic roughness characteristics, then one can do a radial average on the calculated discrete Fourier transform of the surface topography and obtain its 2D power spectrum, namely, 2D PSD.
With this function you can calculate 2D PSD of a surface topography, which the topography is normally obtained by any 3D profilometry techniques, such as AFM (Atomic Force Microscopy), WLI (White Light Interferometry) and many other optical profilers.
As inputs, you first need to have a matrix (n by m) of your height values (z). Second, you need to know you PixelWidth (spatial resolution) which is obtained easily by dividing you image length to the number of pixels in length, i.e. :
PixelWidth = Lx / m; % in SI units
In order to plot the output:
loglog(q,C)
In order to check 2D FFT of your topography:
imagesc(1+log10(abs(PSD.Hm)))
An extended version of this code, calculates the surface roughness power spectrum only for a portion of the top or bottom part of the surface roughness/topography. This has been uploaded in here:
Radially averaged surface roughness power spectrum (PSD) only on top or bottom part of a topography
http://se.mathworks.com/matlabcentral/fileexchange/60771-radially-averaged-surface-roughness-power-spectrum--psd--only-on-top-or-bottom-part-of-a-topography
To calculate 1-dimensional suface roughness power spectrum, refer to:
1-Dimensional surface roughness power spectrum of a profile or topography
http://se.mathworks.com/matlabcentral/fileexchange/54315-psd-1d-z--pixelwidth--dim-
To generate an artificial randomly rough surface/topography to try these codes, refer to:
Surface generator: artificial randomly rough surfaces
http://se.mathworks.com/matlabcentral/fileexchange/60817-surface-generator--artificial-randomly-rough-surfaces
Citation pour cette source
Mona Mahboob Kanafi (2024). Radially averaged surface roughness/topography power spectrum (PSD) (https://www.mathworks.com/matlabcentral/fileexchange/54297-radially-averaged-surface-roughness-topography-power-spectrum-psd), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
Inspiré par : 1-dimensional surface roughness power spectrum of a profile or topography, Radially averaged surface roughness power spectrum (PSD) only on top or bottom part of a topography, Surface generator: artificial randomly rough surfaces
A inspiré : filt2 2D geospatial data filter, Surface generator: artificial randomly rough surfaces, 1-dimensional surface roughness power spectrum of a profile or topography, Radially averaged surface roughness power spectrum (PSD) only on top or bottom part of a topography
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.2.0.0 | Description added. Small bug fixed. |
||
1.1.1.0 | Further description added. |
||
1.1.0.0 | A small bug in final PSD result's structure fixed. |
||
1.0.0.0 | A small bug fixed. |