Questions tagged [resampling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
30
votes
7answers
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 ...
14
votes
5answers
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, ...
14
votes
3answers
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 ...
12
votes
3answers
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 ...
10
votes
1answer
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 ...
9
votes
1answer
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 ...
7
votes
3answers
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 ...
5
votes
1answer
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 ...
5
votes
4answers
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 ...
5
votes
3answers
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 ...
4
votes
2answers
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 ...
4
votes
1answer
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 ...
4
votes
2answers
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. ...
4
votes
1answer
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 ...
4
votes
1answer
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 ...
3
votes
4answers
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 ...
3
votes
2answers
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); ...
3
votes
2answers
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 ...
3
votes
2answers
151 views

Unexpected Result When Using Sinc Interpolation

blue is how I tried to sinc interpolate. why would something like this happen?
3
votes
1answer
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 ...
3
votes
2answers
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 ...
3
votes
1answer
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 ...
3
votes
1answer
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 ...
3
votes
1answer
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, ...
3
votes
1answer
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 ...
3
votes
0answers
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 ...
2
votes
3answers
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 ...
2
votes
3answers
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 ...
2
votes
1answer
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 ...
2
votes
2answers
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 ...
2
votes
1answer
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 ...
2
votes
2answers
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 ...
2
votes
2answers
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 ...
2
votes
1answer
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 ...
2
votes
1answer
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 ...
2
votes
2answers
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 ...
2
votes
2answers
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 ...
2
votes
4answers
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 ...
2
votes
1answer
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 ...
2
votes
2answers
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 ...
2
votes
1answer
433 views

Denoising short, non-uniformly spaced, bandlmited sequences

Consider a bandlimited signal $x(t)$ with bandwidth $BW$. Samples of this signal are observed at non-uniformly spaced sample points in the presence of noise: $y(t_i)=x(t_i) + n_i \qquad i\in\{0,1,\...
2
votes
1answer
226 views

Rate offset and jitter concealment for streaming audio

Given streaming audio samples between two separated devices with separate non-synchronized but almost identical sample rates (say both 44100+-2ppm), what are some methods to best conceal any ...
2
votes
1answer
1k views

How do I convert a filter from Spatial to Fourier domain?

I have a small 2D Gaussian image filter that I am currently applying as a window by convolution. I would like to do this in the Fourier domain as a single multiplication. I would like to convert my ...
2
votes
0answers
64 views

How can I extract the 2 polyphase components of a signal after sampling at the half of sampling rate

Suppose I have a continuous signal $x(t)$, which was sampled using sampling function $s(t)$ whose sampling rate is $T_s$.How can I sample the continuous signal by Ts/2 instead of Ts in order to get ...
2
votes
0answers
78 views

Compensate for residual resampling error with a quadratic phase vs frequency- possible?

With regards to the answer in this post Is it possible to do deconvolution with two data sets that have different sampling rates? I suggest the possibility of compensating for a residual resampling ...
2
votes
0answers
156 views

Signal rescaling

Please help me out with this one. I think I've been given an impossible task. I'm working on a system that transmits an active signal and looks for strong reflections. The transmitter is actually ...
2
votes
0answers
62 views

Is there an exact solution for this re-sampling problem?

I want to know if there is an exact solution for the following problem and how to approach solving it: I have a discrete-time signal where the Nyquist theorem is satisfied: $r_k = \sum_i a_i^{(1)}h^{...
1
vote
3answers
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 ...
1
vote
2answers
82 views

Rectify signal basic question

When rectifying a signal by squaring it, is it necessary to upsample by a factor of 2? Why is this?
1
vote
1answer
243 views

Is it possible to lose half the samples, and yet see the full spectrogram as the original signal?

Consider an speech audio signal sampled at 16,000 samples per second. Plot its spctrogram. If we delete every other sample from input signal, we get y[n] = x[2n] for all n. It seems that if we plot ...