IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleMatchKernelXYSize.h
1 // RuleMatchKernelXYSize.h:
3 // ------------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_RULEMATCHKERNELXYSIZE_H__
16 #define __IPSDKIMAGEPROCESSING_RULEMATCHKERNELXYSIZE_H__
17 
18 #include <IPSDKImageProcessing/Rule/Kernel/BaseKernelPropertyRule.h>
19 
20 namespace ipsdk {
21 namespace imaproc {
22 
25 
27 {
28 public:
34 
35 // methods
36 public:
38  eKernelRuleType getKernelRuleType() const;
39 
43  void init(const KernelXYAttributeConstWeakPtr& pAttribute,
44  const ipUInt32 sizeX,
45  const ipUInt32 sizeY);
46 
51  ipUInt32 getSizeX() const;
52  ipUInt32 getSizeY() const;
54 
55 protected:
57  bool testRule() const;
58 
60  std::string createRuleFormalString() const;
61 
63  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
64 
65 // attributes
66 protected:
72 };
73 
76 
77 inline eKernelRuleType
79 {
81 }
82 
85 
86 } // end of namespace imaproc
87 } // end of namespace ipsdk
88 
89 #endif // __IPSDKIMAGEPROCESSING_RULEMATCHKERNELXYSIZE_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Base class for rules allowing to check property of a kernel attribute.
Definition: BaseKernelPropertyRule.h:28
boost::weak_ptr< const BaseKernelXYAttribute > KernelXYAttributeConstWeakPtr
Definition: KernelAttributeTypes.h:39
eKernelRuleType
enumerate describing kernel rule operation type
Definition: KernelRuleTypes.h:33
ipUInt32 _sizeY
expected size for kernel
Definition: RuleMatchKernelXYSize.h:70
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
eKernelRuleType getKernelRuleType() const
get kernel rule type
Definition: RuleMatchKernelXYSize.h:78
Rule allowing to check kernel xy size.
Definition: RuleMatchKernelXYSize.h:26
ipUInt32 _sizeX
expected size for kernel
Definition: RuleMatchKernelXYSize.h:69
check for kernel xy size
Definition: KernelRuleTypes.h:35
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53