Function mindspore::dataset::ConvertRgbToGray
Defined in File image_process.h
Function Documentation
-
bool mindspore::dataset::ConvertRgbToGray(const LiteMat &src, LDataType data_type, int w, int h, LiteMat &mat)
Convert RGB image or color image to grayscale 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.