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