Image.__mul__#
- Image.__mul__(other) Image[source][source]#
Overloaded
*operator- Returns:
element-wise product of images
- Return type:
Compute the product 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, 4], [ 9, 16]], dtype=uint8) >>> z = 2 * img >>> z.array array([[2, 4], [6, 8]], dtype=uint8)
- ..warning:: Values will be wrapped not clipped to the range of the
pixel datatype.