mindspore.dataset.vision.c_transforms.Invert

class mindspore.dataset.vision.c_transforms.Invert[source]

Apply invert on input image in RGB mode. This operator will reassign every pixel to (255 - pixel).

Examples

>>> transforms_list = [c_vision.Decode(), c_vision.Invert()]
>>> image_folder_dataset = image_folder_dataset.map(operations=transforms_list,
...                                                 input_columns=["image"])