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:
File "/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/site-packages/machinevisiontoolbox/ImageCore.py", line 408, in colororder raise ValueError("colororder length does not match number of planes") ValueError: colororder length does not match number of planes Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/code.py", line 90, in runcode exec(code, self.locals) File "<input>", line 1, in <module> NameError: name 'img' is not defined Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/code.py", line 90, in runcode exec(code, self.locals) File "<input>", line 1, in <module> NameError: name 'z' is not defined