Function mindspore::dataset::vision::ReadImage
- Defined in File vision.h 
Function Documentation
- 
Status mindspore::dataset::vision::ReadImage(const std::string &filename, mindspore::MSTensor *output, ImageReadMode mode = ImageReadMode::kUNCHANGED)
- Read a image file and decode it into one or three channels data. - 参数
- filename – [in] The path to the file to be read. 
- output – [out] The Tensor data. 
- mode – [in] The read mode used for optionally converting the image, can be one of [ImageReadMode::kUNCHANGED, ImageReadMode::kGRAYSCALE, ImageReadMode::kCOLOR]. Default: ImageReadMode::kUNCHANGED. - ImageReadMode::kUNCHANGED, remain the output in the original format. 
- ImageReadMode::kGRAYSCALE, convert the output into one channel grayscale data. 
- ImageReadMode::kCOLOR, convert the output into three channels RGB color data. 
 
 
- 返回
- The status code.