machinevisiontoolbox.Image.sqrt

Image.sqrt()[source]

Square root of image

Returns:

elementwise square root of image

Return type:

Image

Return elementwise square root of pixel values.

Example:

>>> from machinevisiontoolbox import Image
>>> img = Image([[1, 2], [3, 4]])
>>> z = img.sqrt()
>>> z.image
array([[1.   , 1.414],
       [1.732, 2.   ]], dtype=float16)