IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleMatchKernelXYZSize.h
1 // RuleMatchKernelXYZSize.h:
3 // -------------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_RULEMATCHKERNELXYZSIZE_H__
16 #define __IPSDKIMAGEPROCESSING_RULEMATCHKERNELXYZSIZE_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 KernelXYZAttributeConstWeakPtr& pAttribute,
44  const ipUInt32 sizeX,
45  const ipUInt32 sizeY,
46  const ipUInt32 sizeZ);
47 
52  ipUInt32 getSizeX() const;
53  ipUInt32 getSizeY() const;
54  ipUInt32 getSizeZ() const;
56 
57 protected:
59  bool testRule() const;
60 
62  std::string createRuleFormalString() const;
63 
65  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
66 
67 // attributes
68 protected:
75 };
76 
79 
80 inline eKernelRuleType
82 {
84 }
85 
88 
89 } // end of namespace imaproc
90 } // end of namespace ipsdk
91 
92 #endif // __IPSDKIMAGEPROCESSING_RULEMATCHKERNELXYZSIZE_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
eKernelRuleType
enumerate describing kernel rule operation type
Definition: KernelRuleTypes.h:33
Rule allowing to check kernel xyz size.
Definition: RuleMatchKernelXYZSize.h:26
ipUInt32 _sizeZ
expected size for kernel
Definition: RuleMatchKernelXYZSize.h:73
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
ipUInt32 _sizeY
expected size for kernel
Definition: RuleMatchKernelXYZSize.h:72
eKernelRuleType getKernelRuleType() const
get kernel rule type
Definition: RuleMatchKernelXYZSize.h:81
boost::weak_ptr< const BaseKernelXYZAttribute > KernelXYZAttributeConstWeakPtr
Definition: KernelAttributeTypes.h:51
check for kernel xyz size
Definition: KernelRuleTypes.h:37
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53
ipUInt32 _sizeX
expected size for kernel
Definition: RuleMatchKernelXYZSize.h:71