pwelch2

This function implements a 2D WOSA Power Spectral Density estimator.
133 Downloads
Updated 11 Mar 2023

View License

Function that implements the WOSA estimator in 2 dimensions
Input parameters:
  • image: image of which to estimate the PSD.
  • window_size: window size, can be an integer or a vector, if window_size is an integer the window used is square window_size * window_size, otherwise if window_size is a row vector the window is rectangular with width = window_size(1, 2) and height = window_size(1, 1)
  • overlap: overlap level of windows (0 <= overlap < 1)
  • window_handle: is the handle to the function for creating the window used to select the segments on which to estimate the PSD using the periodogram, an example is:
eg.: window_handle = @(x) rectwin(x)
to use a rectangular window
eg.: window_handle = @(x) hamming(x)
to use a Hamming window
Output
  • [WOSA] : PSD estimated with 2D WOSA estimator

Cite As

Andrea Arcangeli (2026). pwelch2 (https://www.mathworks.com/matlabcentral/fileexchange/108894-pwelch2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.6

Bug fixed:
- n_window_h computing
- n_window_w computing
- step_x computing
- step_y computing
- check the permitted overlap values

1.0.5

- Added: WOSA normalized by window's energy

1.0.4

- Bug fixed: dimensions of fft2 fixed

1.0.3

- Bug fixed: image width W and image height H, lines 23 and 24

1.0.2

With english comments

1.0.1

Comments translated

1.0.0