Obtains tensor objects in the valid range of an image.
The following image color gamut types are supported:
If you want to convert an image into ndarray, use this API to convert the image into a tensor on the host and then into ndarray.
1 | get_original_tensor() |
Tensor