Студопедия

КАТЕГОРИИ:

АвтоАвтоматизацияАрхитектураАстрономияАудитБиологияБухгалтерияВоенное делоГенетикаГеографияГеологияГосударствоДомЖурналистика и СМИИзобретательствоИностранные языкиИнформатикаИскусствоИсторияКомпьютерыКулинарияКультураЛексикологияЛитератураЛогикаМаркетингМатематикаМашиностроениеМедицинаМенеджментМеталлы и СваркаМеханикаМузыкаНаселениеОбразованиеОхрана безопасности жизниОхрана ТрудаПедагогикаПолитикаПравоПриборостроениеПрограммированиеПроизводствоПромышленностьПсихологияРадиоРегилияСвязьСоциологияСпортСтандартизацияСтроительствоТехнологииТорговляТуризмФизикаФизиологияФилософияФинансыХимияХозяйствоЦеннообразованиеЧерчениеЭкологияЭконометрикаЭкономикаЭлектроникаЮриспунденкция

Application of digital signal processing




Noise blanking for sound. Audio signal recorded in real acoustic environments, frequently contains unwanted noise that appear owing to environmental or recording equipment. One class of noise is additive stationary noise.

Additivity means that the noise is added to the "clean" signal y [t] does not depend on him:

х[t] = у[t] + поisе[t].

Stationarity means that the properties of the noise (power spectral composition) do not change over time.

       Examples of such noise can be a constant hiss of microphone or amplification equipment, electrical hum. The work of various devices that do not change the sound over time (fans, computers) can also create noise, similar to stationary. It is not stationary noise from various clicks, strikes, the rustle of wind, the noise of cars.

       There is an algorithm of spectral subtraction to suppress the additive stationary noise. It consists of the following stages:

1. Decomposition of the signal using the short-term Fourier transforms (STFT) or other conversion with compact localizing of signal energy.

2. Evaluation of the noise spectrum.

3.  "Subtraction" of the amplitude spectrum of the noise from - the amplitude spectrum of the signal.

4. 4. The inverse transforms STFT - the synthesis of the resulting signal.

As the filter bank it is recommended STFT with window Hannah ,

0 £ t < N, of length of 50 ms, and with the engagement factor of 75%. The amplitude of the weighting window should be scaled so that the engagement factor with the selected filter bank windows did not change the overall amplitude of the signal in the absence of processing.

     Evaluation of the noise spectrum can be carried out as automatically by searching the minimum energy segments in each frequency band, or manually, by analyzing the spectrum at the time slot that the user identified as noise. Subtracting the amplitude spectrum can be obtained through the formula , that is equivalent to the following function of suppress: . Here Х[f,t] и W[f,t] – amplitude spectrums of the signal and noise, respectively, Y[f,t]=G[f,t]X[f,t] - amplitude spectrum of the resulting purified signal and k - coefficient of suppression. Phase spectrum of the purified signal is assumed to be equal to phase spectrum of the noisy signal. One of the problems of spectral subtraction method is the so-called "Musical noise". It appears because the STFT coefficients of noisy signals are statistically random, which leads to uneven of the suppression of these coefficients. As a result, the purified signal contains brief and limited in frequency bursts of energy, which the ear is perceived as "handbells" or "flowing water". In some cases, this effect is even less desirable than the original noise, which is suppressed. To suppress this artifact can be used the following methods:

     - overestimation of the noise threshold (increasing k). Leads to the suppression of weak components of the desired signal, the sound is muffled.

     - incomplete noise reduction (restriction G [f, t] from below by a constant, which is different from zero.) Part of the noise is remained in the signal and is partly masked "musical noise".

     - Smoothing in time of the evaluations of the spectrum X [f, t]. Leads to tailing or suppression of transients (spikes in the signal: strikes, attacks musical instruments).

     - Adaptive smoothing estimates of the spectrum X [f, t] (or relations X [f, t] / W [f, t]) with respect to time and frequency. The highest quality, but also time consuming.

The most common way to suppress the "musical noise" - uses a smoothing of the spectrum by time. For this to the STFT-coefficients of the original signal is applied recursive filtering by time: . Here 0 <а < 1 - constant, which controls the power smoothing.

 

     Resampling

     A resampling - this change the sampling rate of digital signals. As applied to digital images the resampling means resizing of images. There are many different algorithms for resampling of images.

     For example, to zoom of image in 2 times, you can simply duplicate each of its lines, and each of its columns (and to reduce - to throw out). This method is called nearest neighbor. It is possible intermediate columns and rows to get with help of linear interpolation of the adjacent columns and lines. This method is called bilinear interpolation.

 

Next lecture

Can also each point to get a new image as a weighted sum of a large number of points of the original image (bicubic and other types of interpolation).

Highest quality is obtained using resampling algorithms that take into account the need to work not only with time, but with the frequency of the image. Now we consider resampling algorithm, which is based on the idea of maximum preservation of the frequency image information. The algorithm is built on the principle of interpolation / filtering / decimation

 

The most qualitative resampling come out with using algorithms, which take into account the need to work not only with the temporal area, but also with the frequency area of the image. Now we consider the resampling algorithm, which is based on the idea of maximum preservation of the frequency image information.

 The algorithm is built on the principle of interpolation / filtering / decimation.

The work of the algorithm will be considered only for one-dimensional signal, since the two-dimensional image can be resized to fit horizontally (in rows) and then - vertically (in columns). Thus, the two-dimensional image resampling is reduced to one-dimensional signal resampling.

Suppose we need to "stretch" a one-dimensional signal of length n points to a length of m points, ie - times. You need to perform three steps for this. The first step - the interpolation with zeros, which increases the length of the signal in m times.

It’s necessary to multiply all counts of the original signal by m, and then, after each count of the signal, insert the m-1 zero value. The spectrum of the signal is changed as follows. That part of the spectrum, which initially contained in the digital signal remains unchanged (this is what we are seeking). The noise occurs above the old half of the sampling rate (reflected copy of the spectrum), which is necessary to get rid of by filtration.

The second step - is filtering out the interference with the low-pass filter.

Now we have a signal that is in m times longer than the original, but it has kept its frequency information and has not acquired outside frequency information (which we filtered). This step will be the finish, if our goal was the lengthening of the signal in m times. But our task requires shortening the signal in n times. To do this, follow step 2. The first step is anti-aliasing filtering. Since the sampling frequency is reduced by n times the spectrum of the signal can be maintained only by its low-frequency part (by Nyquist–Shannon sampling theorem). All frequencies above half of the furure sampling rate need to be removed using anti-aliasing filter with a cutoff frequency equal to half of the current sample rate. The second step is the decimation of the received signal in n times. Simply choose from the signal every n-th point, and drop ho rest. This algorithm is very similar to the ADC, which also filters out the unwanted frequency of the signal first, and then measures the value of a signal at regular intervals, discarding the value in the other moments of time.

Note that the two low-pass filtering used in this algorithm one after another, you can (and should)replace by one. For this, the cutoff frequency of the single low-pass filter must be chosen equal to the minimum of the cut-off frequencies of the two separate low-pass filters.

Another significant improvement in the algorithm - a search for common factors of the numbers m and n. For example, it is obvious that in order to squeeze the signal of 300 points to 200 points, it’s enough to put in the algorithm m = 2 and n = 3.

Note that the above algorithm requires a very large amount of computation, since the size of the intermediate one-dimensional signal by resampling can be about the hundreds of thousands. There is a way to significantly improve the performance of the algorithm and reduce memory consumption. This is called роlуphase filteriпg. It is based on the fact that it’s not necessary to calculate all the points in the long transitional signal. After all, most of them will be discarded after thinning. Polyphase filtering directly allows you to express counts of the resulting signal through counts of the original signal and the anti-aliasing filter.

Note that here we do not discuss details of the algorithm such as the correction of the image boundaries, the choice of the signal phase interpolation and decimation, and building a good anti-aliasing filter. We only note that we need to pay special attention to both the frequency and spatial characteristics of the filter for resampling images. If you optimize the filter only in the frequency domain, it will lead to large ripple in the filter kernel. And during the image resampling, the images ripple in the filter kernel lead to pulsations of brightness near the sudden changes in the brightness of the image (Gibbs phenomenon), as in the last image in Fig. 12.

 










Последнее изменение этой страницы: 2018-04-11; просмотров: 167.

stydopedya.ru не претендует на авторское право материалов, которые вылажены, но предоставляет бесплатный доступ к ним. В случае нарушения авторского права или персональных данных напишите сюда...