Creating a 100x100 50% gray image and adding noise to it should get a pretty uniform histogram of the noise that was added.
For example...
Code: Select all
convert -size 100x100 xc:gray50 -evaluate gaussian-noise 0.1 histogram:guassian_noise_0.1.gif
shows a rather nice histogram of the gaussian noise that was generated. That is it follows a very nice an clear bell curve, though it is very narrow to what I need.
Increasing the noise factor and instead of a steadily increasing the value works but only until it reaches a value of 0.125, where it suddenly goes crazy!
Code: Select all
convert -size 100x100 xc:gray50 -evaluate gaussian-noise 0.125 histogram:gaussian_noise_0.125.gif
A valus of 0.124 produces a result similar to the previous example. But as you can see a value of 0.125 suddenly produces a result where most values are being clipped to the range limits (the sides of the above histogram). Almost like the value suddely becomes very very large!
Just to give you something to compare too. This is the histogram of purely random noise, without any clipping.
Code: Select all
convert -size 100x100 xc:gray50 +noise random histogram:random_noise.gif
Something is not right with the handling of the value in -evaluate Gaussian-noise.