IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleMatchImageSize.h
1 // RuleMatchImageSize.h:
3 // ---------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_RULEMATCHIMAGESIZE_H__
16 #define __IPSDKIMAGEPROCESSING_RULEMATCHIMAGESIZE_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::imaproc::RuleMatchImageSize::_matchImageSizeType' : class 'ipsdk::imaproc::eMatchImageSizeType' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::RuleMatchImageSize'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
23 #include <IPSDKImageProcessing/Rule/Image/ImageComparison/BaseImageComparisonRule.h>
24 
25 namespace ipsdk {
26 namespace imaproc {
27 
30 
32 {
33 // predefined public type
34 public:
36  static const eImageComparisonRuleType::domain g_imageComparisonRuleType = eImageComparisonRuleType::eICRT_MatchImageSize;
37 
38 public:
44 
45 // methods
46 public:
48  eImageComparisonRuleType getImageComparisonRuleType() const;
49 
55  void init(const eMatchImageSizeType& matchImageSizeType,
56  const ImageAttributeConstWeakPtr& pAttribute1,
57  const ImageAttributeConstWeakPtr& pAttribute2);
58 
61  const eMatchImageSizeType& getMatchImageSizeType() const;
62 
63 protected:
65  bool testRule() const;
66 
68  std::string createRuleFormalString() const;
69 
71  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
72 
73 // attributes
74 protected:
77 };
78 
81 
84 {
86 }
87 
90 
91 } // end of namespace imaproc
92 } // end of namespace ipsdk
93 
94 #pragma warning (pop)
95 
96 #endif // __IPSDKIMAGEPROCESSING_RULEMATCHIMAGESIZE_H__
eMatchImageSizeType _matchImageSizeType
image size coordinates checked
Definition: RuleMatchImageSize.h:76
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
boost::weak_ptr< const BaseImageAttribute > ImageAttributeConstWeakPtr
Definition: ImageAttributeTypes.h:38
eImageComparisonRuleType
enumerate describing image comparison rule operation type
Definition: ImageComparisonRuleTypes.h:32
eImageComparisonRuleType getImageComparisonRuleType() const
get image comparison rule type
Definition: RuleMatchImageSize.h:83
static const eImageComparisonRuleType::domain g_imageComparisonRuleType
image processing image comparison rule type associated to rule
Definition: RuleMatchImageSize.h:36
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
eMatchImageSizeType
enumerate describing image comparison on image size rule operation type
Definition: ImageRuleTypes.h:50
Base class for rules allowing to compare two image attributes.
Definition: BaseImageComparisonRule.h:27
Match image size : x, y, z, c or t.
Definition: ImageComparisonRuleTypes.h:36
Rule allowing to check that two images have same size.
Definition: RuleMatchImageSize.h:31
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53