Function mindspore::dataset::vision::GetImageNumChannels

Function Documentation

Status mindspore::dataset::vision::GetImageNumChannels(const mindspore::MSTensor &image, dsize_t *channels)

Get the number of input image channels.

参数
  • image[in] Tensor of the image.

  • channels[out] Channels of the image.

返回

The status code.