Questions tagged [smoothing]

Smoothing a signal or data set approximates the data to reveal patterns and exclude noise, fine-scale structure and rapid changing phenomina.

Filter by
Sorted by
Tagged with
0
votes
1answer
36 views

Smoothing a discrete function with point wise variances

In Stark's Introduction to numerical methods [1970] it suggests fitting local polynomials to smooth discrete data before the Fourier transform using least squares minimisation. This gives the ...
0
votes
1answer
120 views

Selected bin oscilation in STFT

I am looking for a noisy signal using STFT. My window length is 128 and I am using 75% overlap. I am using a Hanning window before running the FFT process. I am using Quinn's 2nd estimator for ...
0
votes
1answer
126 views

Smooth signal with Hanning

I have an acceleration record and i want to smooth it's spectrum by using a hanning window with Bandwidth=0.5 Hz. How could i do that? Example in python/matlab will be appreciated!
6
votes
1answer
1k views

Issues with the smoothing operator in coherence estimation using the complex Morlet (Gabor) wavelet

The goal I wish to compute the coherence estimate using the continuous wavelet transform (CWT) of a real-valued signal with the complex Morlet (a.k.a. Gabor) wavelet. I compute the cwt of the signal ...
0
votes
1answer
29 views

Error introduced by smoothing filter at the end of a processing block

I'm running analysis on a multichannel audio signal and due to the size have decided to process it in blocks (my computer doesn't have enough memory to process it in one go). Some of the data produced ...
2
votes
1answer
290 views

Kalman Filter EM Estimation of Covariances

The question might be very simple, but I get a strange result from Kalman Filter. Let us consider the simplest state-space model, the random walk plus noise: $$ y_{t} = x_{t} + \varepsilon_{t}\\ x_{t} ...
0
votes
1answer
91 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
32 views

Box function signal filtering in python

I am trying to produce a box function filter of a signal in python. I expected to find this functionality in scipy.signal, but I can't find any solutions. What I am trying to do is this. I have 2 ...
0
votes
1answer
74 views

Smoothing power spectrum by convolution with boxcar function

I am trying to smoothing a signal's power spectrum by convolving the spectrum with a boxcar function in frequency domain. However, the result is obviously not what I expected: original two frequency ...
0
votes
0answers
22 views

Smoothing peak spectra in time domain

I would like to smooth amplitude spectra of signals around their peak frequencies. I could perform FFT, find the peak frequency, and smooth around the peak in frequency domain, then inverse FFT back ...
2
votes
1answer
64 views

Deriving a Kalman Filter Equation for a Linear Gaussian Filtering Model with Non Zero Mean Noise

I am trying to answer an exercise question from the book Simo Sarkka - Bayesian Filtering and Smoothing. The question is: Does anyone know if there is a resource that has the solutions for this book?
1
vote
1answer
129 views

The Effect of the Standard Deviation ($ \sigma $) of a Gaussian Kernel when Smoothing a Gradients Image

I am trying to understand why smoothing an image with a gaussian kernel of different sigma values and then computing the gradients of the smoothed image leads to "thicker" trails. In the ...
0
votes
1answer
162 views

What is the point of smoothing an FFT or spectral density plot, and how does that affect the noise floor?

It appears that smoothing the FFT or spectral density plots of a noisy signal is a common practice. I see that common tools like MATLAB and Python have functions built in to their FFT tools to do just ...
0
votes
1answer
72 views

Is it applicable to implement a cascaded moving average filter with variable window on real-time?

I am using a 3-pass cascaded moving average filter for smoothing noisy data. I applied some optimization algorithms to determine the optimal length of the MAF window. For different amplitudes of data ...
6
votes
1answer
198 views

A Simple Algorithm to Filter / Smooth / Denoise a Noisy Staircase Graph

Is there a way to remove the noise and smooth the graph into a staircase graph.
0
votes
1answer
68 views

Possible to get transfer function coefficients from window?

I am hoping to use scipy.signals.filtfilt() to smooth some signals in Python, and wanted to build the filter based on a window like a hanning window or whatever. E....
3
votes
3answers
85 views

Reversing the Order of Operators for Edge Detection?

Usually, for edge detection, we perform smoothing and then pass it through difference filter. What if application of difference filter happens first and then smoothing. How the math behind the same ...
0
votes
0answers
17 views

how to do smoothing a linear noise adc signal to a exponencial curve to increase and logarithmic to decrease

I am studying methods of signal smoothing obtained in an Analog Digital converter that is operated by a common potentiometer that generates a certain noise, such potentiometer is linear and I cannot ...
0
votes
1answer
21 views

I want to get tilt sensor value for a given time t_0, but the tilt sensor data points are discrete. How do I interpolate between the discrete points?

I have 3-dimensional readings from a tilt sensor (specifically these are rotational angles about X, Y, and Z axes) over time. Let's call these angles S. I want to infer S at a specific time t_0, but ...
6
votes
1answer
904 views

$1/n$ octave complex smoothing

An excellent answer to this post explains how to do $1/n$ octave energy smoothing and mentions complex smoothing can be done as well, but it's tricky business because of phase wrapping. How is phase ...
0
votes
3answers
165 views

How do you do signal averaging on a realtime data?

Smoothing algorithms implemented by me Exponential smoothing - https://www.openprocessing.org/sketch/771368 Moving Mean - https://www.openprocessing.org/sketch/540696 For example - a1+a2+a3+a4+... ...
1
vote
2answers
144 views

How to properly smooth the phase of a spectrum (or any unit-complex function)

I want to smooth the phase of a measured (transfer) spectrum without destroying unit-complexity of the phase factor. Suppose $$f:\mathbb{R}\to \mathbb{C}\qquad , \qquad f(\omega)=r(\omega)\cdot {\rm e}...
4
votes
1answer
973 views

The Meaning of the Terms Isotropic and Anisotropic in the Total Variation Framework

The isotropic TV is defined as the estimation of 2-norm of gradients $\sqrt{(y_{i+1,j}-y_{i,j})^2+(y_{i,j+1}-y_{i,j})^2}$, while the anisotropic TV is defined as the estimation of 1-norm of gradients $...
0
votes
2answers
212 views

Confused in Smoothing a signal in the Frequency domain

First of all i am new in DSP, so i have no solid education in the field. I have convert my time domain acceleration-seismic data to frequency using DFT and i am trying to smooth the DFT data, in ...
1
vote
1answer
235 views

How to Smooth Gradient Estimates for Steepest Descent Optimization

In steepest descent methods of minimizing a function $f(x), x \in \mathbb{R}^d$, it's common to approximate the gradient by finite differences: $\qquad\qquad \nabla f(x) \approx gradest( x; h ) \...
4
votes
1answer
854 views

How Can I Detect Peaks and Regions of Highest Variance in a 1D Signal?

I'm not a signal processing person at all so hopefully I'm not asking an obvious question (if I am, I'd appreciate any resources that would help give more context). I have a 1D vector where the ...
17
votes
6answers
13k views

Savitzky-Golay smoothing filter for not equally spaced data

I have a signal that is measured at 100Hz and I need to apply the Savitzky-Golay smoothing filter on this signal. However, on closer inspection my signal is not measured at perfectly constant rate, ...
0
votes
0answers
40 views

Smoothing the signal by integrating and then differentiating using a gaussian CWT

Recently, I have started implementing CWT on accelerometer signals. A method stated in an article stated that the signal is smoothed by integrating and then differentiating the signal using a Gaussian ...
0
votes
0answers
126 views

Frequency Smoothing for Noise Reduction

I'm trying to understand the Noise Reduction implementation in Audacity and I was wondering how the Frequency Smoothing is implemented. Frequency Smoothing (bands): At values of 1 or higher, this ...
2
votes
2answers
1k views

Effect of Gaussian Blur on Different Frequency Components of an Image

Gaussian blur is lowpass filter which means it pass the low frequency components and stop the high frequency component but the point I am not getting is that if it is lowpass filter then how it is ...
0
votes
2answers
146 views

Filterpy Kalman Filter batch processing with multiple measurement sources

In pythons module for kalman-filtering, filterpy, there is a function batch_filter() to batch filter a list of measurements that then can be used for RTS-smoothing. ...
0
votes
1answer
30 views

Can you predict how long a discontinuity will take to reach its target if it is low pass filtered at a certain frequency?

Let's say you have a signal that relatively slowly rises from 0 to 1, then suddenly from one sample to the next drops back to 0, creating a sharp discontinuity. Let's say you run it through a one pole ...
0
votes
2answers
628 views

How to smooth (or interpolate) phase of FFT and reduce data points

I am writing some code for audio analysis, and have currently got two signals with FFT performed on them. I get the phase of my complex array by using: ...
26
votes
5answers
8k views

Is there a technical term for this simple method of smoothing out a signal?

Firstly, I am new to DSP and have no real education in it, but I am developing an audio visualization program and I am representing an FFT array as vertical bars as in a typical frequency spectrum ...
0
votes
0answers
33 views

Slew Rate Filter With Different Smoothing Factors in Each Direction

I'm smoothing the output of an ADC with a simple first order low pass filter. Of course the smoothing rate is the same whether the signal is rising or falling. Preferably the smoothing rate needs to ...
3
votes
2answers
206 views

Smooth 2D Data with Discontinuous and Artificial Jumps

I have some data $(X,Y,Z)$, which is a set of measurements $Z$ over a $2D$ space $X$,$Y$. The $Z$ data on this space is continuous except for some discontinuous jumps in certain domains of $X$,$Y$ (...
8
votes
4answers
680 views

Solving Convex Optimization Problem Used for High Quality Denoising

The highest voted answer to this question suggests that to denoise a signal while preserving sharp transitions one should minimize the objective function: $$ |x-y|^2 + b|f(y)| $$ where $...
1
vote
2answers
656 views

Transfer function of double exponential smoothing?

Double exponential smoothing a.k.a. Holt-Winters smoothing tracks level and trend of a time series in coupled IIRs: $\qquad$ In: $Y_t$, t = 0 1 2 ... $\qquad$ State: $L_t, T_t \quad$ -- level and ...
1
vote
0answers
83 views

Algorithm for smoothing the output of an object detector operating on a video?

Please could you point me towards an algorithm that takes a series of object detections performed on a frame by frame basis as input and outputs a filtered series of object detections in which the ...
4
votes
2answers
5k views

When should the sum of all elements of a gaussian kernel be zero?

I found an approximation of a 5x5 2D convolution kernel like this : Here, the sum of the elements is zero and this one was used for Laplacian of Gaussian! Another one here : This one has all ...
0
votes
0answers
90 views

temporal smoothing: FWHM of Gaussian kernel vs. window length of moving average

Suppose in one case I convolve Gaussian kernel with FWHM=10 samples. I would like to compare the result with moving average. My question: should I take the moving average window also 10 samples? In ...
1
vote
0answers
51 views

Difference Between a 1st Order SG Filter And a Least Squares Moving Average

I have been studying SG filters and i recently found another filter which seem to be commonly used in financial data smoothing which is the least-squares moving average, this filter is also called ...
4
votes
5answers
27k views

Noise Removal from an Image Using OpenCV (Comparison to Neat Image)

I tried removing noise from the image shown below using Median Blur in OpenCV. But i'm not able to remove the colour noise completely as it is done in Neat Image. Any suggestions.? 1. Original Input ...
1
vote
2answers
313 views

Filter for Reducing Background Noise in Image

I have images where there is a lot of "black" background (few shades of black). (In many images at least half the pixels are background). I need to get interest points from the image, but because the ...
1
vote
0answers
62 views

Implementing Edge Preserving Diffusion (Anisotropic Diffusion)

I am trying to implement edge preserving diffusion. Recall the general diffusion equation to be: $$\DeclareMathOperator{\Div}{div}\delta_t u = \Div(g \nabla u)$$ Where $g$ is the speed of the ...
0
votes
1answer
561 views

How to extract a smooth contour from a set of points in 3D?

I am trying to segment a 3D volume. The outcome of all my volume segmentation algorithms is a set of candidate points in 3D space. Now I need to smooth this point cloud and fit a closed surface it. My ...
1
vote
2answers
4k views

Generating smoothed versions of square wave, triangular, etc

I'm trying to get functions depicting smoothed out versions of wave forms(triangle,square, sawtooth, reverse sawtooth) which have the same amplitude and frequency as $cos(x)$. I found a few ...
1
vote
1answer
198 views

Classifying and filtering out noise from zero crossings

Note: I know absolutely nothing about zero crossings nor signal processing in general. However, I am doing programming exercises that require them. I've searched around but I cannot understand most of ...
9
votes
2answers
2k views

IIR Filter for Smoothing (Low Pass Filter)

I am using IIR filter for smoothing $$y[n] = ax[n]+(1-a)y[n-1]$$ My question is, if I add another IIR filter, will it be the second order of IIR filter? If not, what it can be called? My second ...
2
votes
1answer
210 views

Fast Recursive 1D Signal Smoothing - IIR / Auto Regressive Implementation of Gaussian Smoothing

I have just begun to dive into the field of signal processing, but there is the need to program a digital filter, that has to smooth a realtime signal from a sensor device. As far as I know, in my ...