HIAI_TENSOR_API_EXPORT std::shared_ptr<IImageTensorBuffer> CreateImageTensorBufferFromHandle(const NativeHandle& handle,int32_t b, int32_t h, int32_t w, ImageFormat format, ImageColorSpace colorSpace, int32_t rotation);
名称 | 类型 | 描述 |
|---|---|---|
handle | const NativeHandle& | 输入NativeHandle的结构体信息。 |
b | int32_t | 输入图像的batch。 |
h | int32_t | 输入图像的高度。 |
w | int32_t | 输入图像的宽度。 |
format | 输入图像的format。 | |
colorSpace | 输入图像的colorSpace。 | |
rotation | int32_t | 输入图像的角度。 |