Function mindspore::dataset::ConvertRgbToBgr

Function Documentation

bool mindspore::dataset::ConvertRgbToBgr(const LiteMat &src, const LDataType &data_type, int w, int h, LiteMat &mat)

Convert RGB image or color image to BGR image.

Parameters
  • src[in] Input image data.

  • data_type[in] The type of data_type.

  • w[in] The width of output image.

  • h[in] The height of output image.

  • mat[in] Output image data.