Function mindspore::dataset::vision::EncodePng

Function Documentation

Status mindspore::dataset::vision::EncodePng(const mindspore::MSTensor &image, mindspore::MSTensor *output, int compression_level = 6)

Encode the image as PNG data.

参数
  • 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.

返回

The status code.