Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

5
votes
2answers
758 views

Why should an image be blurred using a Gaussian Kernel before downsampling?

I recently read that before downsampling an image, it should be blurred using a Gaussian Kernel. This way, the downsampled image is better than just picking a single pixel out of a NxN block or ...
0
votes
0answers
32 views

How do I smooth a binary signal in Python?

I have a signal that is binary (a sequence of 1's and 0's). I want to be able to "smooth" the signal; that is, I want to transform the signal such that in regions where there are 0's, the signal will ...
8
votes
3answers
187 views

Savitzky–Golay filter vs. IIR or FIR linear filter

A traditional IIR / FIR filter (lowpass to remove the high freq oscillations), e.g. moving average, or a Savitzky-Golay filter can all be useful to smoothen a signal, such as an envelope signal: ...
0
votes
0answers
36 views

apply 2x Gaussian filter and then down sample by 2 an one dimensional input, choose parametric sigma to not miss so much information

Please consider a 1-dimensional signal as an input. What are the considerations in choosing $\alpha$ if two Gaussian filters each with parameter $\sigma = \sqrt{\alpha}$ are applied in cascade and ...
0
votes
0answers
49 views

Resampling power spectrum from linear to logarithmic axis

My question is whether there exist methods for resampling a signal (power spectrum) from linear to logarithmic spacing without loss of information. My ultimate goal is to smooth spectra such that low-...
0
votes
0answers
43 views

What happens to a rectangular signal filtered with an Exponential Smoothing filter?

Filter given; $y[n] = \alpha x[n] + (1-\alpha) y[n-1]$. In principle all samples before the present one influence What happens to a rect-signal? How would it look like?
0
votes
0answers
28 views

Simultaneously interpolating and smoothing a 1D signal

I have an array of $(x,y)$ coordinates which represents the trajectory of an object in time. The coordinate values are, in general, quite well-behaved in the sense that there aren't many outliers, but ...
1
vote
1answer
52 views

What Are Different Approaches to Realize a Gaussian Blur (Smoothing) Step on an Image? [closed]

Could some review some methods to apply Gaussian Filter (Blur) on an image besides the direct one using Truncated FIR (classic convolution with Truncated Kernel) approximation?
1
vote
0answers
20 views

EKF smoothing for prediction at t=0 when no there is no measurement

I have a simple first-order reaction batch system for which I have some discrete measurements ($0<t_{k}\le t_{endbatchsample}$). I have an initial guess for $x_0$ and $P_0$ and from here I ...
3
votes
1answer
166 views

Does this Signal Smoothing algorithm have a name?

We are reverse engineering some 20 year old software. Original developers were laid off years ago, and cannot be found. In this code, there is a signal that is getting smoothed as follows: $P_{new} ...
0
votes
0answers
32 views

temporal smoothing and signal distortion

I compare two signals (blue and red). Each signal is an average of many observations (shades are standard error of mean). I need to show that the the blue signal is significantly above red one at the ...
6
votes
4answers
268 views

Make a signal that fits another the best possible with a limitation in the 2nd derivative

Consider this step function: The signal that "fits" this should look like the following (in green): The corners are now smooth because the maximum second derivative allowed is not infinite anymore. ...
0
votes
1answer
43 views

How to smoothen signal with missing values before differentiation?

I want to differentiate a noisy signal with many, randomly located, missing data values. Which smoothing techniques should be applied before differentiating the signal? I have a velocity signal at ...
0
votes
1answer
150 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: ...
1
vote
0answers
68 views

Estimate standard deviation of random-walk using Kalman filter

I'm new to Kalman filters so this might be a stupid question. I created a Kalman filter that takes in time series observations and estimates the mean of that time series. This is simply modeling a ...
0
votes
2answers
166 views

How to Mesure the smoothness of a signal

so how can i determine if a signal is smooth or not ? And if its possible to get something indicating the level of the smoothness of my signal. I looked at the r-squared and hurst exponent but i ...
0
votes
0answers
37 views

Is the higher order spline interpolation better than the cubic spline interpolation? [duplicate]

i am so confused with the accuracy of the spline interpolation. if higher order spline is better, then please do mention the examples. thank you!
1
vote
1answer
34 views

Should zero element be considered to calculate mean when smoothing spectrogram by window?

My (mass spectrometry) spectrogram does not measure the intensity constantly. I obtain the spectrogram, for example, ...
0
votes
0answers
24 views

Smooth data of Biozimpedance

I'm dealing with data of Biozimpedance to extract the respiration rate and trying to smooth it before further processing. The simpest way I used is a moving average. The problem I'm having is that ...
2
votes
2answers
72 views

What is limit on performance of edge-preserving filters for low signal-to-noise regimes?

Let's say I have a signal, $x(t)$, defined as such, $ x(t) = \begin{cases} 0 &\text{if} \,\,\, t < -\alpha/2 \\ \frac 1\alpha t+\frac12 &\text{if} \,\,\, -\alpha/2 \leq t \leq \alpha/2 \...
2
votes
2answers
421 views

Find smoothed first derivative from signal with noisy slope

How can I get filtered first derivative from a noisy signal that has slowly changing slope in form of y=kx+b? k can slowly ...
-1
votes
1answer
164 views

Smoothing or bigger FFT bins?

I have an FFT of a radio signal, to look at "what's happening" in the frequency domain. I'm interested in signals that are "wide enough", eg 1MHz, and thus would like to smooth the result to filter ...
0
votes
1answer
40 views

Removing the Multiples of Decrease and Increase in a Spike

I have a signal shown below. I got this signal from a glove, where I want to detect the movement of a finger. What I am planning to do is to threshold the signal, so I can get a binary signal ...
2
votes
1answer
162 views

smooth noisy irregularly spaced data containing peaks

I've got a set of scans of an object (human body) from different angles, which are being combined to reconstruct a 2D-representation. The raw measurements (blue plot below) contain a fair amount of ...
0
votes
2answers
277 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 ...
2
votes
2answers
880 views

Estimating the standard deviation of Gaussian filter from smoothed image

Firstly, let's say that in order to smooth an image, I convolve it with a Gaussian function having standard deviation $\sigma_x$ and $\sigma_y$. I am now interested in knowing if there exist methods ...
0
votes
0answers
117 views

Triangle smoothing

How can I make a triangle smoothing matrix? I have tried Toeplitz matrix but I need it to be symmetric and invertible. I want to apply it to my data by matrix multiple. I tried this: ...
26
votes
5answers
6k 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
1answer
696 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
0answers
269 views

Fast implementation of LOESS for equally spaced samples (possibly using convolution)

Is it possible to do LOESS smoothing on equally spaced data using convolution? The Wikipedia article on LOESS mentions a possibility of using a FIR filter for LOESS. I could not find anything more ...
5
votes
1answer
841 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: ...
2
votes
2answers
630 views

Smoothing a staircase

I have some data from a position encoder, so naturally i want to estimate its speed. However, the data is very quantized, so it's difficult to smooth enough to differentiate easily: Each step level ...
3
votes
1answer
608 views

Smoothing a power spectrum

My question is regarding how one could/should smooth a rather noisy power spectrum obtained from measurements. There are various methods one can use (a moving average, binning, etc) and I am not sure ...
0
votes
2answers
673 views

The difference of downsampling an image and smoothing an image?

I am, at the moment, trying to read up on some simple computer vision elements, in which i have become a bit comfused on the terms downsampling and smoothing, and whether there is a difference between ...
1
vote
1answer
156 views

midpoint smoothing spline

Suppose we have a time series which have peaks and troughs.(The red curve below) I would like to get an algorithm which is able to identify the peaks and troughs locations, then find the midpoint ...
1
vote
1answer
82 views

Is there a name for this smoothing formula?

Hi: I am reading a book called "lectures on wiener and kalman filtering" by Professor Thomas Kailath. On page 18, it says the following: To carry through this approach, let us first note that a ...
3
votes
1answer
1k views

Gaussian Pyramid - How is Subsampling Rate Related to Sigma?

I found a gaussian pyramid implementation in a MOPS paper (feature detection). They use sampling rate $s=2$ and $\sigma=1$ - i.e. to generate a new level of the pyramid, the current level is smoothed ...
1
vote
2answers
91 views

What criteria should be used for smoothing

Actually I have some measurement which I want to get rid of noise I want to use different filter techniques but I am wondering what criteria I should use to check if I am removing noise or not or if ...
2
votes
2answers
2k views

detect to rising, stable and falling point in non-smooth rectangular wave

I am working on basic signal processing problems in MATLAB. I have found a signal from the internet (i don't remember the site exactly). The data is organized in column wise. 1st and 2nd column is ...
0
votes
0answers
79 views

Why does increased kernel bandwidth equate to increased SNR values?

If I apply a Gaussian Kernel to an image with some noise applied to it and I want to remove that noise, why does the Signal to Noise Ratio increase as I apply kernel's with higher and higher sigma ...
0
votes
2answers
409 views

Structuring Kalman filter for tracking problem where only position is known

I'm new to Kalman filters and my extensive web search about them has helped me understand the majority of it (or so I think). However I still need some light shed on my problem formulation. I have a ...
1
vote
0answers
38 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
1answer
443 views

Implementing a 1-D Kalman Filter Regression, Missing the smoothing action (getting the opposite)

I am implementing the 1D Kalman Filter in Python on a fundamentally noisy set of measurement data, and I should be observing a large amount of smoothing...but, instead, my Kalman Filter is doing the ...
1
vote
1answer
261 views

Get phase information from bursty time series with amplitude variability and sharp edges

I have time series like this one, and I am trying to get the phase information from it. If it matters why, because I need to compute the precision of the cycles and amplitude variability is ...
4
votes
2answers
870 views

How do I smooth this noisy signal?

I have a numerical solution to a problem in mechanics. I am computing the force applied to an object as a function of its deformation and in the problem, there is an instability, due to which the ...
0
votes
2answers
1k views

Compute the time derivative of a noisy digital signal?

The issue is that my signal is very noisy. I need extract its time derivative as accurate as possible. P.S. I do not have any prior knowledge on the signal (black box). On forums some suggested ...
2
votes
1answer
751 views

how to smooth estimated velocity

I have a manipulator that provides the position and the velocity of its end-effector. The velocity is noisy. I've implemented a filter in C++ to determine the derivative of the position. In the below ...
1
vote
1answer
47 views

What is the equivalent smoothing function to running the same Gaussian 8 times?

Suppose there is an image which is to be smoothed by convolving it with a Gaussian kernel with standard deviation $\sigma$. If the image is then smoothed with this kernel 8 consecutive times, is the ...
3
votes
1answer
234 views

Smoothing 3D Data for the Second Derivative

I am not a signal processing expert and my feeble attempts at solving this problem have come up short. I have a C++ application which is being fed regularly-spaced (in time) 3D position samples. The ...
0
votes
1answer
177 views

Cascaded one-pole sections and relationship to time constant

I have implemented a typical one-pole lowpass filter to smooth out some control signals. The form of the filter is: $$ y1 = x0 + b1\centerdot(y1 - x0) $$ x0 is the current input sample. y1 is the past ...