Two dimensional window generator (2D window)

Version 1.0.0.0 (1,54 KB) von Disi A
This function creates a two-dimentional window that can be used for a matrix or image.
3,6K Downloads
Aktualisiert 8. Okt 2013

Lizenz anzeigen

This function creates a two-dimentional window that can be used for a matrix or image using MATLAB built-in 1D window function.

Usage: w = window2(r, c, w_type);
r: number of rows of the window you want to generate
c: number of columns
w_type: window type

Options are listed below (same with 1D built in function)
@bartlett - Bartlett window.
@barthannwin - Modified Bartlett-Hanning window.
@blackman - Blackman window.
@blackmanharris - Minimum 4-term Blackman-Harris window.
@bohmanwin - Bohman window.
@chebwin - Chebyshev window.
@flattopwin - Flat Top window.
@gausswin - Gaussian window.
@hamming - Hamming window.
@hann - Hann window.
@kaiser - Kaiser window.
@nuttallwin - Nuttall defined minimum 4-term Blackman-Harris window.
@parzenwin - Parzen (de la Valle-Poussin) window.
@rectwin - Rectangular window.
@taylorwin - Taylor window.
@tukeywin - Tukey window.
@triang - Triangular window.

-Example:
To compute windowed 2D FFT
[r,c]=size(img);
w=window2(r,c,@hamming);
fft2(img.*w);

Note: NOT using rotational symmetric convention

Disi A --- May,16, 2013
adis@mit.edu

Zitieren als

Disi A (2024). Two dimensional window generator (2D window) (https://www.mathworks.com/matlabcentral/fileexchange/43827-two-dimensional-window-generator-2d-window), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2012b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0