RandomImage

RandomImage[max, {width, height}]
gives an image of dimensions with pseudorandom pixel values generated from a uniform distribution in the range 0 to max.

RandomImage[{min, max}, {width, height}]
generates pixel values using a uniform distribution in the range min to max.

RandomImage[dist, {width, height}]
generates pixel values using a symbolic distribution dist.

RandomImage[max, {width, depth, height}]
gives an Image3D object of dimensions .

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples (8)Basic Examples (8)

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]=

Generate an image with constant intensity:

In[1]:=
Click for copyable input
Out[1]=

Create a grayscale 3D random image:

In[1]:=
Click for copyable input
Out[1]=

Create a color 3D image:

In[1]:=
Click for copyable input
Out[1]=
New in 8 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »