7 #define DLLTYPE_SUPER_RESOLUTION
9 #ifdef DLLEXPORT_SUPER_RESOLUTION
10 #define DLLTYPE_SUPER_RESOLUTION extern "C" __declspec(dllexport)
12 #define DLLTYPE_SUPER_RESOLUTION extern "C" __declspec(dllimport)
98 int* maxInspectionHeight,
99 int* maxInspectionWidth
106 const int maxInspectionHeight,
107 const int maxInspectionWidth,
108 const bool writeOnModelFile
116 const bool writeOnModelFile
124 const char* imagePath,
132 const wchar_t* imagePath,
140 const unsigned char* imageData,
150 const unsigned char* imageData,
160 const unsigned int* imageData,
170 const unsigned char* imageData,
180 const unsigned char* imageData,
190 const unsigned int* imageData,
204 unsigned char* resultImage);
213 long* inferenceTimeInLong
223 long* imageLoadingTimeInLong
233 int* height,
int* width);
eErrorType SR_ApplySupResTestFrom16bitCharColorArray(SupResTestHandle handle, const unsigned char *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
eErrorType SR_GetSupResTestInferenceTime(SupResTestResult superResolutionResult, long *inferenceTimeInLong)
Get the inference time.
eErrorType SR_ApplySupResTestFrom16bitUnsignedIntColorArray(SupResTestHandle handle, const unsigned int *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
eErrorType SR_GetSupResTestLoadImageTime(SupResTestResult superResolutionResult, long *imageLoadingTimeInLong)
Get the image loading time.
eErrorType SR_ApplySupResTestFrom16bitCharGrayArray(SupResTestHandle handle, const unsigned char *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
void * SupResTestHandle
Definition: SuperResolutionTestDLL.h:44
SupResTestResult SR_MakeSupResTestResult()
SupResTestResult 를 생성합니다.
void * SegTestHandleForSupRes
Segmentation file handler.
Definition: SuperResolutionTestDLL.h:33
SupResTestHandle SR_CreateSupResTestHandleByWideCharPath(const wchar_t *filePath)
SupResTestHandle 을 생성합니다.
eErrorType SR_ApplySupResTestFromImageFileByWideCharPath(SupResTestHandle handle, const wchar_t *imagePath, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
eErrorType SR_DeleteSupResTestResult(SupResTestResult result)
Destruct a SupResTestResult.
eErrorType SR_ApplySupResTestFromUnsignedIntColorArray(SupResTestHandle handle, const unsigned int *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
eErrorType SR_ApplySupResTestFromImageFile(SupResTestHandle handle, const char *imagePath, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
eErrorType SR_ApplySupResTestFrom8bitCharGrayArray(SupResTestHandle handle, const unsigned char *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
eErrorType SR_GetSupResTestMaxInspectionSize(SupResTestHandle handle, int *maxInspectionHeight, int *maxInspectionWidth)
SupResTestHandle 로부터 max inspection size 값을 받아옵니다.
eErrorType SR_DestroySupResTestHandle(SupResTestHandle handle)
SupResTestHandle 을 소멸합니다.
eErrorType SR_GetSupResTestResultImage(SupResTestResult superResolutionResult, unsigned char *resultImage)
Get a result image of super resolution.
eErrorType SR_SetSupResMaxInspectionSizeFromSeg(SupResTestHandle handle, SegTestHandleForSupRes srcHandle, const bool writeOnModelFile)
SegTestHandleForSupRes 로부터 max inspection size를 받아 SupResTestHandle에 설정합니다.
void * SupResTestResult
Super resolution results handler.
Definition: SuperResolutionTestDLL.h:58
eErrorType SR_SetSupResTestMaxInspectionSize(SupResTestHandle handle, const int maxInspectionHeight, const int maxInspectionWidth, const bool writeOnModelFile)
SupResTestHandle에 max inspection size 값을 설정합니다.
eErrorType SR_GetSupResTestResultImageSize(SupResTestResult superResolutionResult, int *height, int *width)
Get a size of result image of super resolution.
eErrorType SR_ApplySupResTestFrom8bitCharColorArray(SupResTestHandle handle, const unsigned char *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
eErrorType SR_LoadSupResTestNetworkInGPU(SupResTestHandle handle, int gpuIndexNvml, int batchSize=1)
GPU에 네트워크를 위한 메모리를 할당하고 로드합니다.
eErrorType SR_SetROIInfoFromSeg(SupResTestHandle handle, SegTestHandleForSupRes srcHandle)
SegTestHandleForSupRes 로부터 ROI 정보를 받아 SupResTestHandle에 설정합니다.