Function mindspore::dataset::ConvertTo

Function Documentation

bool mindspore::dataset::ConvertTo(const LiteMat &src, LiteMat &dst, double scale = 1.0)

convert the data type, the conversion of currently supports is uint8 to float.

Parameters
  • src[in] Input image data.

  • dst[in] Output image data.

  • scale[in] Scale pixel value(default:1.0).