Image.__truediv__#
- Image.__truediv__(other) Image[source][source]#
Overloaded
/operator- Returns:
element-wise division of images
- Return type:
Compute the quotient of an Image with another image or a scalar. Supports:
image
/image, element-wisescalar
/imageimage
/scalar
Example:
>>> from machinevisiontoolbox import Image >>> img = Image([[1, 2], [3, 4]]) >>> z = img / img >>> z.array array([[1., 1.], [1., 1.]], dtype=float32) >>> z = img / 2 >>> z.array array([[0.5, 1. ], [1.5, 2. ]], dtype=float32)
Note
The resulting values are floating point.