78 questions
1
vote
0
answers
76
views
Perlin noise function not working as intended
I have a simple perlin noise function that has the parameters x, y, z, and seed. When I draw the perlin noise to the canvas using the function, the pattern which the perlin noise generates repeats ...
1
vote
1
answer
222
views
MATLAB SNR QUESTION: need help using awgn() function to make noisy signal and then assessing that signal SNR with custom code
I am using awgn() to make a signal 'x' with a given amount of SNR, in this case 10 [line 19].
I am trying to accurately assess the SNR of the signal it creates with my own code, but I am calculating ...
1
vote
1
answer
109
views
Why is no data getting written to image?
I'm trying to create procedural textures, and for that, I'm generating noise, and then writing that data to an image file, to be displayed. So far I generated the noise, and now I'm trying to write ...
1
vote
1
answer
330
views
Why does my Fractal Noise have lines outlining a grid
I will give some context to the function that I wrote:
getFractalPointHeight() is a function that is supposed to return the height of the fractal noise based on the coordinates of a Perlin noise image ...
1
vote
1
answer
1k
views
Add Gaussian noise to a binary image knowing noise variance or SNR in python
I am using python open cv for image restoration and in the first step, I have to add gaussian noise to my "binary" image. My image pixel values are integers that can take values 0 or 1. How ...
4
votes
1
answer
720
views
What is the range of improved Perlin noise?
I'm trying to find the theoretical output range of improved Perlin noise for 1, 2 and 3 dimensions. I'm aware of existing answers to this question, but they don't seem to accord with my practical ...
2
votes
1
answer
2k
views
Mix second audio clip at specific SNR to original audio file in Python
I have two audio files that I would like to mix in Python.
I'll refer to the original audio as "Audio A" and the audio to mix is "Audio B". I am able to add white noise at a ...
2
votes
1
answer
1k
views
Random distribution of points based on Perlin Noise?
Is there a good way to generate a random point in a 2D plane where the probability of choosing any specific location is based on Perlin Noise?
Essentially, when I generate a lot of points using such a ...
1
vote
1
answer
118
views
How to increase noise at one particular area of data?
I have a dataframe that is a sine wave with slight noise, and I want to increase the noisiness at only one particular place of the plot. The noise should increase at a certain point before reducing ...
0
votes
0
answers
197
views
Perlin noise generator isn't working, doesn't look smooth
I watched some tutorials and tried to create a Perlin noise generator in python.
It takes in a tuple for the number of vectors in the x and y directions and a scale for the distance in pixels between ...
2
votes
0
answers
611
views
Which value should I choose as standard deviation for Gaussian Noise in my data?
I am adding Gaussian Noise using the Keras GaussianNoise layer to my data to corrupt it to prevent overfitting. I have analysed my data and the mean of all values is 7624 and the standard deviation is ...
3
votes
3
answers
3k
views
How to generate 2D colored noise
I'm unsuccessfully trying to generate a 2D array of pink noise. Can anyone explain me how to do this? Otherwise, is there a python library that allows to generate 2D (or higher dimensionality) colored ...
1
vote
0
answers
570
views
How can I generate a pink noise image with the same frequency distribution as another image in python?
I'm following this post to generate pink noise with a certain frequency distribution using fourier transforms. I need to be able to give it an image to match the frequencies, and dimensions for the ...
1
vote
3
answers
594
views
How to make a high ISO effect in a dark room?
When we use mobile or semiprofessional cameras in the room with bad light they increase ISO as a rule, the result is shown below:
This is a frame from video, as you can see there is a lot of noise. ...
-2
votes
1
answer
811
views
is there any uniform smooth random function?
what i want is an uniform and smooth random function, that is bounded beetwen two values
the first candidate for smooth random function would be perlin noise, but its distribution is not uniform, as ...
1
vote
0
answers
61
views
Finding the derivative of two blended noise values
In an effort to improve my procedural map generation I've been learning more about how generating noise actually works.
With that in mind I've been doing a Python adaptation of this tutorial series ...
2
votes
1
answer
3k
views
How to generate a pink noise image?
I am trying to replicate "Frequency Synthesis of Landscapes" by P. Bourke in Python. I thought it would be a simple
import numpy as np
from scipy.fft import fft2, ifft2
whitenoise = np....
0
votes
1
answer
632
views
How to add x % noise in a signal in MATLAB?
I am trying to add 5 % noise to a measured signal as follows (in MATLAB), but when I calculate percent of noise after addition, it is beyond +/- 5 % . Can you please tell me why this is the case ? ...
1
vote
1
answer
1k
views
How to change noise color in an image?
I am trying to generate a noisy image as follows:
I have figured out how to generate the images with the random noise but can't figure out how to change the noises color.
import numpy as np
import ...
0
votes
2
answers
3k
views
Simple 2D Perlin Noise in Python
There is lots of different implementations of 2D perlin noise in Python.
My question is there a simple implementation of perlin noise in Python that fits in 1 function or 1 class? Or maybe there is ...
7
votes
1
answer
3k
views
Faster method for creating spatially correlated noise?
In my current project, I am interested in calculating spatially correlated noise for a large model grid. The noise should be strongly correlated over short distances, and uncorrelated over large ...
0
votes
1
answer
2k
views
Adding noise to image based on pixel value
I would like to add gaussian noise to images in greyscale based on percentages
I'd like to add 5% of any pixel intensity value in the eye area as noise to the whole image, so what i want to do is ...
2
votes
3
answers
966
views
How can generate impulse as outliers on periodic or sequenced-based data for doing experiments via outliers detection methods?
I want to carry out some experiments on some time-series data with the KM approach has been suggested in this paper. The problem is I don't access the data in the paper but I have similar type data ...
0
votes
1
answer
338
views
Flitered noise signal fft
I wanted to create two random noise signals sampled 2.5G sa/s in frequency range 200kHz - 20Mhz, time of signal 5us and calculate fft of it but I have a problem with fft. Thank you for help, the code ...
-1
votes
1
answer
697
views
Using 1D Perlin Noise to Generate 2D Terrain
Alright, so I'm working with Swift, and I have GameKit's GKNoise class which allows me to get a noise value given an input. If you graph it you get that standard perlin noise mountain. What I need to ...
-1
votes
2
answers
94
views
Why doesn't my gradient noise generator work?
I tried to make a program that generates gradient noise for terrain generation. It's supposed to print array of numbers between 40 and 99 but it stops on this part:
for(int k=16; k>1; k/=2)
...
1
vote
0
answers
2k
views
How do I add Poisson noise to a greyscale image in Python using numpy?
I'm trying to implement adding Poisson noise to a greyscale image using numpy as a Pytorch transformer but so far my results have been very disappointing. Here are my various implementations with ...
0
votes
1
answer
338
views
How to make noise generation for images faster?
I'm making an image iterator for my deep learning project. On this project, i need to apply noise generation(for reducing overfitting).
I tried the code below, but it takes 0.005 seconds for one ...
-1
votes
1
answer
540
views
How to generate multiple 3D Coordinates with noise [closed]
I am currently trying to generate a 3D planetary map like No Man's Sky does using the simplex noise plugin in unreal engine blueprints. How can i generate coordinates for the individual planets?
I ...
1
vote
1
answer
232
views
Procedurally generating areas with distinctly higher elevations with Perlin Noise
I am trying to learn about Perlin Noise and procedural generation. I am reading through an online tutorial about generating landscapes with noise, but I don't understand part of the author's ...
2
votes
2
answers
2k
views
How to randomize the seed of the "noise" library
I want to create a 2D list of floats with Perlin Noise. I would like the values generated to be different every time I run the program. However, I'm not sure how to provide randomized seeds for the ...
0
votes
2
answers
896
views
Add pixel wise independent noise to image
My question is simple: I have an image and I want to add pixel wise independent noise to the image. The noise can be derived from from any distribution such as Gaussian. What are the available modules ...
0
votes
1
answer
367
views
Processing noise implementation has strictly positive range
At this page, and in the docs for p5.js, Perlin noise is described as having an output range of [0,1], but all other implementations I've found have a small range symmetric about 0, and it seems that ...
0
votes
1
answer
180
views
Smoothing random noises with different amplitudes
I have a function that returns a bounded noise. For example, let's imagine that out input range is [-1, 1]. With my method I can return a bounded/in range noise (depending on the biome we are ...
0
votes
1
answer
587
views
I want to apply noise to a volume that is depicted by a 3D numpy array
I have a greyscale volume that contains an object of interest. I can import it into python as a three dimensional numpy array with floats between -1 and 1.
My issues are twofold:
the negative floats ...
0
votes
1
answer
1k
views
What is wrong with my perlin noise function?
So I am currently working on a perlin noise generator, for some reason I'm getting incorrect output:
The perlin noise is in a "grid" and does not resemble traditional perlin noise.
Here is my code:
...
1
vote
0
answers
85
views
Plot PLC Background Noise
I am a total newbie in signal processing.
I have been trying to plot on simulink a time/frequency domain noise in PLC (Powerline Communication) modem that matches a real-world research, however, I ...
1
vote
1
answer
528
views
Making grey audio noise using matlab / octave
I can create pink,brown,blue audio noise with the following snippet code by selecting a different invfnorm variable to use below, but how can I create grey noise?
%https://en.wikipedia.org/wiki/...
3
votes
1
answer
4k
views
c# faster way of setting pixel colours
I've picked up a project that creates a noise map using setPixel(). The majority of the runtime of this application is spent within the setPixel() function so I was looking to increase the speed at ...
7
votes
2
answers
336
views
Noise generation: 'Room Noise'
Last weeks I was developing a world generator (for a Minecraft mod). However, I wasn't looking for just Perlin noise, but rather something based on cell noise. I want to generate a sort of underground ...
2
votes
1
answer
1k
views
Amplitude modulation of a brown noise generated with acoustics package in python
I am totally new to python, so I tried to read and learn what I could but I cannot seem to do what I want, and I haven't found a solution on Stack Overflow or other sources. My aim is to create a wave ...
0
votes
1
answer
743
views
laplace noise distribution in JavaScript
I want to create a web-based demonstration of differential privacy. To do this, I need a JavaScript implementation of the Laplace noise distribution.
I've been unable to find basic noise ...
2
votes
0
answers
1k
views
Create a signal with noise with a specific SNR using Python Numpy
I need to create a signal (a multidimensional array) and add some "additive Laplace noise" to it. Then, I want to be able to measure the SNR level of the resulting signal (in dB units).
If there is ...
0
votes
1
answer
527
views
How does this 2d noise generation function work? Does it have a name?
I came across this 2D noise function in the Book of Shaders
float noise(vec2 st) {
vec2 integerPart = floor(st);
vec2 fractionalPart = fract(st);
float s00 = random(integerPart);
float s01 = ...
3
votes
0
answers
461
views
Why does my Perlin Noise Generator make this squiggly pattern?
I've started learning about perlin noise generation, and I wanted to try to make my own generator in JavaScript. To get me started, I've been following along with this youtube tutorial. to try and ...
1
vote
1
answer
910
views
How to generate image noise frequency?
I read the very interesting and informative article on image noise located here:
http://www.cambridgeincolour.com/tutorials/image-noise-2.htm
One of the key points is noise frequency which can be ...
0
votes
0
answers
426
views
Manually creating poisson / shot noise
I am trying to understand and create my own poisson noise generator. I am following the code example seen here: https://imagej.nih.gov/ij/plugins/download/Poisson_Noise.java
It produces poisson noise ...
0
votes
1
answer
1k
views
How do the permutation and gradient tables of Perlin and Simplex Noise work in practice?
So I have been doing a bit of research into how Perlin and Simplex noise work and, while I get the core principles of regular Perlin noise I'm a little bit confused about how the permutation and ...
0
votes
0
answers
2k
views
Definition on white noise and C++
i want to create white noise random numbers. I thought that white noise is gaussian distribution and i used the following code for number generation:
normal_distribution distribution
where mu is ...
1
vote
1
answer
2k
views
"unresolved external symbol" error in Visual Studio 2013
I am trying to use the libnoise library, which is a c++ library for perlin noise generation, in Visual Studio 2013. Tutorial 3 links to an addon utility called noiseutils, which consists of a .cpp and ...