mindspore.dataset.vision.c_transforms.Invert
- class mindspore.dataset.vision.c_transforms.Invert[source]
Apply invert on input image in RGB mode.
Examples
>>> import mindspore.dataset.vision.c_transforms as c_vision >>> >>> transforms_list = [c_vision.Decode(), c_vision.Invert()] >>> data1 = data1.map(operations=transforms_list, input_columns=["image"])