Hd is a matrix containing the desired frequency response sampled at equally spaced points between -1.0 and 1.0 along the x and y frequency axes, where 1.0 corresponds to half the sampling frequency, or radians. For accurate results, use frequency points returned by freqspace to create Hd . The frequency vectors f1 and f2 are in normalized frequency, where 1.0 corresponds to half the sampling frequency, or radians. The resulting filter fits the desired response as closely as possible in the least squares sense. All other inputs to fsamp2 must be of class double .
All outputs are of class double .
1 Create a matrix Hd that contains the desired bandpass response. Use freqspace to create the frequency range vectors f1 and f2 . 2 Design the filter that passes through this response. Algorithm fsamp2 computes the filter h by taking the inverse discrete Fourier transform of the desired frequency response. Two-Dimensional Signal and Image Processing.