mindspore.dataset.vision.ConvertMode

class mindspore.dataset.vision.ConvertMode[source]

The color conversion mode.

Possible enumeration values are as follows:

  • ConvertMode.COLOR_BGR2BGRA: convert BGR format images to BGRA format images.

  • ConvertMode.COLOR_RGB2RGBA: convert RGB format images to RGBA format images.

  • ConvertMode.COLOR_BGRA2BGR: convert BGRA format images to BGR format images.

  • ConvertMode.COLOR_RGBA2RGB: convert RGBA format images to RGB format images.

  • ConvertMode.COLOR_BGR2RGBA: convert BGR format images to RGBA format images.

  • ConvertMode.COLOR_RGB2BGRA: convert RGB format images to BGRA format images.

  • ConvertMode.COLOR_RGBA2BGR: convert RGBA format images to BGR format images.

  • ConvertMode.COLOR_BGRA2RGB: convert BGRA format images to RGB format images.

  • ConvertMode.COLOR_BGR2RGB: convert BGR format images to RGB format images.

  • ConvertMode.COLOR_RGB2BGR: convert RGB format images to BGR format images.

  • ConvertMode.COLOR_BGRA2RGBA: convert BGRA format images to RGBA format images.

  • ConvertMode.COLOR_RGBA2BGRA: convert RGBA format images to BGRA format images.

  • ConvertMode.COLOR_BGR2GRAY: convert BGR format images to GRAY format images.

  • ConvertMode.COLOR_RGB2GRAY: convert RGB format images to GRAY format images.

  • ConvertMode.COLOR_GRAY2BGR: convert GRAY format images to BGR format images.

  • ConvertMode.COLOR_GRAY2RGB: convert GRAY format images to RGB format images.

  • ConvertMode.COLOR_GRAY2BGRA: convert GRAY format images to BGRA format images.

  • ConvertMode.COLOR_GRAY2RGBA: convert GRAY format images to RGBA format images.

  • ConvertMode.COLOR_BGRA2GRAY: convert BGRA format images to GRAY format images.

  • ConvertMode.COLOR_RGBA2GRAY: convert RGBA format images to GRAY format images.

static to_c_type(mode)[source]

Function to return C type for color mode.