IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleMatchImagesFormula.h
1 // RuleMatchImagesFormula.h:
3 // -------------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_RULEMATCHIMAGESFORMULA_H__
16 #define __IPSDKIMAGEPROCESSING_RULEMATCHIMAGESFORMULA_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::imaproc::RuleMatchImagesFormula::_pInOptImg1' : class 'boost::weak_ptr<const ipsdk::imaproc::BaseImageAttribute>' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::RuleMatchImagesFormula'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
23 #include <IPSDKImageProcessing/Rule/Formula/BaseFormulaRule.h>
25 
26 namespace ipsdk {
27 namespace imaproc {
28 
31 
33 {
34 // predefined public type
35 public:
37  static const eFormulaRuleType::domain g_formulaRuleType = eFormulaRuleType::eFRT_MatchImages;
38 
39 public:
45 
46 // methods
47 public:
49  eFormulaRuleType getFormulaRuleType() const;
50 
54  void init(const ImageFormulaAttributeConstWeakPtr& pAttribute,
55  const ImageAttributeConstWeakPtr& pInOptImg1,
56  const ImageAttributeConstWeakPtr& pInOptImg2,
57  const ImageAttributeConstWeakPtr& pInOptImg3,
58  const ImageAttributeConstWeakPtr& pInOptBinImg1,
59  const ImageAttributeConstWeakPtr& pInOptBinImg2,
60  const ImageAttributeConstWeakPtr& pInOptBinImg3,
61  const ImageAttributeConstWeakPtr& pInOptLabImg1,
62  const ImageAttributeConstWeakPtr& pInOptLabImg2,
63  const ImageAttributeConstWeakPtr& pInOptLabImg3,
64  const ImageAttributeConstWeakPtr& pOutImg);
65 
66 protected:
68  bool testRule() const;
69 
71  std::string createRuleFormalString() const;
72 
74  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
75 
76 // attributes
77 protected:
91 };
92 
95 
96 inline eFormulaRuleType
98 {
99  return g_formulaRuleType;
100 }
101 
104 
105 } // end of namespace imaproc
106 } // end of namespace ipsdk
107 
108 #pragma warning (pop)
109 
110 #endif // __IPSDKIMAGEPROCESSING_RULEMATCHOPTIMAGESFORMULA_H__
ImageAttributeConstWeakPtr _pInOptBinImg1
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:83
Rule allowing to check that an image formula is valid.
Definition: RuleMatchImagesFormula.h:32
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eFormulaRuleType
enumerate describing formula rule operation type
Definition: FormulaRuleTypes.h:33
static const eFormulaRuleType::domain g_formulaRuleType
formula rule type associated to rule
Definition: RuleMatchImagesFormula.h:37
ImageAttributeConstWeakPtr _pInOptImg3
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:82
boost::weak_ptr< const BaseImageAttribute > ImageAttributeConstWeakPtr
Definition: ImageAttributeTypes.h:38
ImageAttributeConstWeakPtr _pInOptLabImg1
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:86
ImageAttributeConstWeakPtr _pInOptBinImg3
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:85
ImageAttributeConstWeakPtr _pInOptLabImg2
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:87
ImageAttributeConstWeakPtr _pInOptImg2
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:81
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
boost::weak_ptr< const BaseImageFormulaAttribute > ImageFormulaAttributeConstWeakPtr
Definition: FormulaAttributeTypes.h:54
eFormulaRuleType getFormulaRuleType() const
get formula rule type
Definition: RuleMatchImagesFormula.h:97
ImageAttributeConstWeakPtr _pInOptBinImg2
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:84
Predefined types for image attributes management.
ImageAttributeConstWeakPtr _pInOptLabImg3
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:88
rule allowing to check that a collection of images match an image formula syntax
Definition: FormulaRuleTypes.h:39
ImageAttributeConstWeakPtr _pInOptImg1
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:80
ImageAttributeConstWeakPtr _pOutImg
image attributes associated to operation
Definition: RuleMatchImagesFormula.h:89
Base class for rules allowing to check formula properties.
Definition: BaseFormulaRule.h:28
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53