此为DSP课程有关混叠现象(Aliasing)的几个例题,以及我的求解。
简书用得少,欢迎关注我的知乎@电工李达康~
1、Specify how many bits are needed to appropriately digitize each of the following signals. Choose from: 6 bits, 8 bits, 10 bits, 12 bits, 14 bits, or 16 bits.
a. A signal where the maximum amplitude is 1 volt and the rms noise is 1.5millivolts.
b. A signal with a signal-to-noise ratio of 900 to 1.
c. A signal with a coefficient-of-variation of 0.4%.
d. A high-fidelity audio system (hint: a jack-hammer is about 50,000 timeslouder than a pin drop).
e. A black and white digital image (hint: under the best conditions, the human eye can differentiate about 200 shades of gray between pure black and pure white).
Answer:
The random noise generated by quantization will simply add to whatever noise is already present in the analog signal. Therefore, what we should do is to digitize the signal with producing virtually no increase in the noise, which means that nothing would be lost due to quantization.
The addition noise has a mean of zero (), and a standard deviation of ( ).
Number of Bits | The of Original Noise | The of Quantization Noise | The of Total Noise |
---|---|---|---|
n |
**a. A signal where the maximum amplitude is 1 volt and the rms noise is 1.5millivolts. **
Number of Bits | The of Original Noise | The of Quantization Noise | The of Total Noise |
---|---|---|---|
6 | |||
8 | |||
10 | |||
12 | |||
14 | |||
16 |
Therefore, we could see that the quantization noise become more and more negligible with the increase of the number of bits. If we expect nothing would be lost due to quantization, the best choice will be 12 bits.
**b. A signal with a signal-to-noise ratio of 900 to 1. **
We suppose that the mean value of signal is the half of the maximum range .
()
, so .
Number of Bits | The of Original Noise | The of Quantization Noise | The of Total Noise |
---|---|---|---|
6 | |||
8 | |||
10 | |||
12 | |||
14 | |||
16 |
So, we'll choose 12 bits, which produce virtually no increase in the noise.
**c. A signal with a coefficient-of-variation of 0.4%. **
We suppose that the mean value of signal is the half of the maximum range .
()
, so .
Number of Bits | The of Original Noise | The of Quantization Noise | The of Total Noise |
---|---|---|---|
6 | |||
8 | |||
10 | |||
12 | |||
14 | |||
16 |
So, we'll choose 10 bits, which produce virtually no increase in the noise.
d. A high-fidelity audio system (hint: a jack-hammer is about 50,000 times louder than a pin drop).
The maximum of signal may 50,000 bigger than the minimum. Therefore, the maximum M should be great enough.
,
In conclusion, 16 bits is what we need in this high-fidelity audio system.
e. A black and white digital image (hint: under the best conditions, the human eye can differentiate about 200 shades of gray between pure black and pure white).
The black and white digital image just need about 200 levels to form a grayscale image.
,
Therefore, every pixel would be a 8-bit data, which stores the image information we need.
2、An analog electronic signal is composed of three sine waves: 1 kHz @ 1 volt amplitude, 3 kHz @ 2 volts amplitude, and 4 kHz @ 5 volts amplitude (all voltage readings are peak-to-peak). The signal is digitized with 12bits, spread over the range of -5 volts to +5 volts. For each sampling rate below, describe the frequency components that exist in the digital signal.Be sure to specify three things for each component: its digital frequency (a number between 0 and 0.5), its amplitude (in digital numbers, peak-to-peak),and its phase relative to the original analog signal (either 0 degrees or 180 degrees).
a. Sampling rate = 100 kHz.
b. Sampling rate = 10 kHz.
c. Sampling rate = 7.5 kHz.
d. Sampling rate = 5.5 kHz.
e. Sampling rate = 5 kHz.
f. Sampling rate = 1.7 kHz.
Answer:
The maxinum frequency of analog electronic signal is . Therefore, the Nyquist frequency should be greater than ( ) . If not, there is going to be a alising.
**a. Sampling rate = 100 kHz. **
No aliasing.
- The component one (1 kHz @ 1 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- The component two (3 kHz @ 2 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- The component three (4 kHz @ 5 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
b. Sampling rate = 10 kHz.
No aliasing.
- The component one (1 kHz @ 1 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- The component two (3 kHz @ 2 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- The component three (4 kHz @ 5 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
c. Sampling rate = 7.5 kHz.
It caused aliasing.
- The component one (1 kHz @ 1 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- The component two (3 kHz @ 2 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- The component three (4 kHz @ 5 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- Digital frequency :
d. Sampling rate = 5.5 kHz.
It caused aliasing.
- The component one (1 kHz @ 1 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- The component two (3 kHz @ 2 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- Digital frequency :
- The component three (4 kHz @ 5 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- Digital frequency :
e. Sampling rate = 5 kHz.
It caused aliasing.
- The component one (1 kHz @ 1 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- The component two (3 kHz @ 2 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- Digital frequency :
- The component three (4 kHz @ 5 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- Digital frequency :
f. Sampling rate = 1.7 kHz.
It caused aliasing.
- The component one (1 kHz @ 1 volt amplitude) :
- Digital frequency :
- Digital frequency :
- Amplitude :
- Phase :
- Digital frequency :
- The component two (3 kHz @ 2 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- Digital frequency :
- The component three (4 kHz @ 5 volt amplitude) :
- Digital frequency :
- Amplitude :
- Phase :
- Digital frequency :
3、On television, rotating objects such as wagon wheels and airplane propellers often appear to be moving very slowly or even backwards. This is a result of aliasing, caused by the sampling rate of the video (30 frames per second) being less than twice the frequency of the rotational motion. To understand this, imagine we paint one of the blades of an airplane propeller so that we can identify it from the other blades. We will then turn the propeller at 33 rotations per second, in a clockwise direction. In frame number 1 of our video sequence, the marked blade happens to be exactly at the top of the propeller.
Answer:
a. How many rotations does the marked blade make between two successive frames?
The Angular Velocity and the time between two successive frames
Between two successive frames, the angle it turn is .
The rotations are in actural, but in video it would be ( circle )
b. Draw a sketch of how the propeller would appear in frames 1, 2, 3 and 4.
- In frames 1, 2, 3, 4, it just like that the propeller just turn 0.628rad, 1.257rad, 1.885rad, 2.513rad.
c. How many frames does it take for the marked blade to again appear at the top?
The rotations are between two successive frames.
Just between 10 frames, the rotations will be 11. In other words, you will find that the marked blade again appear at the top in the 11th frame.
d. What rotational frequency is (c) in rotations per second?
In c, we know that the cycle of it is . Therefore, the rotational frequency is
e. Is this apparent rotation clockwise or counterclockwise?
The propeller turns at 33 rotations per second in a clockwise direction. Between two successive frames, the angle it turn is .
Between two successive frames,the angle we see is 0.629rad. Meanwhile, .
The rotation direction in video will be clockwise.
f. Explain using Fig. 3-4 how the marked blade's actual frequency, the frame rate, and the marked blade's observed frequency are related.
The marked blade's actual frequency
The Nyquist frequency
The frame rate . The aliasing is caused.
The digital frequency of the marked blade and the phase is .
It means that its digital frequency will be like sampled from . Meanwhile, the phase of it is , which means that the rotation direction in video will be the same as actural, clockwise.
g. Repeat (a) to (f) when the propeller is turning at 57 rotations per second.
In fact, we could use the analysis of (f), which will help us calculate and understand it in depth.
The marked blade's actual frequency instead of .
The Nyquist frequency .
The frame rate . The aliasing is caused again.
The digital frequency of the marked blade and it is worth noting that the phase is .
The rotational frequency in video is . But it is because the phase is that the rotation direction in video will be counterclockwise.
In conclusion:
- The angle between two successive frames . (a)
- The marked blade again appear at the top in the frame. (c)
- The rotational frequency is . (d)
- The rotation direction in video will be counterclockwise. (e)
网友评论