Questions tagged [downsampling]

231 questions
5
votes
2 answers

Which pcl filter to use to downsample a point cloud

I am getting a point cloud from a lidar on an autonomous driving robot, but it's too much data to process. I already implemented a passthrough filter. I did get a very good result and I was asking myself if there were others filters or methods I…
tony497
  • 360
  • 1
  • 3
  • 15
5
votes
0 answers

Need example to downsample plots with Bokeh

I'm relatively new on Python and Bokeh technology. My goal is actually to be able to display line charts containing millions of points (like around 5 millions) in a browser. I'm conscient that actual browsers can't handle such an amount of data.…
Alexandre D.
  • 711
  • 1
  • 9
  • 28
5
votes
1 answer

Downsampling data in Matlab by averaging

I have 2 data sets in Matlab that I need to plot against one another - one on the xaxis and one on the yaxis. The data for each set was collected using a different method so the sampling rate is significantly different and until I don't the same…
5
votes
2 answers

Reducing moire when downsampling halftone comic images

How can I reduce moire effects when downsampling halftone comic book images during live zoom on an iPhone or iPad? I am writing a comic book viewer. It would be nice to provide higher resolution images and allow the user to zoom in while reading…
drawnonward
  • 53,459
  • 16
  • 107
  • 112
5
votes
6 answers

Perceptual Image Downsampling

So here is my problem: I have an image, that image is large (high resolution) and it needs to be small (much lower resolution). So I do the naive thing (kill every other pixel) and the result looks poor. So I try to do something more intelligent…
tzenes
  • 1,699
  • 2
  • 15
  • 31
4
votes
2 answers

Python Image Library: clean Downsampling

I've been having trouble trying to get PIL to nicely downsample images. The goal, in this case, is for my website to automagically downsample->cache the original image file whenever a different size is required, thus removing the pain of maintaining…
Li Haoyi
  • 15,330
  • 17
  • 80
  • 137
4
votes
2 answers

Lanczos Interpolation in Python with 2D images

I try to rescale 2D images (greyscale). The image size is 256x256 and the desired output is 224x224. The pixel values range from 0 to 1300. I tried 2 approaches to rescale them with Lanczos Interpolation: First using PIL Image: import numpy as…
4
votes
4 answers

How to downsample a signal preserving spikes?

I'm analyzing a signal sampled at 200Hz for 6-8 seconds, and the important part are the spikes, that lasts 1 second at max. Think for example to an earthquake... I have to downsample the signal by a factor 2. I tried: from scipy import…
Marco Sulla
  • 15,299
  • 14
  • 65
  • 100
4
votes
0 answers

Downsampling signal from 100.21 Hz to 8 Hz (non-integer decimation factor)

I have found the following method to downsample a signal in python. I would like to use this method with a sample_rate of 100.21 but I think currently it only works for integer powers of two. Is there a possibility to downsample my signal with…
machinery
  • 5,972
  • 12
  • 67
  • 118
4
votes
1 answer

Sample to Create Uniform Distribution from Non-Uniform Data

Given a dataset with a non-uniform distribution (highly peaked) I want to resample to create a new dataset with an approximately uniform distribution. My approach: Divide the data into bins. Target bin level = Smallest number of samples per bin,…
Ron Cohen
  • 2,815
  • 5
  • 30
  • 45
4
votes
0 answers

Is it possible to render to texture's mipmap level 1 while sampling from level 0? (opengl, texture 2d)

Is it possible to render to one of RenderTexture's mipmap level while sampling from other levels? The situation is i want to downscale a texture 4 times using shader, i could put all these intermediate results together on a big texture (at level 0,…
21k
  • 391
  • 5
  • 16
4
votes
1 answer

Optimizing the code for downsampling

I have a table like this, which is flyTracesFiltered. Time Right Left 1 0.000000000 18.21980 30.98789 2 0.009222031 22.15157 37.18590 3 0.022511959 25.63218 42.49231 4 0.029854059 28.43851 46.57811 5 0.039320946 30.43885 49.29414 6…
chiser
  • 161
  • 1
  • 1
  • 8
4
votes
1 answer

Web audio API downsample 44.1 khz in Javascript

I'm using RecorderJS to record a microphone stream from the user. The default export is a WAV file at 44.1 kHz, 16bit. Is there anyway I can downsample this to 11kHz or 16kHz without it sounding weird? Is there anyway I can get a 16bit 16khz WAV…
tehmaestro
  • 1,010
  • 2
  • 11
  • 21
4
votes
2 answers

How to downsample values in array?

I have an array of length 4096 It contains the results of the calculated FFT. Results should be displayed on a window length of 1024 How to reduce the value from 4096 to 1024 and that the results remain correct. Is this a good way? int index =…
Avokado
  • 59
  • 1
  • 9
3
votes
2 answers

Misconceptions about the Shannon-Nyquist theorem

I am a student working with time-series data which we feed into a neural network for classification (my task is to build and train this NN). We're told to use a band-pass filter of 10 Hz to 150 Hz since anything outside that is not…
AnneH
  • 31
  • 1
1
2
3
15 16