mindspore.dataset.vision.HorizontalFlip

class mindspore.dataset.vision.HorizontalFlip[source]

Flip the input image horizontally.

Raises

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

Supported Platforms:

CPU

Examples

>>> transforms_list = [vision.Decode(to_pil=True), vision.HorizontalFlip()]
>>> image_folder_dataset = image_folder_dataset.map(operations=transforms_list,
...                                                 input_columns=["image"])