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.

Parameters
  • image[in] Tensor of the image.

  • channels[out] Channels of the image.

Returns

The status code.