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

Colorize

Colorize[m]
generates an image from an integer matrix m, using colors for positive integers and black for non-positive integers.
Colorize[image]
replaces intensity values in image with pseudocolor values.
  • Colorize generates a pseudocolor image from a full array of integer values and arbitrary images, showing 0s and negative values in black.
ColorFunctionAutomatichow each pixel should be colored
ColorFunctionScalingTruewhether to scale the argument to ColorFunction
ImageSizeAutomaticthe default displayed size of the image
Random coloring of a map:
Random coloring of a map:
In[1]:=
Click for copyable input
Out[1]=
Colorize a grayscale image:
Apply a color scheme to a map:
Colorize a grayscale image:
Use a pure function as the color function:
Specify the image size:
All foreground pixels are colored the same in a binary image:
To highlight component using different colors, compute the connected components first:
Random colors applied to a cellular automaton:
Running more steps of the cellular automaton:
Colorize segmented countries based on their area:
New in 8