mindspore.dataset.vision.c_transforms.VerticalFlip

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

Flip the input image vertically.

Raises

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

Supported Platforms:

CPU

Examples

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