mindspore.dataset.vision.ImageReadMode

class mindspore.dataset.vision.ImageReadMode[source]

The read mode used for the image file.

Possible enumeration values are: ImageReadMode.UNCHANGED, ImageReadMode.GRAYSCALE, ImageReadMode.COLOR.

  • ImageReadMode.UNCHANGED: remain the output in the original format.

  • ImageReadMode.GRAYSCALE: convert the output into one channel grayscale data.

  • ImageReadMode.COLOR: convert the output into three channels RGB color data.

static to_c_type(image_read_mode)[source]

Function to return C type for ImageReadMode.