Function mindspore::dataset::vision::GetImageSize

Function Documentation

Status mindspore::dataset::vision::GetImageSize(const mindspore::MSTensor &image, std::vector<dsize_t> *size)

Get the size of input image.

Parameters
  • image[in] Tensor of the image.

  • size[out] Size of the image as [height, width].

Returns

The status code.