#ifndef __INTERFACE_IMGUTILS__ #define __INTERFACE_IMGUTILS__ #include "DeviceMemory.hpp" class ImgUtils { public: static ImgUtils* getInstance() { static ImgUtils* singleton = nullptr; if (singleton == nullptr){ singleton = new ImgUtils(); } return singleton; } ImgUtils(/* args */); ~ImgUtils(); DeviceMemory* resize(DeviceMemory* memPtr, int out_width, int out_height) ; DeviceMemory* crop(DeviceMemory* memPtr, AreaInfo& area_info) ; vector< DeviceMemory* > crop_batch(DeviceMemory* memPtr, vector& vec_area_info) ; private: /* data */ }; #endif //__INTERFACE_IMGUTILS__