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.
Details and Options

- Colorize generates a pseudocolor image from a 2D or 3D array of integer values and arbitrary images, showing 0s and negative values in black.
- Colorize generates an 8-bit RGB image.
- Colorize takes the following options:
-
ColorFunction Automatic how each pixel should be colored ColorFunctionScaling True whether to scale the argument to ColorFunction ColorRules Automatic rules for determining colors from matrix and pixel values ImageSize Automatic the default displayed size of the image
Examples
open allclose allBasic Examples (3)
Options (7)
ColorFunction (3)
Apply a color scheme to a map:
Keep the background black using ColorRules:
ColorRules (3)
Applications (3)
Possible Issues (1)
Text
Wolfram Research (2010), Colorize, Wolfram Language function, https://reference.wolfram.com/language/ref/Colorize.html (updated 2012).
CMS
Wolfram Language. 2010. "Colorize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/Colorize.html.
APA
Wolfram Language. (2010). Colorize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Colorize.html