mindspore.dataset.vision.c_transforms.Invert

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

Apply invert on input image in RGB mode.

Examples

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