|
|
|
|
Re: How to create white noise in IDL? [message #93058 is a reply to message #93053] |
Sat, 16 April 2016 15:21  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On Saturday, April 16, 2016 at 5:51:32 AM UTC-4, Meegle_Jade wrote:
> How to create white noise image in IDL? I have heard about RANDOMN and RANDOMU but do they create white noise?
Typically, white noise is the same as Gaussian deviate noise (RANDOMN). The "whiteness" refers to the power spectrum of the data.
RANDOMU provides uniform deviates. While this *also* will produce noise with a white spectrum, it is not typical. And RANDOMU deviates have a DC bias. The deviates are between 0 and 1 which means the average is 0.5, and this will show up as a non-white DC frequency component.
So for a 100x200 image use RANDOMN(SEED,100,200).
Craig
|
|
|