SaigeVision C/C++  1.4.7
SaigeVision API document for C/C++
SuperResolutionTrainFunctionsDLL.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 
23 DLLTYPE_SUPER_RESOLUTION eErrorType
24 SR_SupResAlignImage(
25  const wchar_t* sourceDir,
26  const wchar_t* targetDir,
27  const wchar_t* sourceResultDir,
28  const wchar_t* targetResultDir,
29  const float* roiParams
30 );
31 
32 DLLTYPE_SUPER_RESOLUTION eErrorType
33 SR_ApplySupResTrain(
34  const wchar_t* trainSourceDir,
35  const wchar_t* trainTargetDir,
36  const float* roiParams,
37  const wchar_t* initialModelFilePath,
38  const wchar_t* saveModelDirPath,
39  const wchar_t* saveModelPrefixName,
40  const int numIter=100000,
41  const int checkpointInterval=10000,
42  const int printInterval=1000,
43  const int batchSize=4,
44  const int cropSize=256,
45  const int gpuIndex=0,
46  const wchar_t* validationSourceDir=nullptr,
47  const wchar_t* validationResultDir=nullptr
48 );
CommonHeaderDLL.h
Header file for Commonly used variables.
eErrorType
eErrorType
Enumerator indicating error codes.
Definition: CommonHeaderDLL.h:25