SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
SuperResolutionTestDLL.h
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #ifdef __linux__
7  #define DLLTYPE_SUPER_RESOLUTION
8 #elif _WIN32
9  #ifdef DLLEXPORT_SUPER_RESOLUTION
10  #define DLLTYPE_SUPER_RESOLUTION extern "C" __declspec(dllexport)
11  #else
12  #define DLLTYPE_SUPER_RESOLUTION extern "C" __declspec(dllimport)
13  #endif
14 #endif
15 
16 #include "CommonHeaderDLL.h"
17 
33 typedef void* SegTestHandleForSupRes;
34 
44 typedef void* SupResTestHandle;
45 
58 typedef void* SupResTestResult;
59 
63 DLLTYPE_SUPER_RESOLUTION SupResTestHandle
64 SR_CreateSupResTestHandleByWideCharPath(const wchar_t* filePath);
65 
67 DLLTYPE_SUPER_RESOLUTION eErrorType
69 
71 DLLTYPE_SUPER_RESOLUTION SupResTestResult
73 
75 DLLTYPE_SUPER_RESOLUTION eErrorType
77 
79 DLLTYPE_SUPER_RESOLUTION eErrorType
81  SupResTestHandle handle,
82  int gpuIndexNvml,
83  int batchSize = 1
84 );
85 
86 
88 DLLTYPE_SUPER_RESOLUTION eErrorType
90  SupResTestHandle handle,
91  SegTestHandleForSupRes srcHandle
92 );
93 
94 
96 DLLTYPE_SUPER_RESOLUTION eErrorType
98  SupResTestHandle handle,
99  const char* imagePath,
100  SupResTestResult result
101 );
102 
104 DLLTYPE_SUPER_RESOLUTION eErrorType
106  SupResTestHandle handle,
107  const wchar_t* imagePath,
108  SupResTestResult result
109 );
110 
112 DLLTYPE_SUPER_RESOLUTION eErrorType
114  SupResTestHandle handle,
115  const unsigned char* imageData,
116  const int height,
117  const int width,
118  SupResTestResult result
119 );
120 
122 DLLTYPE_SUPER_RESOLUTION eErrorType
124  SupResTestHandle handle,
125  const unsigned char* imageData,
126  const int height,
127  const int width,
128  SupResTestResult result
129 );
130 
132 DLLTYPE_SUPER_RESOLUTION eErrorType
134  SupResTestHandle handle,
135  const unsigned int* imageData,
136  const int height,
137  const int width,
138  SupResTestResult result
139 );
140 
145 DLLTYPE_SUPER_RESOLUTION eErrorType
147  SupResTestResult superResolutionResult,
148  unsigned char* resultImage);
149 
154 DLLTYPE_SUPER_RESOLUTION eErrorType
156  SupResTestResult superResolutionResult,
157  long* inferenceTimeInLong
158 ); /* milliseconds */
159 
164 DLLTYPE_SUPER_RESOLUTION eErrorType
166  SupResTestResult superResolutionResult,
167  long* imageLoadingTimeInLong
168 ); /* milliseconds */
169 
174 DLLTYPE_SUPER_RESOLUTION eErrorType
176  SupResTestResult superResolutionResult,
177  int* height, int* width);
SR_ApplySupResTestFromUnsignedIntColorArray
eErrorType SR_ApplySupResTestFromUnsignedIntColorArray(SupResTestHandle handle, const unsigned int *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
SR_ApplySupResTestFrom8bitCharColorArray
eErrorType SR_ApplySupResTestFrom8bitCharColorArray(SupResTestHandle handle, const unsigned char *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
SR_GetSupResTestResultImage
eErrorType SR_GetSupResTestResultImage(SupResTestResult superResolutionResult, unsigned char *resultImage)
Get a result image of super resolution.
SupResTestResult
void * SupResTestResult
Super resolution results handler.
Definition: SuperResolutionTestDLL.h:58
SR_ApplySupResTestFromImageFileByWideCharPath
eErrorType SR_ApplySupResTestFromImageFileByWideCharPath(SupResTestHandle handle, const wchar_t *imagePath, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
SR_SetROIInfoFromSeg
eErrorType SR_SetROIInfoFromSeg(SupResTestHandle handle, SegTestHandleForSupRes srcHandle)
SegTestHandleForSupRes 로부터 ROI 정보를 받아 SupResTestHandle에 설정합니다.
SR_DeleteSupResTestResult
eErrorType SR_DeleteSupResTestResult(SupResTestResult result)
Destruct a SupResTestResult.
SR_ApplySupResTestFromImageFile
eErrorType SR_ApplySupResTestFromImageFile(SupResTestHandle handle, const char *imagePath, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.
SR_DestroySupResTestHandle
eErrorType SR_DestroySupResTestHandle(SupResTestHandle handle)
SupResTestHandle 을 소멸합니다.
SegTestHandleForSupRes
void * SegTestHandleForSupRes
Segmentation file handler for super resolution.
Definition: SuperResolutionTestDLL.h:33
CommonHeaderDLL.h
Header file for Commonly used variables.
SR_GetSupResTestInferenceTime
eErrorType SR_GetSupResTestInferenceTime(SupResTestResult superResolutionResult, long *inferenceTimeInLong)
Get the inference time.
eErrorType
eErrorType
Enumerator indicating error codes.
Definition: CommonHeaderDLL.h:25
SR_CreateSupResTestHandleByWideCharPath
SupResTestHandle SR_CreateSupResTestHandleByWideCharPath(const wchar_t *filePath)
SupResTestHandle 을 생성합니다.
SupResTestHandle
void * SupResTestHandle
Super resolution handler.
Definition: SuperResolutionTestDLL.h:44
SR_MakeSupResTestResult
SupResTestResult SR_MakeSupResTestResult()
SupResTestResult 를 생성합니다.
SR_GetSupResTestResultImageSize
eErrorType SR_GetSupResTestResultImageSize(SupResTestResult superResolutionResult, int *height, int *width)
Get a size of result image of super resolution.
SR_GetSupResTestLoadImageTime
eErrorType SR_GetSupResTestLoadImageTime(SupResTestResult superResolutionResult, long *imageLoadingTimeInLong)
Get the image loading time.
SR_LoadSupResTestNetworkInGPU
eErrorType SR_LoadSupResTestNetworkInGPU(SupResTestHandle handle, int gpuIndexNvml, int batchSize=1)
GPU에 네트워크를 위한 메모리를 할당하고 로드합니다.
SR_ApplySupResTestFrom8bitCharGrayArray
eErrorType SR_ApplySupResTestFrom8bitCharGrayArray(SupResTestHandle handle, const unsigned char *imageData, const int height, const int width, SupResTestResult result)
SupResTestHandle 을 이용하여 초해상화를 수행합니다.