|
SOLUTIONS
|
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
- 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.
- RandomImage gives an image of type
. - RandomImage also supports an ImageSize option.
ExamplesExamplesopen allclose all
Basic Examples (8)Basic Examples (8)
| In[1]:= |
| Out[1]= | ![]() |
Generate a random image with values in the upper quartile:
| In[1]:= |
| Out[1]= | ![]() |
Generate an image of Laplacian noise:
| In[1]:= |
| Out[1]= | ![]() |
A random image where the first two channels are correlated:
| In[1]:= |
| Out[1]= | ![]() |
Generate an RGB image simulating salt-and-pepper noise using a heavy-tail distribution:
| In[1]:= |
| Out[1]= | ![]() |
Generate an image with constant intensity:
| In[1]:= |
| Out[1]= | ![]() |
Create a grayscale 3D random image:
| In[1]:= |
| Out[1]= | ![]() |
| In[1]:= |
| Out[1]= | ![]() |








