Questions tagged [noise]

Noise is random variation in a signal, for example errors in measurements of the position of a moving object.

Noise is a signal produced by a stochastic process, mostly unwanted random addition to a signal. It is called noise as a generalization of the acoustic noise ("static") heard when listening to a weak radio transmission with significant electrical noise.

In signal processing or computing noise can be considered random unwanted data without meaning; that is, data that is not being used to transmit a signal, but is simply produced as an unwanted by-product of other activities. "Signal-to-noise ratio" (SNR) is sometimes used to refer to the ratio of useful to irrelevant information in an exchange.

Noise is usually uncorrelated and have a specific distribution that describes it (uniform, Gaussian, etc). The color of a noise signal is generally understood to be some broad characteristic of its power spectrum. Different "colors" of noise have significantly different properties. The practice of naming kinds of noise after colors started with "white noise", a signal whose spectrum has equal power within any equal interval of frequencies. That name was given by analogy with "white light", which was assumed to have such a "flat" power spectrum over the visible range. Other color names, like "pink", "red", and "blue" were then given to noise with other spectral profiles; often (but not always) in reference to the color of light with similar spectra. Some of those names have standard definitions in certain disciplines, while others are very informal and poorly defined.

Usage:

The tag can be used for programming related questions to remove/filter noise from a system and other related questions. Please avoid theoretical and physics based noise related questions on stackoverflow, https://physics.stackexchange.com/ is another stackexchange site where you can ask such theoretical and physics based questions.

Read more

  1. https://en.wikipedia.org/wiki/Noise
  2. https://www.thefreedictionary.com/noise
958 questions
228
votes
14 answers

Random / noise functions for GLSL

As the GPU driver vendors don't usually bother to implement noiseX in GLSL, I'm looking for a "graphics randomization swiss army knife" utility function set, preferably optimised to use within GPU shaders. I prefer GLSL, but code any language will…
Kos
  • 70,399
  • 25
  • 169
  • 233
42
votes
2 answers

How to use Kalman filter in Python for location data?

[EDIT] The answer by @Claudio gives me a really good tip on how to filter out outliers. I do want to start using a Kalman filter on my data though. So I changed the example data below so that it has subtle variation noise which are not so extreme…
kramer65
  • 50,427
  • 120
  • 308
  • 488
38
votes
7 answers

mouse position to isometric tile including height

Struggeling translating the position of the mouse to the location of the tiles in my grid. When it's all flat, the math looks like this: this.position.x = Math.floor(((pos.y - 240) / 24) + ((pos.x - 320) / 48)); this.position.y = Math.floor(((pos.y…
Jorg
  • 7,219
  • 3
  • 44
  • 65
37
votes
3 answers

First random number after setSeed in Java always similar

To give some context, I have been writing a basic Perlin noise implementation in Java, and when it came to implementing seeding, I had encountered a bug that I couldn't explain. In order to generate the same random weight vectors each time for the…
Blayzeing
  • 696
  • 4
  • 12
32
votes
5 answers

How can I make a Pink Noise generator?

((Answer selected - see Edit 5 below.)) I need to write a simple pink-noise generator in C#. The problem is, I've never done any audio work before, so I don't know how to interact with the sound card, etc. I do know that I want to stay away from…
Erik Forbes
  • 35,357
  • 27
  • 98
  • 122
32
votes
4 answers

Simulating TV noise

I have googled a bit but was never able to find an answer. What should be my first approach to simulate a video and audio noise from TV on screen? I mean, when my TV antenna is removed but the TV is still on (like they show in Japanese horror movies…
Alexander Kulyakhtin
  • 47,782
  • 38
  • 107
  • 158
29
votes
3 answers

Play simple beep with python without external library

Using only the modules that come with a standard python 2.6 installation, would it be possible to play a simple beeping noise?
a sandwhich
  • 4,352
  • 12
  • 41
  • 62
28
votes
3 answers

Noise Estimation / Noise Measurement in Image

I want to estimate the noise in an image. Let's assume the model of an Image + White Noise. Now I want to estimate the Noise Variance. My method is to calculate the Local Variance (3*3 up to 21*21 Blocks) of the image and then find areas where the…
Royi
  • 4,640
  • 6
  • 46
  • 64
27
votes
3 answers

Defining a white noise process in Python

I need to draw samples from a white noise process in order to implement a particular integral numerically. How do I generate this with Python (i.e., numpy, scipy, etc.)?
abcd
  • 10,215
  • 15
  • 51
  • 85
22
votes
2 answers

Why does simplex noise seem to have *more* artifacts than classic Perlin noise?

I read Stefan Gustavson's excellent paper on simplex noise, in which I was promised that: Simplex noise has no noticeable directional artifacts in contrast with "classic" Perlin noise. I excitedly implemented it to find out that the opposite…
20
votes
1 answer

Fastest Perlin-Like 3D noise algorithm?

It's been well over 20 years since Ken Perlin first invented his noise. Has anybody managed to make a faster kind of 3D noise generator with properties close to Perlin's (procedural, natural-looking grouping, reduced banding, regular feature size,…
Nick Udell
  • 2,420
  • 5
  • 44
  • 83
20
votes
1 answer

Any Simplex Noise Tutorials or Resources?

I want to create a terrain-like 3D noise generator and after doing some research I came to the conclusion that Simplex Noise is by far the best type of noise to do this. I find the name quite misleading though as I have a lot of trouble finding…
Jeroen
  • 15,257
  • 12
  • 59
  • 102
19
votes
2 answers

How can I measure image noise

I've found a few ways of reducing noise from image, but my task is to measure it. So I am interested in algorithm that will give me some number, noise rating. That with that number I will be able to say that one image has less noise than others.
Vitalii Boiarskyi
  • 1,363
  • 2
  • 10
  • 25
19
votes
3 answers

Good way to procedurally generate a "blob" graphic in 2D

I'm looking to create a "blob" in a computationally fast manner. A blob here is defined as a collection of pixels that could be any shape, but all connected. Examples: .ooo.... ..oooo.. ....oo.. .oooooo. ..o..o.. ...ooooooooooooooooooo...…
Nektarios
  • 10,173
  • 8
  • 63
  • 93
18
votes
1 answer

Adding gaussian noise to a dataset of floating points and save it (python)

I'm working on classification problem where i need to add different levels of gaussian noise to my dataset and do classification experiments until my ML algorithms can't classify the dataset. unfortunately i have no idea how to do that. any advise…
sara
  • 311
  • 1
  • 3
  • 7
1
2 3
63 64