Professional Documents
Culture Documents
Chapter 19
1
Ideal Responses
• The frequency response of a filter is the graph of its voltage gain versus frequency.
• Low-pass and high-pass filter
• A low-pass filter passes all frequencies from zero to the cutoff frequency and blocks all frequencies above the cutoff
frequency.
• The frequencies between zero and the cutoff frequency are called the passband. The frequencies above the cutoff
frequency are called the stopband. The roll-off region between the passband and the stopband is called the
transition.
• A high-pass filter blocks all frequencies from zero up to the cutoff frequency and passes all frequencies above the
cutoff frequency.
2
• Band-pass filter
• The passband is all the frequencies between the lower and upper cutoff frequencies.
• The frequencies below the lower cutoff frequency and above the upper cutoff frequency are the
stopband.
• An ideal bandpass filter has zero attenuation in the passband, infinite attenuation in the stopband, and
two vertical transitions.
• The bandwidth (BW) of a bandpass filter is the difference between its upper and lower 3-dB cutoff
frequencies:
• If Q is less than 1, the bandpass filter is called a wideband filter. If Q is greater than 1, the filter is called
a narrowband filter.
3
Passband and Stopband Attenuation
• Zero attenuation in the passband, infinite attenuation in the stopband, and a vertical
transition are unrealistic.
• To build a practical low-pass filter, the three regions are approximated as shown in Fig. 19-
6.
• The passband is the set of frequencies between 0 and fc.
• The stopband is all the frequencies above fs.
• The transition region is between fc and fs.
• The passband attenuation between 0 and Ap
4
Filter response
• Butterworth approximation
• the maximally flat approximation
• the response rolls off at a rate of approximately 20n dB per decade, where n is the order of the filter:
5
• Chebyshev approximation
• Rolls off faster in the transition region than a Butterworth filter
• Ripples appear in the passband
• The number of ripples in the passband of a Chebyshev low-pass filter equals half of the filter order:
6
• Bessel approximation
• Flat passband and a monotonic stopband similar to those of the Butterworth approximation.
• The roll-off in the transition region is much less with a Bessel filter than with a Butterworth filter.
• Optimized to produce a linear phase shift with frequency
7
8
Passive Filters
• Low-pass LC filter. It has an order of 2 because it contains two reactive components, an
inductor and a capacitor. A second-order LC filter has a resonant frequency and a Q
defined as follows:
Damping factor
• damping means “reducing” or “diminishing.” The higher the damping factor,
the smaller the peak.
First-Order Stages
• First-order or 1-pole active-filter stages have only one capacitor. Because of
this, they can produce only a low-pass or a high-pass response.
• Low-Pass Stage
High-Pass Stage
Digital Filter
• Fast Fourier Transform (FFT)
Example
19
Compute the two-sided spectrum P2.
Then compute the single-sided spectrum P1
based on P2 and the even-valued signal length L.
20
Example: cosine wave
• Create a matrix where each row represents a cosine wave with scaled frequency.
21
22
Mean filtering is easy to implement. It is used as a
method of smoothing images, reducing the amount
of intensity variation between one pixel and the
next resulting in reducing noise in images.
23
Median Filtering
• Median filtering is a nonlinear method used to remove noise from images.
• It is particularly effective at removing ‘salt and pepper’ type noise.
• The median filter works by moving through the image pixel by pixel, replacing each value with the
median value of neighbouring pixels.
• The pattern of neighbours is called the "window", which slides, pixel by pixel over the entire image.
• The median is calculated by first sorting all the pixel values from the window into numerical order,
and then replacing the pixel being considered with the middle (median) pixel value.
24
25