This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

RandomImage

RandomImage
gives an image of dimensions with pseudorandom pixel values generated from a uniform distribution in the range 0 to max.
RandomImage
generates pixel values using a uniform distribution in the range min to max.
RandomImage
generates pixel values using a symbolic distribution dist.
  • RandomImage by default does not assign a specific color space to the image. The color space of the resulting image can be specified using the ColorSpace option.
Generate a random image:
Generate a random image with values in the upper quartile:
Generate an image of Laplacian noise:
A random image where the first two channels are correlated:
Generate an RGB image simulating salt-and-pepper noise using a heavy-tail distribution:
Generate a random image:
In[1]:=
Click for copyable input
Out[1]=
 
Generate a random image with values in the upper quartile:
In[1]:=
Click for copyable input
Out[1]=
 
Generate an image of Laplacian noise:
In[1]:=
Click for copyable input
Out[1]=
 
A random image where the first two channels are correlated:
In[1]:=
Click for copyable input
Out[1]=
 
Generate an RGB image simulating salt-and-pepper noise using a heavy-tail distribution:
In[1]:=
Click for copyable input
Out[1]=
Additive noise:
Multiplicative noise:
Show the effect of various types of noise: original image, Poisson noise, uniform noise, Gaussian noise, Laplacian noise, salt-and-pepper noise:
New in 8