FLImaging 7.8.25.3
ComputationalGraphAugmentationForSuperResolution.h
1#pragma once
2
3#if _MSC_VER >= 1900 && defined(_M_X64)
4
5#include "ComputationalGraphAugmentationBase.h"
6
7namespace FLImaging
8{
9 namespace AI
10 {
12
13 template<typename T>
14 class CInternalAugmentationForSuperResolution;
15
16 template <typename T>
17 class FL_EXPORT CComputationalGraphAugmentationForSuperResolution : public CComputationalGraphAugmentationBase<T>
18 {
19 private:
20 CComputationalGraphAugmentationForSuperResolution();
21
22 protected:
23 CComputationalGraphAugmentationForSuperResolution(const CComputationalGraphAugmentationForSuperResolution<T>& cg);
24
25 public:
26
27 CComputationalGraphAugmentationForSuperResolution(const CComputationalBase<T>& cbOperand, const CAugmentationParameters& apParams, int64_t i64HighRatio = 1);
28 CComputationalGraphAugmentationForSuperResolution(const CComputationalBase<T>& cbOperand, const CAugmentationParameters* pApParams, int64_t i64HighRatio = 1);
29 virtual ~CComputationalGraphAugmentationForSuperResolution();
30
31 virtual const CResult Assign(const CComputationalGraphAugmentationForSuperResolution<T>& cgAug);
32 virtual const CResult Assign(const CComputationalGraphAugmentationForSuperResolution<T>* pCgAug);
33
34 virtual CComputationalBase<T>* Clone() const override;
35
36 virtual const CResult GetBinaryData(Base::CFLData& fldBinary, bool bSuperClass = false, int32_t i32Version = -1, bool bDumpMode = false) const override;
37 virtual const CResult GetBinaryData(Base::CFLData* pFldBinary, bool bSuperClass = false, int32_t i32Version = -1, bool bDumpMode = false) const override;
38
39 virtual const CResult SetBinaryData(const Base::CFLData& fldBinary, int64_t* pI64Offset = nullptr) override;
40 virtual const CResult SetBinaryData(const Base::CFLData* pFldBinary, int64_t* pI64Offset = nullptr) override;
41
42 virtual const CResult SetHighResolutionRatio(const int64_t bHighResolutionMode);
43 virtual const int64_t GetHighResolutionRatio();
44
45 DeclareGetClassType();
46 SupportToDuplicateObjectWithoutCreateNewObject(CComputationalGraphAugmentationForSuperResolution, *this);
47
48 protected:
49 public:
50 DeclareGetSignletonObject(CComputationalGraphAugmentationForSuperResolution);
51
52
53 private:
54 template <typename T> friend class CInternalAugmentationForSuperResolution;
55 int64_t m_i64HighRatio;
56 };
57
58 #define CCGFAugmentationSR(...) (*(new CComputationalGraphAugmentationForSuperResolution<float>(__VA_ARGS__)))
59 #define CCGDAugmentationSR(...) (*(new CComputationalGraphAugmentationForSuperResolution<double>(__VA_ARGS__)))
60
61 #define CCGTAugmentationSR(T, ...) (*(new CComputationalGraphAugmentationForSuperResolution<T>(__VA_ARGS__)))
62 }
63}
64
65#endif
Augmentation Parameter Class By transforming the images, it increases the diversity of training image...
Definition AugmentationParameters.h:69
Definition AlgorithmAIBase.h:18
@ Assign
Set the value of CGUIPropertyItemView3DFigure to the specified figure.
Definition DefinitionsGUIView3D.h:3531