gives the negative of image, in which all colors have been negated.
gives the negative of a color.
gives a list of negative images or colors.
- ColorNegate, also known as color inversion, replaces every pixel in the image with the negative of that pixel.
- 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.
- ColorNegate works with colors as well as arbitrary 2D and 3D images.
Examplesopen allclose all
Negative of the color Yellow:
DeleteSmallComponents deletes small white components:
Properties & Relations (6)
Color negation happens in the RGBColor space:
ColorNegate of an RGB image is equivalent to mapping every pixel v to 1-v:
Wolfram Research (2008), ColorNegate, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorNegate.html (updated 2014).
Wolfram Language. 2008. "ColorNegate." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ColorNegate.html.
Wolfram Language. (2008). ColorNegate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorNegate.html