ColorNegate

ColorNegate[image]

gives the negative of image, in which all colors have been negated.

ColorNegate[color]

gives the negative of a color.

Details

  • ColorNegate works on 2D as well as 3D binary, grayscale, color, and arbitrary multichannel images.
  • ColorNegate maps every pixel value or color v to 1-ν. For images with defined color spaces, negation happens in the RGBColor space. »
  • ColorNegate returns a color or an image of the same ColorSpace as the input.

Examples

open allclose all

Basic Examples  (3)

Invert a binary image:

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

Negative of a black and white photo:

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

Negative of an RGB color:

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

Scope  (3)

Applications  (1)

Properties & Relations  (4)

Neat Examples  (1)

See Also

ColorConvert  ImageAdjust  ColorSeparate  ImageApply

Tutorials

Introduced in 2008
(7.0)
| Updated in 2014
(10.0)