How to use dl_image.hpp ?
Posted: Sun Nov 27, 2022 5:26 pm
Hello,
i want to try some image manipulation and i find dl_image.hpp in sdk folder (2.0.5).
I m stuck whith (all the lib):
I don t understand ,
Tensor<uint8_t> ?? A multi dimensional arrey wtf ??
std::vector<int> arget_shape ?
resize_type_t resize_type ?? found 0 to 2 nearest to bilinear
And how to use it in easy format code ?
Merci
i want to try some image manipulation and i find dl_image.hpp in sdk folder (2.0.5).
I m stuck whith (all the lib):
Code: Select all
/**
* @brief resize an image to the target shape.
*
* @param image the input image Tensor
* @param target_shape the target shape of the resized image.
* @param resize_type one of IMAGE_RESIZE_BILINEAR or IMAGE_RESIZE_MEAN or IMAGE_RESIZE_NEAREST
* @return Tensor<uint8_t>* the pointer of the resized image Tensor
*/
Tensor<uint8_t> *resize_image(Tensor<uint8_t> &image, std::vector<int> target_shape, resize_type_t resize_type);
Tensor<uint8_t> ?? A multi dimensional arrey wtf ??
std::vector<int> arget_shape ?
resize_type_t resize_type ?? found 0 to 2 nearest to bilinear
And how to use it in easy format code ?
Merci