Function mindspore::dataset::vision::EncodePng
Defined in File vision.h
Function Documentation
-
Status mindspore::dataset::vision::EncodePng(const mindspore::MSTensor &image, mindspore::MSTensor *output, int compression_level = 6)
Encode the image as PNG data.
- Parameters
image – [in] The image to be encoded.
output – [out] The Tensor data.
compression_level – [in] The compression_level for encoding, in range of [0, 9]. Default: 6.
- Returns
The status code.