Before I begin I have to tell you that I have zero knowledge about DSP in python.
I want to deconvolute two sound signals using python so that I can extract the room impulse response, the input signal being a sinesweep and the output a record of it.
I wrote a piece of code but it didn't work, I've been trying for too long and really without results.
Can someone please help me with a code that calculate the FFT of the input and output then calculate h the iFFT of their fraction and plot it.
coding a deconvolution using python
1.1k Views Asked by Med Morcia At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in SIGNAL-PROCESSING
- What kind of ARIMA model would be best fit for this data?
- Find Transfer Function from FFT Plot MATLAB
- How can I calculate the SNR of a curve that has impulse noise added?
- How to decrease too many False Positives I get from a KNN classifier for ECG R-peak detection?
- Constant and inconstant values using NI-DAQmx Python API although not issues with NI SignalExpress 2015
- How to get the frequencies and corresponding amplitudes from the FFT of a signal?
- How to get the correct frequency amplitudes in the FFT of a signal
- Using FFT to sum independent random variables
- Decompose time-series signal into different components
- Cross-talk correction in 2D spectrum using Python
- How to remove constant part of a signal in python?
- Analyzing a Power Spectrum of an Audio File for Patterns
- Matlab Real-Time Audio Simulation Speaker Output, Annoying Clicking Issue
- Spectrogram PNG back to WAV Audio
- Is there a way to (automatically) detect if the channels of a stereo video/audio are out of phase and canceling each other?
Related Questions in FFT
- Find Transfer Function from FFT Plot MATLAB
- NumPy's fftn in C# with pythonnet
- Discretized function becomes complex while free propagating a real function when sampled at even number of points using FFT and IFFT in Python
- How to get the frequencies and corresponding amplitudes from the FFT of a signal?
- How to get the correct frequency amplitudes in the FFT of a signal
- Using MATLAB to compute fourier coefficients
- Using FFT to sum independent random variables
- How to determine frequency dependant amplitude with FFT
- Reproducing the phase spectrum while using np.fft.fft2 and cv2.dft. Why are the results not similar?
- Calculate exponential complex sum with fft instead of summation to simulate diffraction?
- Rounding really small/near zero complex values in Python
- How can I apply FFT in the case of vector data?
- Detect the voice of multiple person speaking
- Improving Bandpass Filter for Image Processing in Python
- How to extract dominant frequency from NumPy array?
Related Questions in IFFT
- Do I want to (i)fft by gnuradio-companion?
- Using Periodogram to detect seasonality of time series
- Store the output of the Python matplotlib function of pcolormesh and reconstruct it
- CUFFT wrong result for batch 1D ifft
- How to use Fast Fourier Transform to execute convolution of matrix?
- FFT or IFFT lose data
- Best way in Python to calculate FFT and IFFT with CPU and GPU?
- Not getting 2d-fft invrese of an image from kissfft
- I have the equation in frequency domain; How to go back in time and space domain with IFFT?
- Amplitude and phase spectrum. Shifting the phase leaving amplitude untouched
- Fidelity of sound created from frequency domain data
- How can I recover original complex signal after fft?
- FFT results interpretation
- coding a deconvolution using python
- Changing definition of FFT in Python
Related Questions in DECONVOLUTION
- Convolution & Deconvolution of a vector in R
- How can I estimate molecule positions based on a density map (similar to a minesweeper map)?
- Upsample followed by Conv2d
- Given the radius, how do I unblur an image with gaussian blur?
- Fourier deconvolution doesn't work as expected on python
- On the behavior of deconvolution with scipy and fft with random noise
- How to Zero Pad in Image processing (FFT)
- ArrayFire: Why doesn't convolution followed by deconvolution return the original image (not even close)
- Peak deconvolution knowing the weight function in python
- Fit a sum of n gaussians to xy-data and evaluate the best number of n in R
- how to measure quality of sharpening in images
- Python how to deconvolve two Gaussian distributions
- Proper way to do a 2D deconvolution, assuming no noise (just a convolution has been applied to the input)
- "expected right parenthesis error" using R2OpenBugs
- computing convolution kernel from smoothed and original image
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Deconvolution is an ill-posed tough problem in presence of noise and spatially-variant blurring. I assume you have a non spatially variant problem, as far as you are using FFTs, so you can use restoration module from skimage python package (instead of programming the algorithm at low level with FFTs).
Here you can study a code example with one of the implemented methods in restoration module.
I recommend you to read O'Leary et al. book if you want to learn more. All authors of this book have more advanced books about this great topic.