machinevisiontoolbox.Image.__pow__

Image.__pow__(other)[source]

Overloaded ** operator

Returns:

elementwise exponent of image

Return type:

Image

Compute the elementwise power of an Image.

Example:

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

pixel datatype.