Image.__neg__#
- Image.__neg__() Image[source][source]#
Overloaded unary
-operator- Returns:
element-wise negation of image
- Return type:
Compute the element-wise negation of an Image.
Example:
>>> from machinevisiontoolbox import Image >>> img = Image([[1, -2], [-3, 4]], dtype='int8') >>> img.print() 1 -2 -3 4 >>> neg_img = -img >>> neg_img.print() -1 2 3 -4