mindspore.dataset.vision.Equalize

class mindspore.dataset.vision.Equalize[source]

Apply histogram equalization on input image.

Raises

RuntimeError – If given tensor shape is not <H, W> or <H, W, C>.

Supported Platforms:

CPU

Examples

>>> transforms_list = [vision.Decode(), vision.Equalize()]
>>> image_folder_dataset = image_folder_dataset.map(operations=transforms_list,
...                                                 input_columns=["image"])
execute_py(img)[source]

Execute method.

Parameters

img (PIL Image) – Image to be equalized.

Returns

PIL Image, equalized image.