Function mindspore::dataset::vision::WritePng
Defined in File vision.h
Function Documentation
-
Status mindspore::dataset::vision::WritePng(const std::string &filename, const mindspore::MSTensor &image, int compression_level = 6)
Write the image into a PNG file.
- Parameters
filename – [in] The path to the file to be written.
image – [in] The data tensor.
compression_level – [in] The compression level for PNG file, in range of [0, 9]. Default: 6.
- Returns
The status code.