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.

64 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
1k views

STFT overlap add method - What am i doing wrong?

i am trying to implement a short time fourier transform of an audio signal to do some filtering (subtract another stft signal using spectral subtraction). I am using a hamming window function with 50% ...
3
votes
1answer
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 ...
2
votes
0answers
33 views

How does the “additive operator splitting” exactly work?

I am reading about the non-linear (or non-homogenous) diffusion method (aka anistropic diffusion method). There are several ways of implementing this method. In all cases, we first need to discretise ...
2
votes
0answers
107 views

Use of an impulse-response system to model sediment transport along a river reach

I am new to signal processing and have come into the subject from the study of rivers and basic geophysics. I am trying to test an idea previously put forward that the sediment transport response of ...
2
votes
0answers
39 views

Filtering for Wright-Fisher HMM

I am trying to understand what filter may be suitable for the following HMM: The signal is a Wright-Fisher one-dimensional diffusion characterised by the SDE $$dX_{t}=\frac{1}{2}\left(\alpha(1-x)-\...
2
votes
0answers
83 views

maching convolution filters to results

I am practicing for an exam and I need help in the following question (it is just for me- no grade...) we get an input image, 6 convolution filters and 6 results. we need to find the matches between ...
2
votes
0answers
143 views

Open source GPS+IMU sensor fusion?

Are there any Open source implementations of GPS+IMU sensor fusion (loosely coupled; i.e. using GPS module output and 9 degree of freedom IMU sensors)? -- kalman filtering based or otherwise I see a ...
2
votes
2answers
647 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 ...
2
votes
2answers
314 views

Anisotropic Diffusion Filter - Intuition Behind Parameters

I need to know what is iteration and divergence in anisotropic diffusion filter technique. Isotropic diffusion $$\frac{\partial I(x, y, z)}{\partial t}={\rm div}\left[c\cdot \nabla I\left(x, y, ...
1
vote
0answers
61 views

Noise Reduction: How can I filter out saw or other tool noises?

I recently came across old recording from the 1930's. Unfortunately not only is the quality low, it's a bunch of carpenters talking as they saw things and make all sorts of other noises. I've tried: ...
1
vote
1answer
193 views

How to calculate the Fourier transform of a mean filter in Matlab?

In Matlab, how can I calculate the discrete-space Fourier transform of a mean which takes the average of 4 adjacent points, with this kernel $$\begin{pmatrix} 0 &1& 0\\ 1 &0&...
1
vote
0answers
55 views

Using a Passive 1st Order RC filter to Extract DC Component

I am trying to extract the DC component out of a PWM signal produced by the MCU using a LPF. I understand that 1st order RC filter is looked upon as being amateurish because the gain in the passband ...
1
vote
2answers
2k views

What is the difference between the sampling frequency of signal and sampling frequency of filter

I believe that there is no connection between the sampling frequency used for converting an analogue filter to digital filter and the one used to sample a signal that the filter will be used on. But I ...
1
vote
0answers
84 views

Processing digital sound in Audiokit to sound like the 1960's

I am looking to imitate 70's analog equipments sound. I was wondering is there a way to create tape saturation / distortion inside Audiokit? I want to add that and randomized tape crackles and ...
1
vote
0answers
143 views

Electromyography: is this interference from the heart/how to remove it?

I'm using electromyography to evaluate the activity of lumbar erector spinae at various levels of effort. For this I also intend to sample the activity at complete rest (in prone lying). In my first ...
1
vote
0answers
36 views

Multitapering in time domain to obtain smoother filtered signals?

Suppose we want to approximate the instantaneous power $z(n) = |y(n)|^2$ of the discrete-time signal $y(n)$, where $y(n)$ is the result of filtering $x(n)$ with a given window $h(n)$, $y(n) = x(n) \...
1
vote
0answers
90 views

Fastest way to subtract known music tracks from live videogame audio stream

I want to isolate video game "action" sounds from the video game soundtrack. Given all ~20 songs, I'd like to filter them out from any live audio stream during gameplay. What is a fast and robust way ...
1
vote
1answer
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: ...
1
vote
0answers
33 views

How do I smooth-over transition from a time-series generated by one system to a time-series generated by another system?

So I have generated a time-series with length on 2N samples, where the first N are generated by one auto-regressive system and the N+1 to 2N are generated by another, similar, auto-regressive system. ...
1
vote
0answers
43 views

Proximal operator of image Laplacian

Let $\alpha, \beta > 0$ and $\Delta := \nabla^T \nabla$ be the discrete laplacian operator, $$\nabla: \mathbb{R}^{n_x \times n_y \times n_z} \rightarrow \mathbb{R}^{3 \times n_x \times n_y \times ...
1
vote
0answers
2k views

Implementing a 2d butterworth filter for image processing?

I am at the moment trying to implement a bandpass butter worth filter which i then can use to apply on my original image. Problem is though My implementation of it using OpenCV doesn't seem to be ...
1
vote
0answers
158 views

amplitude compensation after filtering and mixing audio

I am working on a mixer which lets me mix dry and wet signal in a user defined ratio. Wet signal is basically just the all pass filtered signal. The mixing takes place in frequency domain and so does ...
1
vote
0answers
127 views

Fractional equalizer with non-integer oversampled signal as input

I would like to know how the output sequence from a fractionally spaced equalizer, with a non-integer oversampled input signal, is generated. For example, for $T=T_{sym}/2$, my actual code is ...
1
vote
0answers
931 views

Instantaneous power estimation by discrete hilbert transform - how far does it smooth?

In my research area, instantaneous power in a specific frequency band is commonly estimated by the following procedure: Apply a bandpass filter on the raw signal (e.g. 80-90Hz bandpass). Estimate ...
0
votes
1answer
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 ...
0
votes
0answers
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 = ...
0
votes
0answers
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 ...
0
votes
1answer
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 ...
0
votes
1answer
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 ...
0
votes
1answer
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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 ...
0
votes
0answers
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: ...
0
votes
0answers
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 ...
0
votes
1answer
64 views

Adaptive Band pass filter for extracting respiratory waveform from accelerometer data

I am recording data from an accelerometer attached to the chest (1000Hz). I need to extract the respiratory waveform. I tried an adaptive bandpass filter based on a dominant frequency in my signal ...
0
votes
1answer
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 ...
0
votes
1answer
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 ...
0
votes
0answers
14 views

Differentiating high frequencies if a signal

I have a power signal (in dBm) which contains lots of peaks (around -80 dBm) and most of the time is around -110 dBm which we can call it noise level (obviously with fluctuations). As you know, both ...
0
votes
0answers
22 views

remove \ minimize first side lobe ringing artifacts due to data truncation

I have a truncated data set that I need to transform, for example: ...
0
votes
0answers
135 views

Fusing like data from multiple sensors using kalman filter

I'm new to kalman filters and filtering, and I'm working on a personal project where I have multiple readings all providing the same data (3d position in space, provided via computer vision algorithms)...
0
votes
1answer
38 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 ...
0
votes
1answer
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) ...
0
votes
0answers
30 views

Applying a filter on an input sequence in matlab

Given a input sequence $x = {x_1, ... x_n}$ and a filter with l elements $h = [h_1, ..., h_l]$ with l < n. We want to filter the input sequence with the specified filter. My first thought was to ...
0
votes
1answer
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 ...
0
votes
0answers
85 views

How to filter a sequence of frames?

I'm have a sequence of 2-dimensional MxN frames. I have concatenated these frames to form a 3-dimensional MxNxT matrix. Now i want to filter this 3D volume by 2 types of filters (a 2D log-Gabor in xy-...
0
votes
1answer
118 views

Remove high resolution spurious peaks from sinusoidal signal

I have the current from a LEM transducer measured. The measurement is taken on the output of a transformer. The signal is a 50 Hz signal, measured at 100kHz. When the demand of the system is increased ...
0
votes
0answers
238 views

How to include phase noise in sinusoidal kalman filter model?

I am modelling simple sinusoidal motion using a Kalman filter from the following equation of motion: $ \ddot{x} = -\omega^2x $ So my matrix equation of motion is: $$ \begin{bmatrix} \dot{x} \\ \...
0
votes
0answers
270 views

Prediction-error filter for images

I am interested in studying local pixel value dependencies in images and I am wondering if it exists a general form of prediction-error convolutional filter that is able to suppress the image's ...
0
votes
0answers
452 views

What is Single pole filter?

Can anybody tell me why do we use single pole filter? And may be an example of Single pole filter in matlab. Good literature recommendations are also welcomed.Moreover, that would be good if anyone ...
0
votes
0answers
27 views

If a signal is added to another in the freq. domain, how to filter it out?

I have two signals, $x$ and $y$. I know that $F(x)=F(s)+F(n)$ and $F(y)=F(n)$, where $s$ is the 'clean' signal, $n$ is the added noise and $F$ donate Fourier Transform. To obtain the clean signal, I ...