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