machinevisiontoolbox.Image.__minus__

Image.__minus__()[source]

Overloaded unary - operator

Returns:

elementwise negation of image

Return type:

Image

Compute the elementwise negation of an Image.

Example:

ValueError: colororder length does not match number of planes
Traceback (most recent call last):
  File "<input>", line 1, in <module>
NameError: name 'img' is not defined
Traceback (most recent call last):
  File "<input>", line 1, in <module>
NameError: name 'z' is not defined