Image.__pow__#

Image.__pow__(other) Image[source][source]#

Overloaded ** operator

Returns:

element-wise exponent of image

Return type:

Image

Compute the element-wise power of an Image.

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image([[1, 2], [3, 4]])
>>> z = img**3
>>> z.array
array([[ 1,  8],
       [27, 64]], dtype=uint8)
..warning:: Values will be wrapped not clipped to the range of the

pixel datatype.