FLImaging 7.8.25.3
ComputationalGraphAugmentationForObjectDetection.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 CInternalAugmentationForObjectDetection;
15
16 template <typename T>
17 class FL_EXPORT CComputationalGraphAugmentationForObjectDetection : public CComputationalGraphAugmentationBase<T>
18 {
19 private:
20 CComputationalGraphAugmentationForObjectDetection();
21
22 protected:
23 CComputationalGraphAugmentationForObjectDetection(const CComputationalGraphAugmentationForObjectDetection<T>& cg);
24
25 public:
26
27 CComputationalGraphAugmentationForObjectDetection(const CComputationalBase<T>& cbOperand, const CAugmentationParameters& apParams);
28 CComputationalGraphAugmentationForObjectDetection(const CComputationalBase<T>& cbOperand, const CAugmentationParameters* pApParams);
29 virtual ~CComputationalGraphAugmentationForObjectDetection();
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 DeclareGetClassType();
39 SupportToDuplicateObjectWithoutCreateNewObject(CComputationalGraphAugmentationForObjectDetection, *this);
40
41 protected:
42 public:
43 DeclareGetSignletonObject(CComputationalGraphAugmentationForObjectDetection);
44
45
46 private:
47 template <typename T> friend class CInternalAugmentationForObjectDetection;
48 };
49
50 #define CCGFAugmentationOD(...) (*(new CComputationalGraphAugmentationForObjectDetection<float>(__VA_ARGS__)))
51 #define CCGDAugmentationOD(...) (*(new CComputationalGraphAugmentationForObjectDetection<double>(__VA_ARGS__)))
52
53 #define CCGTAugmentationOD(T, ...) (*(new CComputationalGraphAugmentationForObjectDetection<T>(__VA_ARGS__)))
54 }
55}
56
57#endif
Augmentation Parameter Class By transforming the images, it increases the diversity of training image...
Definition AugmentationParameters.h:69
Definition AlgorithmAIBase.h:18