2022 Developer Survey is open! Take survey.

# Tag Info

### When concatenating sine waves, how do I phase shift in order to prevent "pops" caused by sudden jumps in amplitude?

A simple solution is to implement the waveform in phase versus time instead of frequency versus time which can then facilitate phase continuous transitions. Frequency is the time derivative of phase, ...
• 36.2k

### Signal processing in Python vs C++ (band-pass filter)

Not really an answer but too long for a comment. Standard software development and debug techniques should solve this Don't use code on real data before it has passed all unit tests First write the ...
• 30.9k
Accepted

### Can the deconvolution Wiener filter reduce noise without having a blurred image?

For Salt and Pepper noise on medical or real world images using the Wiener Filter isn't recommended. The Wiener filter basically takes advantage only on the knowledge from the spectrum of the data. ...
• 39.5k

### Python vs Matlab? Which one better for image processing?

I have spent the first 20 years of my career working extensively in MATLAB for signal processing applications. Six years ago I gravitated over to Python out of curiosity and it has since completely ...
• 36.2k

### When concatenating sine waves, how do I phase shift in order to prevent "pops" caused by sudden jumps in amplitude?

IMO the best way to implement this is a rotating phasor. Recall that $$e^{jx} = \cos(x) + j \cdot \sin(x)$$ and $$e^{j\omega(n+1) } = e^{j\omega n } e^{j\omega}$$ That means we can calculate the a ...
• 30.9k

### When concatenating sine waves, how do I phase shift in order to prevent "pops" caused by sudden jumps in amplitude?

Use phase from the start, and do not just multiply by time t - this is vital For each sine wave, use a variable to hold the current phase. Then for each time step, multiply ...
• 291

### Can the deconvolution Wiener filter reduce noise without having a blurred image?

Can a deconvolution Wiener filter reduce noise without blurring? Maybe. Maybe not. There is not one Wiener filter. Any concrete "Wiener filter" is a plain old filter that has been ...
• 8,141

### Python vs Matlab? Which one better for image processing?

MATLAB's Image Processing toolbox is much richer than what you'd find on Python except OpenCV. OpenCV on Python doesn't feel natural yet still give you access to basically the largest library of image ...
• 349

### FFT of a gaussian signal in Python

There are two issues: The time axis is not long enough to capture a sufficient length of the Gaussian. The FFT is not properly scaled. For the first item mentioned regarding the time axis, the ...
• 36.2k
1 vote

### Impact of STFT window function and FFT length on computation time

Some prefer to use the minimum rather than the average compute time. The idea being that the core phenomenon is the «noiseless» compute time, and that noise only ever adds to that time, never ...
• 2,063
1 vote
Accepted

### Impact of STFT window function and FFT length on computation time

I think this is just measurement noise. You would not expect the window to make any difference (if it's precomputed). However the window length should make a small but consistent difference and that's ...
• 30.9k
1 vote

### When concatenating sine waves, how do I phase shift in order to prevent "pops" caused by sudden jumps in amplitude?

One solution I see is to concatenate the two, different amplitude sines at their zero crossings, making sure they have the same phase (e.g. if one goes up, the other has to go up, too). This way, the ...
• 1,393
1 vote
Accepted

### Butterworth filter cutoff attenuation is not exactly 0.707(-3dB)

Filter needs time to settle down. This settling process altered the beginning of time domain data and created the small difference. I took the second half of time domain filtered data and got a ratio ...
• 11
1 vote

### Butterworth filter cutoff attenuation is not exactly 0.707(-3dB)

What you see there are margin issues. By not applying a window function to your signal before the FFT, you effectively convolute your spectrum with an $\text{si}$ function, which leads to artifacts ...
• 1,619
1 vote

### How to achieve a periodized Mexican hat wavelet with period L by using Python?

This is quite straight forward, if you use Python's numpy library. It is capable of array operations and thus, this task is just a few lines. ...
• 1,619

Only top scored, non community-wiki answers of a minimum length are eligible