SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
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
34
44typedef void* SupResTestHandle;
45
58typedef void* SupResTestResult;
59
63DLLTYPE_SUPER_RESOLUTION SupResTestHandle
65
67DLLTYPE_SUPER_RESOLUTION eErrorType
69
71DLLTYPE_SUPER_RESOLUTION SupResTestResult
73
75DLLTYPE_SUPER_RESOLUTION eErrorType
77
79DLLTYPE_SUPER_RESOLUTION eErrorType
81 SupResTestHandle handle,
82 int gpuIndexNvml,
83 int batchSize = 1
84);
85
86
88DLLTYPE_SUPER_RESOLUTION eErrorType
90 SupResTestHandle handle,
92);
93
95DLLTYPE_SUPER_RESOLUTION eErrorType
97 SupResTestHandle handle,
98 int* maxInspectionHeight,
99 int* maxInspectionWidth
100);
101
103DLLTYPE_SUPER_RESOLUTION eErrorType
105 SupResTestHandle handle,
106 const int maxInspectionHeight,
107 const int maxInspectionWidth,
108 const bool writeOnModelFile
109);
110
112DLLTYPE_SUPER_RESOLUTION eErrorType
114 SupResTestHandle handle,
115 SegTestHandleForSupRes srcHandle,
116 const bool writeOnModelFile
117);
118
119
121DLLTYPE_SUPER_RESOLUTION eErrorType
123 SupResTestHandle handle,
124 const char* imagePath,
125 SupResTestResult result
126);
127
129DLLTYPE_SUPER_RESOLUTION eErrorType
131 SupResTestHandle handle,
132 const wchar_t* imagePath,
133 SupResTestResult result
134);
135
137DLLTYPE_SUPER_RESOLUTION eErrorType
139 SupResTestHandle handle,
140 const unsigned char* imageData,
141 const int height,
142 const int width,
143 SupResTestResult result
144);
145
147DLLTYPE_SUPER_RESOLUTION eErrorType
149 SupResTestHandle handle,
150 const unsigned char* imageData,
151 const int height,
152 const int width,
153 SupResTestResult result
154);
155
157DLLTYPE_SUPER_RESOLUTION eErrorType
159 SupResTestHandle handle,
160 const unsigned int* imageData,
161 const int height,
162 const int width,
163 SupResTestResult result
164);
165
167DLLTYPE_SUPER_RESOLUTION eErrorType
169 SupResTestHandle handle,
170 const unsigned char* imageData,
171 const int height,
172 const int width,
173 SupResTestResult result
174);
175
177DLLTYPE_SUPER_RESOLUTION eErrorType
179 SupResTestHandle handle,
180 const unsigned char* imageData,
181 const int height,
182 const int width,
183 SupResTestResult result
184);
185
187DLLTYPE_SUPER_RESOLUTION eErrorType
189 SupResTestHandle handle,
190 const unsigned int* imageData,
191 const int height,
192 const int width,
193 SupResTestResult result
194);
195
196
201DLLTYPE_SUPER_RESOLUTION eErrorType
203 SupResTestResult superResolutionResult,
204 unsigned char* resultImage);
205
210DLLTYPE_SUPER_RESOLUTION eErrorType
212 SupResTestResult superResolutionResult,
213 long* inferenceTimeInLong
214); /* milliseconds */
215
220DLLTYPE_SUPER_RESOLUTION eErrorType
222 SupResTestResult superResolutionResult,
223 long* imageLoadingTimeInLong
224); /* milliseconds */
225
230DLLTYPE_SUPER_RESOLUTION eErrorType
232 SupResTestResult superResolutionResult,
233 int* height, int* width);
Header file for Commonly used variables.
eErrorType
Enumerator indicating error codes.
Definition: CommonHeaderDLL.h:30
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에 설정합니다.