Questions tagged [filters]

In signal processing, a filter is a device or process that transforms a signal by selectively choosing specific frequencies and leaving others with appropriate gain or as it is.

Filter by
Sorted by
Tagged with
97
votes
3answers
29k views

Why is it a bad idea to filter by zeroing out FFT bins?

It's very easy to filter a signal by performing an FFT on it, zeroing out some of the bins, and then performing an IFFT. For instance: ...
4
votes
1answer
2k views

Compensating Loudspeaker frequency response in an audio signal

I have been working on a project in which I was required to work on the audio signals recorded from the loudspeaker kept in front of a filter. So, to simply explain it: $$\boxed{\rm LoudSpeaker} \...
34
votes
6answers
61k views

Understanding the Matched Filter

I have a question about matched filtering. Does the matched filter maximise the SNR at the moment of decision only? As far as I understand, if you put, say, NRZ through a matched filter, the SNR ...
2
votes
1answer
382 views

How determine the delay in my signal practically

I am trying to practically determine filter group delay so that I can try to reduce or adjust for it. I have tried all kinds of methods but still can't get the right result. I know that theoretically ...
22
votes
4answers
35k views

How many taps does an FIR filter need?

I am looking to design a set of FIR filters to implement a low pass filter. I am also trying to reduce the latency of the signal through the filter so I am wondering what the minimum number of taps I ...
16
votes
2answers
29k views

How do I manually plot the frequency response of a bandpass Butterworth filter in MATLAB without freqz function?

I have code like below that applies a bandpass filter onto a signal. I am quite a noob at DSP and I want to understand what is going on behind the scenes before I proceed. To do this, I want to know ...
16
votes
3answers
52k views

FIR filter with linear phase, 4 types

I know there are 4 types of FIR filters with linear phase, i.e. constant group delay: (M = length of impulse response) Impulse response symmetrical, M = odd Imp. resp. symmetrical, M = even Imp. resp....
21
votes
3answers
6k views

FIR Filter Design: Window vs Parks McClellan and Least Squares

Are there any advantages to use a window approach over Parks-McClellan (further abbreviated here as PMcC) or Least Squares algorithms for FIR filter design of a low pass filter? Assume with today's ...
32
votes
2answers
35k views

What is the advantage of MATLAB's filtfilt

MATLAB's filtfilt does a forward-backward filtering, i.e., filter, reverse the signal, filter again and then reverse again. Apparently this done to reduce phase ...
11
votes
2answers
5k views

Why would one use a Hann or Bartlett window?

Suppose we're designing a low-pass FIR filter, and I want to use one of these three windows: Bartlett, Hann or Hamming. From Oppenheim & Schafer's Discrete-Time Signal Processing, 2nd Ed, p. 471:} ...
28
votes
6answers
31k views

Why is a linear phase important?

If symmetry conditions are met, FIR filters have a linear phase. This is not true for IIR filters. However, for what applications is it bad to apply filters that do not have this property and what ...
17
votes
1answer
6k views

Digital filter design basic principles (IIR/FIR)

Although I have a solid experience in designing audio engines and such, I am fairly new to the realm of Digital Filter Design, particularly IIR and FIR filters. In other words, I'm trying to learn as ...
4
votes
2answers
12k views

Why root raised cosine filter can eliminate intersymbol interference (ISI) ?

My question is kinda silly, I know it. But I cannot understand why root raised cosine filter or raised cosine filter can eliminate ISI. I googled before, but those explanation is not easy for me to ...
2
votes
2answers
2k views

CIC Cascaded Integrator-Comb spectrum

I would like to ask something regarding CICs (Cascaded Integrator-Comb filters) or more particular about the frequency response of it. Assuming that I have as input IQ samples from a signal generator ...
25
votes
2answers
40k views

Applying filter in scipy.signal: Use lfilter or filtfilt?

I saw in a SO thread a suggestion to use filtfilt which performs backwards/forwards filtering instead of lfilter. What is the ...
10
votes
2answers
14k views

Is a leaky integrator the same thing as a low pass filter?

The equation governing a leaky integrator (according to Wikipedia at least) is $\frac{d\mathcal{O}}{dt} + A\mathcal{O}(t) = \mathcal{I}(t)$. Is a continuous-time leaky integrator thus the same ...
5
votes
2answers
9k views

Single-pole IIR low-pass filter - which is the correct formula for the decay coefficient?

A single-pole IIR low-pass filter can be defined in discrete time as y += a * (x - y), where y is the output sample, ...
5
votes
1answer
4k views

Analytically designing a notch-filter for specified frequency 50 Hz

I tried to analytically construct a causal notch filter that stops frequencies at 50Hz and I thought if zeros are more than poles it will be non-causal so I chose equal amount of poles and zeros ...
12
votes
3answers
4k views

“Low-pass filter” in non-EE, software API contexts

I am an experienced software engineer and am working on smartphone sensors. I've taken fundamental EE classes in DSP and am trying to apply my knowledge. I believe that I understand convolution, ...
3
votes
1answer
1k views

Applying Image Filtering (Circular Convolution) in Frequency Domain

To filter an image we can: Use a 3x3, 5x5, 7x7, etc. filter, that is convolve the image and the filter in the space domain. Use a FFT on both the image and the filter, multiply them together in the ...
4
votes
1answer
1k views

How does this “simple filter” work?

I'm new to DSP, and I'm using this basic "1-pole LPF" Param Smooth filter which "smooth" param when I change it. The code is pretty simple: ...
1
vote
2answers
284 views

Eye pattern construction and interpretation

I have read some text about the eye pattern (or eye diagram), but I do not understand how should I read it. The wikipedia definition of it is this one: In telecommunication, an eye pattern, also ...
49
votes
5answers
66k views

What is the difference between phase delay and group delay?

I'm studying some DSP and I'm having trouble understanding the difference between phase delay and group delay. It seems to me that they both measure the delay time of sinusoids passed through a ...
29
votes
3answers
16k views

What should be considered when selecting a windowing function when smoothing a time series?

If one wants to smooth a time series using a window function such as Hanning, Hamming, Blackman etc., what are the considerations for favouring any one window over another?
27
votes
5answers
17k views

What Is the Best First Order IIR (AR Filter) Approximation to a Moving Average Filter (FIR Filter)?

Assume the following first order IIR Filter: $$ y[n] = \alpha x[n] + (1 - \alpha) y[n - 1] $$ How can I choose the parameter $ \alpha $ s.t. the IIR approximates as good as possible the FIR which is ...
22
votes
2answers
12k views

How do I interpret the DCT step in the MFCC extraction process?

In most audio processing tasks, one of the most used transformations is MFCC (Mel-frequency cepstral coefficients). I mostly know the math that's behind the MFCC: I understand both the filterbank ...
4
votes
2answers
5k views

How to remove or filter the drift problem in measured Strain signal?

I have the strain signal of a lateral beam of a car measured at sampling rate 1,200Hz from data acquiring system. Even after using temperature compensation in strain gage, we are getting drift. So I ...
2
votes
1answer
1k views

GPS signal acquisition

I have a set of GPS satellite signal data, the set is 1 ms long and has the information of two satellites (satellite number, code phase and frequency) buried in noise. This data has a carrier ...
7
votes
1answer
1k views

Adaptive filtering: Optimum filter length and delay

I'm trying to find the optimum filter length for an Adaptive Filtering, using RLS Algorithm. I'm using this design: So the "error" signal is the signal without noise (and that's the signal that I ...
3
votes
2answers
9k views

How to Prove a 2D Filter Is Separable?

I want to prove that 2D Gaussian filter is separable and we can separate it into two dimensions, my problem is about the size of filters. we should prove that $G(x,y)*I$(where $G(x,y)=$$\begin{bmatrix}...
1
vote
2answers
1k views

FIR Filter Design - input parameters conversion

I am new to DSP and filter design. I have developed a code in C++ to calculate FIR coefficients using Parks-McClellan algorithm. The inputs to calculations are: Filter type (Low-Pass, High-Pass) ...
24
votes
4answers
19k views

Peak detection approach

What are the peak detection algorithms in existence? I have noisy data, and I would like to implement peak detection for this data. Data is in reverse, actually I am trying to determine the bottom. ...
12
votes
2answers
11k views

Filter Order Rule of Thumb

Is there a rule of thumb for calculating the approximate filter order of a FIR/IIR based on passband vs sample rate? I seem to remember reading about it once in Undergrad. I'd think you could make a ...
8
votes
6answers
5k views

Convert a FIR to an equivalent IIR

Is there a way to convert a FIR to an IIR filter with the most similar behavior?
1
vote
2answers
1k views

Different way to separate a particular frequency from a signal

Let's say I have a signal which is composed of 2Hz,10Hz,17Hz,19Hz and 25Hz discrete time sinusoidal waves and I need to allow only 17Hz component to pass. As far as I know, the standard way to ...
11
votes
3answers
4k views

Shift a signal by fraction of a sample

I have a signal with a sample time of 0.5 micro seconds and I would like to shift this signal by a fraction of the sample time, say by 3 nano seconds. I have read a few online resources about ...
9
votes
2answers
824 views

Duration of unknown rectangular pulse with additive white Gaussian noise

Problem. There is a discrete signal $f[i]$ (example below). It is known, that $f[i]$ have a form of rectangular pulse with additive white Gaussian noise. $f[i] = s[i] + n[i]$, $s[i] = \alpha(\...
3
votes
2answers
3k views

FFT analysis for Vibration Signal

I am working on balancing an air-spindle. For the unbalance analysis I use an accelerometer (NI device). I have the voltage signal from the accelerometer corresponding to the vibration of spindle at a ...
2
votes
3answers
7k views

What is the advantage of weighted median filter over median filter?

I could not find any proof or comparison of weighted median and median filters. Yes the more occurring pixel contributes much but what should be the criteria of choosing weight function. And any ...
1
vote
1answer
101 views

A Delay Between Two Filtered Chaotic Signals

it is a common practice to use a shift of cross-correlation peak to evaluate a group time delay of two signals (chaotic signals are included). Can one synchronously and equally filter these chaotic ...
2
votes
1answer
165 views

Applying 2D Image Convolution in Frequency Domain with Replicate Border Conditions in MATLAB

I have created a function that filters an image (250x250) with a gaussian blur kernel (5x5) using FFT and IFFT. I am trying to get my filtered image to equal exactly the filtered image created by the '...
45
votes
6answers
48k views

Simplest way of detecting where audio envelopes start and stop

Below is a signal which represents a recording of someone talking. I would like to create a series of smaller audio signals based on this. The idea being to detect when 'important' sound starts and ...
34
votes
4answers
32k views

What is the true meaning of a minimum phase system?

What is the true meaning of a minimum phase system? Reading the Wikipedia article and Oppenheim is some help, in that, we understand that for an LTI system, minimum phase means the inverse is causal ...
16
votes
5answers
30k views

Why are FIR filters still stable even though they contain poles?

How come FIR filters are always stable? Since they contain poles, shouldn't they be more affected by stability issues than others?
20
votes
3answers
6k views

Which IIR filters approximate a Gaussian filter?

So it recently dawned on me that Bessel filters, despite being listed along with the other common types, are really an oddball that belongs in a different "class", and I'm trying to learn more about ...
19
votes
1answer
25k views

How to Extract High Frequency and Low Frequency Component Using Bilateral Filter?

What does High frequency and low frequency component signify in an image. How to separate out the high frequency as well as low frequency component of an image using Bilateral filter.
5
votes
3answers
35k views

Group delay of the FIR filter

For an FIR filter, with symmetrical tap values $h[N-1-n]=h[n]$, why is the group delay $\frac{N-1}{2} T$ (where $N$ is the number of taps of the FIR filter and $T$ is the sampling time)? Why is ...
13
votes
2answers
27k views

What Is the Difference between Difference of Gaussian, Laplace of Gaussian, and Mexican Hat Wavelet?

There are three techniques used in CV that seem very similar to each other, but with subtle differences: Laplacian of Gaussian: $\nabla^2\left[g(x,y,t)\ast f(x,y)\right]$ Difference of Gaussians: $ \...
3
votes
2answers
8k views

Eliminate Signal A from Signal B

i have 2 audio signals, both available in time and frequency domain: A: Noise B: Noise(A with minor variations) + Additive sounds (C) i want to eliminate Signal A from B to leave only C. C is for ...
12
votes
3answers
6k views

How to detect “fast” changes in signal processing

I'm working on a project where we measure the solderability of components. The measured signal is noisy. We need to process the signal in real time so that we are able to recognize the change that ...

1
2 3 4 5
8