A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

# Questions tagged [filtering]

The tag has no usage guidance.

234 questions
Filter by
Sorted by
Tagged with
257 views

### Easy way to get rid of noise in a hand drawing

I would like to take a user's hand drawn input, and filter out "noise", aka small sketches or blobs, where the user might have screwed up and accidentally touched his hand to the drawing device, or ...
65 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 ...
24 views

### Recoverable continuous function after average sampling

I have a personal interest in this question, but I don't know if it is unfounded. Suppose I have a continuous function x (t), which is sampled using an average sliding window, which performs a ...
36 views

### Comparisons of FIR Causal filters of type HRIR in Discrete Time and Frequency Domains

I have just implemented a Discrete Time Convolution between HRIR filter at a range of angles. I also implemented an Overlalp-and-Add method and FFT and IFFT to compute the same convolution in ...
15 views

### Supression of sinusoidal interference

I have a bit of project that I'm doing for SIN interference removal. Just not sure Am I doing everything correct: Fs = 1000; Ts = 1/Fs; order = 12; t = 0:Ts:1-Ts; x = sin(2*pi*4*t); noise = ...
314 views

1k views

### MATLAB : How to filter a data signal

I have a data signal (column vector) with N values taken over at specific sample rate (dx) at a fixed frequency. After taking the Fourrier transform of this signal and representing it in the Fourier ...
35 views

### How to get discrete values from a nosiy data set that have a trend?

I have a sensor that produces values over time (appr. 50/sec). I visualized these values (X axis is the time), this can be seen on the picture, measurement A and B - these are two independent ...
86 views

### Filter before or after multiplication of two signals?

I have two signals and want to multiply them, e.g. voltage and current are multiplied to get power. The result (e.g. power) shall be a filtered result, e.g. to see the average. Is it better to filter ...
44 views

### How to sketch this multirate system spectrum?

In the following system: The signal x(n) is upsampled by 2 and then filtered. The signal and the filter have the following spectrum: After upsampling the spectrum of X would look the same except ...
141 views

### Manual filter or digital filter first for EEG?

I am getting conflicting advise regarding how to clean my EEG data: 1) Manually remove artefacts first and then apply digital filters OR 2) Apply digital filters first and then manually remove ...
646 views

### Discrete Sinusoidal to State Space

I'm looking to apply an optimal LQR filter to a discrete signal of the form $x[n]=A\sin[\omega_0n + \phi]+ v[n]$ The amplitude $A$ and the phase $\phi$ are unknown variables I want to estimate using ...
35 views

### Continuous time double exponential filtering in state space form?

I'm trying to determine the continuous time formulation of the double exponential filter so that I can adapt it more flexibly for my particular problem. Typically, this model is expressed as a pair ...
38 views

### How to quantify phase distortion of a filter specific to a signal?

For example, a EKG input signal is filtered with a known transfer function that does not have linear phase. How do you quantify the phase distortion of the output signal given you have the input? I ...
47 views

### Transfer function given as z-Domain fraction: gain calculation

I am stuck on a question regarding transfer functions. I have the answer and have attempted the question but am having trouble solving it. Q: Given the transfer function of a digital filter is (5z-5)/...
116 views

### Use samples of Fourier transform as DFT?

Consider the LTI system given by: $H(z) = 1 - \frac{1}{2}z^{-1}+\frac{3}{4}z^{-2}$ Let $x[n] = (\frac{1}{2})^nu[n]$ be the input to the system. We want to find the output for $n = 0,1,...,N_a$, using ...
473 views

### Bandpass filtering an audio signal with MATLAB's $\tt kaiserord$: unknown new frequency component

I am trying to filter an audio signal with kaiserord in MATLAB, but I'm having a problem. Here is my code: ...
51 views

### Meaningful output of FIR filter output

I have implemented FIR filter using tapped delay line method. I start getting output as soon as first input sample is passed to it, I am wondering from which sample I will get the proper output(...
17k views

### How Does a Convolution Can Be Expressed as a Matrix Multiplication (Matrix Form)?

I know this question may not be very relevant to programming, but if I don't understand the theory behind image processing I'll never be able to implement something in practice. If I got it right ...
44 views

### Zone Plate Reconstruction

I am trying to reconstruct the Zone Plate image and am struggling to remove the last remaining aliasing. ShaderToy: https://www.shadertoy.com/view/wdGGWK In the shader above you can see that I am ...
55 views

### How to filter very low amplitude staircase signal from a background noise

I have a staircase signal of a specific pattern that is drowned in a background noise. The ratio of signal to noise amplitude is nearly $10^{-4}$. I have attached the image of both with this post. I ...
34 views

### How to downsample my data readings from 0.5hz to 0.001667hz. Do I filter and downsample?

I have a device that, in the lab, takes voltage readings every 2 seconds. However in real-life application the device would only wake every 10 minutes and then take a 100 readings whilst awake. How do ...
98 views

### How the zero - phase filter without filtered signal truncation at the end can be implemented?

I mean what for the window FIR filter the filtered signal is truncated at the end because impulse response of the filter is symmetric. For example the code from here (in python) (lowpass FIR filter) ...
134 views

### DC Spur in DAC output

I have a design in which a signal from ADC is filtered and then played by DAC. In FPGA the real signal is converted to quadrature using DDS with 70 MHz frequency. After filtering, the baseband signal ...
94 views

### Looking for a analytical formula to compute the central frequency of a signal analyzed by a discrete wavelet at a given scale

I am reading this paper by Han et al. (2014). In this article, the authors extract detailed information from geomagnetic data sampled at 1Hz using a daubechies 5 (db5) wavelet: they reconstruct the ...
244 views

### Real-time oscillation-like noise filtering

I am making real-time measurements, which are affected by some noise. This noise has oscillating pattern, i.e. the total signal tends to oscillate around the mean value. The examples of measurements ...
358 views

### Use Scale Space Representation to Filter Single Image

Currently I hope to use scale space representation to filter one image. Features in one image can be filtered using an Gaussian smooth filter with one optimal sigma. It means different features in one ...
1k views

### Median Filter for salt and pepper noise removal

Why median filter is considered as good for removal of salt and pepper noise? What are the other filters used for the same?
15k views

### Given Position Measurements, How to Estimate Velocity and Acceleration

This is simple i thought, but my naive approach led to a very noisy result. I have this sample times and positions in a file named t_angle.txt: ...
188 views

### Real time FFT & IFFT with low pass filter

I am processing the signal from MPU6050. Applying FIR filter in the frequency domain and then taking IFFT to get filtered signal but getting some spikes in the output signal. Searched a lot about it ...
383 views

### Role of the rank of the filter mask matrix in image processing?

I'm reading a material where it says that a filter mask or kernel can be separable if the matrix of the filter mask has a rank 1. The two slides which describes this are as below: Reading these ...
41 views

### Filtering in the Frequency Domain - DIP [closed]

I am trying to do some filtering with a gray scale image in the frequency domain. I am just getting into matlab after some time away from any signal processing or coding and can't quite seem to get my ...
18 views

### Image Processing Perspective Transform

This youtube video shows the current world record for smb1 speedrun, but it is recorded from a phone on a CRT TV. https://www.youtube.com/watch?v=IuVLtaB8uQk Is it possible through perspective ...
90 views

### How Butterworth low-pass filter can be applied on a digital signal (i.e. discrete representation of a signal)?

I would like to know how to apply a low pass filter (Butterworth) to a digital signal. So, I have some values of the signal, let's say $S(t)$. Those values are equally spaced in time. I have read the ...
74 views

### Cross-correlation of filtered random processes

I have a wide-sense-stationary (WSS) process $\{x(t)\}$ and two linear filters with impulse functions $h_1$ and $h_2$. Let $\delta(\omega)$ be the power spectrum of $\{x(t)\}$ and H_1:\omega\...
42 views

### Downsides of higher order filtfilt's

I understand that with a standard filter, higher order will yield sharper frequency selection at the cost of increased phase delay. However, with so-called zero-phase-distortion filters like that ...
58 views

### Avoiding transients during filtering: Padding or Gustafsson's method?

I'm pretty uneducated when it comes to filtering, more of a stats guy, but I have to bandpass some signals and after a bunch of reading today I understand that the ...
86 views

### Polyphase resampling delay

I want to implement polyphase resampling. For this, I wrote a script in matlab. The script performs the following sequence of actions: ...
13 views

### Why are guard bands employed in FBMC even though the prototype filter has near perfect leakage performance?

FBMC employs prototype filter which has a good performance in reducing the spectrum leakage to almost zero but there are a few implementations online where they have still used guard bands on either ...
77 views

### How to apply discrete filters to a signal

Let's say I have a signal like x[k] = [-20 -50 -30 50 30 -60 60 -60 60 10 5 10 5 5], and I want to apply a lowpass and a highpass filter to this signal (separately). For example the impusle response ...
Generally we apply a filter to reduce noise from signal. For example if the received signal is $S$ we would get a signal $Y$ with reduced noise applying a filter $W$ with the operation Y= convolution(...