Hd is a matrix containing the desired frequency response at equally spaced points in the Cartesian plane. For accurate results, use frequency points returned by freqspace to create Hd . The frequency vectors f1 and f2 should be in the range -1.0 to 1.0, where 1.0 corresponds to half the sampling frequency, or radians. Hd can be of class double or of any integer class. All other inputs to fwind2 must be of class double .
All outputs are of class double .
Use freqspace to create the frequency range vectors f1 and f2 . Create a two-dimensional Gaussian window using fspecial . Design the filter using the window from step 2. Algorithm fwind2 computes h using an inverse Fourier transform and multiplication by the two-dimensional window win . Two-Dimensional Signal and Image Processing .