IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ThresholdImgLvl1.h
1 // ThresholdImgLvl1.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKIPLBINARIZATION_THRESHOLDIMGLVL1_H__
16 #define __IPSDKIPLBINARIZATION_THRESHOLDIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InThresholdMax.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InThresholdMin.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutBinImg.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace bin {
31 
34 
35 // declare processor class
36 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLBinarization, ThresholdImg,
37  ((ipsdk::imaproc::matchSize(_pInImg, _pOutBinImg)) &&
38  (_pInThresholdMin <= _pInThresholdMax) &&
39  (matchImageRange(_pInImg, _pInThresholdMin)) &&
40  (matchImageRange(_pInImg, _pInThresholdMax))),
41  (((ipsdk)(imaproc)(attr))(InImg))
42  (((ipsdk)(imaproc)(attr))(InThresholdMax))
43  (((ipsdk)(imaproc)(attr))(InThresholdMin))
44  (((ipsdk)(imaproc)(attr))(OutBinImg)(ipsdk::imaproc::duplicateInOut)(_pInImg)(image::eImageBufferType::eIBT_Binary)))
45 
46 // methods
47 public:
48 
49 // attributes
50 protected:
51 
52 };
53 
56 
57 } // end of namespace bin
58 } // end of namespace imaproc
59 } // end of namespace ipsdk
60 
61 #endif // __IPSDKIPLBINARIZATION_THRESHOLDIMGLVL1_H__
processor::RulePtr matchImageRange(const ImageAttributeConstPtr &pImageAttribute, const boost::shared_ptr< LeafAttributeType > &pLeafAttribute)
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
processor::OutputInitializerPtr duplicateInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
Definition of import/export macro for library.