# Questions tagged [resampling]

The tag has no usage guidance.

148 questions
Filter by
Sorted by
Tagged with
23k views

### What is an algorithm to re-sample from a variable rate to a fixed rate?

I have a sensor that reports its readings with a time stamp and a value. However, it does not generate readings at a fixed rate. I find the variable rate data difficult to deal with. Most filters ...
14k views

### what is better: up- or downsampling?

I want to compare two signals or curves. Unfortunately they have different sample rates. The first one is sampled at 30 Hz, the second at 2000 Hz. Matlab has the function 'resample' and I thought, ...
14k views

### How to Resample Audio Using FFT or DFT

I'm down sampling voice audio by first performing an FFT, then only taking the parts of the result that I need, and then performing an inverse FFT. However, it's only working properly when I'm using ...
11k views

### What are the relative merits of various upsampling schemes?

I recently encountered a DSP system which did some internal upsampling via zero padding. Expecting zero-order-hold, I was surprised to find that a DC signal did not produce a DC output; many ...
6k views

### Python's $\tt resample$ vs $\tt resample\_poly$ vs $\tt decimate$

I have multiple signals each measured with a sampling rate 300Hz. They are mostly periodic, although there are some parts of some of the signals, that seem to be random and do not follow the rest of ...
253 views

### Rotating a 3D image

I've got a 3D image of non-isotropic voxels, to which I'm applying a general rotation. How could I go about determining an appropriate voxel size for the rotated image? I need to minimize loss of ...
4k views

### Why Is Bi Quadratic Interpolation for Image Resampling / Interpolation Rarely Done?

Related question: What are the practically relevant differences between various image resampling methods? Bilinear and bicubic interpolation for image resampling seem to be fairly common, but ...
275 views

### Detecting the original bandwidth of upsampled recordings

I have a set of recordings sampled at 16khz, but some of them are upsampled from 11khz and some from 8khz. Quite some of the recordings are noisy. What is the best way to classify the recordings ...
8k views

### How Can I Resample a Signal with an Arbitrary Factor (For Example - 128000Hz to 16000.1Hz) in MATLAB?

I need to simulate the sampling of a continuous (fsCtu = 128000Hz), acoustic signal with two microphones that have a slight offset in sampling rate (fsMic1 = 16000, fsMic2 = 16000.1) in Matlab. What ...
586 views

### Absolute convergence of periodic sinc interpolation

An $N$-periodic complex discrete-time sequence $[x_0, \dots, x_{N-1}]$ can be resampled to an $M$-periodic sequence $[y_0, \dots, y_{M-1}]$ with $M>N$, using sinc interpolation: \begin{align}y_m ...
17k views

### What is the difference between cubic interpolation and cubic “Spline” interpolation?. How to use it for upsampling purpose?

After considering a couple of advices and suggestions for upsampling techniques here, I finally converged to use the cubic interpolation technique to estimate the voltage values corresponding to ...
4k views

### Upsample data using FFTs. How is this exactly done?

I am basing my question on this post here, because I would like additional details on it, as I have not had any success in re-creating it. I would like to simply learn, in no uncertain terms, how to ...
4k views

### OFDM transmitter bandwidth

Theory Suppose an OFDM transmitter with four subcarriers is implemented using the structure shown below. If the serial data input rate is 40 bps, each parallel stream will run at 10 bps. ...
288 views

### Explanation of LidarBoost Algorithm?

I am trying to understand the LidarBoost algorithm as explained in this paper (PDF warning). I don't understand how they take the original depth-images $Y_k$ and transform them into the up-sampled ...
514 views

### Downsampling oversampled image (smallest size which retains image 'detail' within acceptable limits)

I have a large collection of oversampled images (family photos of varying 'sharpness' scanned at a uniformly high dpi) and would like to downsample them to optimise storage space whilst retaining ...
2k views

### Basic method for 2x oversampling?

I would like to know if the following method of 2x oversampling is correct: Interpolate: Take an original signal sampled at 44100Hz as input Upsample by adding a zero after each original sample to ...
1k views

### Sinc Interpolation Using DFT (FFT)

Lets say I want to double the number of points in an array f. I had the idea to do this: F=fft(f);N=length(f); FF=[F(1:N/2) zeros(1,N) F(N/2+1:N)]; f=ifft(FF); ...
4k views

### Is interpolation (interp1) better than FIR filtering when rational integers are close to 1?

Question I've been attempting to resample a GPS signal in MATLAB. I've built a few FIR filters using fvatool and from handmade transfer functions (punched out with ...
151 views

### Unexpected Result When Using Sinc Interpolation

blue is how I tried to sinc interpolate. why would something like this happen?
619 views

### Frequency Representation of Downsampled Signal

I'm trying to follow the steps from Oppenheim for the derivation of the frequency representation of a signal which is to be down sampled by a factor of M. It makes sense to me that: But then the ...
572 views

### Ripple in time-domain using lanczos resampling

I'm seeing ripple in the time domain when resampling a "unity signal", that is, all ones, with lanczos filters. The ripple/error exactly resembles a cosine with a period of the sampling rate - ie. the ...
124 views

### How to Increase the Resolution of a Video from a Sequence of Photos?

I have a video filmed in a relatively low quality and resolution and a sequence of photos of higher quality taken of the same scene at the rate of about one image every two seconds or so. Could those ...
2k views

### pitch vs playback rate

Let's say I have an audio sample, whose pitch is known to be C4 (don't wanna go in detail here, let's say I just sampled a tuned piano playing the C4 key). The rules of the game are: I can only ...
298 views

### Optimal trade-off between oversampling and filter length

For some sampling-frequency-preserving operations on Nyquist–Shannon sampled signals, such as: a shift a.k.a. translation, and differentiation by applying a derivative filter a.k.a. gradient filter, ...
305 views

### Fractional Delay Filters and Cutoff Frequences

I am trying to implement an interpolator for arbitrary sampling rate conversion of a one-dimensional signal (a fractional delay filter). I am aware of the fact that interpolation is in general a ...
9k views

### Downsampling and upsampling of a signal in Python

If I want to downsample a signal in Python, is it better to use method resample from SciPy Signal Processing module or method decimate from the same module? What is the difference between these two ...
803 views

### Splitting the Unit Delay

Please refer to the paper Splitting the Unit Delay - Tools for fractional delay filter design by Laakso, Valimaki et.al. I am not able to visualize how the fractional delay is obtained by resampling ...
1k views

### Resampling and removing high frequency noise?

I am currently working on a simple sampler that will allow me to load in a wav file and use my MIDI keyboard to play the loaded wav sample at the frequency according to the note played. Now I need ...
1k views

### Unexpected results for fourier resampling (Python 3)

I am trying to resample a signal using the fourier method in python using np.fft.rfft() and np.fft.irfft(). (I'm not using ...
130 views

### Resampling necessary?

I have a file that is composed of n data records with a sample rate s. Each of these records has a duration d. Now due to postprocessing I have to change the duration to d=d/3, thus afterwards I'll ...
267 views

### How to implement sinc interpolation

I'm trying to write my own high quality audio sample rate converter. I barely know anything about signal processing though so I need help. From what I understand I need to sum together normalized sinc ...
238 views

### Does resampling cause phase shifts?

I have a signal sampled at 40MHz, I would like to resample it to 37MHz. The signal is not periodic, I did resampling with Matalb resample function and it doesn't cause phase shift (as far as I ...
3k views

### Resampling of signal with non uniform sampling frequency

I have a non uniform sampling frequency signal and I have to convert it in a constant sampling frequency. I tried to interpolate it with an Hermite spline interpolation but it make a lot of wrong ...
3k views

### Does audio upsampling create noise/artifacts or degrade the signal?

I've read that upsampling performed in digital music playback can color the sound, produce artifacts, etc. For example, an audio file ripped from a CD might be 44.1Khz/16-bit, and then upconverted to ...
1k views

### How do I resample an audio signal without altering its pitch?

I'm working on concatenating videos again, this time with different playback speeds. The video stream part is easy enough, but the audio part is what's stumping me at the moment. Currently, I've ...
588 views

### Recovering a signal that was upsampled by non-integer factor

I have a data sequence $G[n]$ that is upsampled at the transmitter of a communication system by a non-integer factor ($1.5$ to be precise). At the receiver, I am supposed to downsample the data and ...
1k views

### Resampling a digital sound signal

As a non maths-pro, I'm looking for some pointers. I am rewriting the audio core in my emulator to improve accuracy, and am getting a bit stuck on the specifics of the technique. I am trying to ...
770 views

### How to compare the qualities of two interpolation (image resizing) algorithms?

I am implementing image resizing algorithms (Bilinear, Bicubic, Lanczos and a few others). How do I quantitatively compare them? I am thinking of considering a large sample of images and running ...
355 views

### Resampling: how many samples to zero-stuff or down sample?

I am a little confused about how resampling works with one filter. I get why you choose the lower nyquist cutoff when you combine both interpolation and decimation for resampling by a rational ...
579 views

### How can I synchronize signal from an LED and TTL pulses better?

I would like to synchronize my video and voltage data using Python. (I obtain these data using Bonsai and Open Ephys for an open field exploration experiment.) I sent $150\text{ ms}$ long TTL pulses ...
433 views

4k views

### Upsampling - What purpose does the interpolation filter have?

I want to apply some nonlinear processing to a signal, namely: I want to implement a tube emulation which adds warmth/harmonic distortion to a digital audio signal. I am worried about aliasing, so I ...