ImgUtils.h
641 Bytes
#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* DeviceMemory* resize(DeviceMemory* memPtr, int out_width, int out_height) ;(DeviceMemory* memPtr, int out_width, int out_height) DeviceMemory* resize(DeviceMemory* memPtr, int out_width, int out_height) ;
DeviceMemory* crop(DeviceMemory* memPtr, AreaInfo& area_info) ;
vector< DeviceMemory* > crop_batch(DeviceMemory* memPtr, vector<AreaInfo>& vec_area_info) ;
private:
/* data */
};
#endif //__INTERFACE_IMGUTILS__