FLImaging 7.8.25.3
ComputationalGraphAugmentationForGAN.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 CInternalAugmentationForGAN;
15
16 template <typename T>
17 class FL_EXPORT CComputationalGraphAugmentationForGAN : public CComputationalGraphAugmentationBase<T>
18 {
19 private:
20 CComputationalGraphAugmentationForGAN();
21
22 protected:
23 CComputationalGraphAugmentationForGAN(const CComputationalGraphAugmentationForGAN<T>& cg);
24
25 public:
26
27 CComputationalGraphAugmentationForGAN(const CComputationalBase<T>& cbOperand, const CAugmentationParameters& apParams);
28 CComputationalGraphAugmentationForGAN(const CComputationalBase<T>& cbOperand, const CAugmentationParameters* pApParams);
29 virtual ~CComputationalGraphAugmentationForGAN();
30
31 virtual CComputationalBase<T>* Clone() const override;
32
33 virtual const CResult GetBinaryData(Base::CFLData& fldBinary, bool bSuperClass = false, int32_t i32Version = -1, bool bDumpMode = false) const override;
34 virtual const CResult GetBinaryData(Base::CFLData* pFldBinary, bool bSuperClass = false, int32_t i32Version = -1, bool bDumpMode = false) const override;
35
36 virtual const CResult SetBinaryData(const Base::CFLData& fldBinary, int64_t* pI64Offset = nullptr) override;
37 virtual const CResult SetBinaryData(const Base::CFLData* pFldBinary, int64_t* pI64Offset = nullptr) override;
38
39 DeclareGetClassType();
40 SupportToDuplicateObjectWithoutCreateNewObject(CComputationalGraphAugmentationForGAN, *this);
41
42 protected:
43 public:
44 DeclareGetSignletonObject(CComputationalGraphAugmentationForGAN);
45
46
47 private:
48 template <typename T> friend class CInternalAugmentationForGAN;
49 };
50
51 #define CCGFAugmentationGAN(...) (*(new CComputationalGraphAugmentationForGAN<float>(__VA_ARGS__)))
52 #define CCGDAugmentationGAN(...) (*(new CComputationalGraphAugmentationForGAN<double>(__VA_ARGS__)))
53
54 #define CCGTAugmentationGAN(T, ...) (*(new CComputationalGraphAugmentationForGAN<T>(__VA_ARGS__)))
55 }
56}
57
58#endif
Augmentation Parameter Class By transforming the images, it increases the diversity of training image...
Definition AugmentationParameters.h:69
Definition AlgorithmAIBase.h:18