IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HysteresisThreshold2dImgLvl1.h
1 // HysteresisThreshold2dImgLvl1.h:
3 // -------------------------------
4 //
14 
15 #ifndef __IPSDKIPLBINARIZATION_HYSTERESISTHRESHOLD2DIMGLVL1_H__
16 #define __IPSDKIPLBINARIZATION_HYSTERESISTHRESHOLD2DIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InHysteresisParams.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutBinImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Neighborhood/InOptNeighborhood2d.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1BinImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1LabelImg.h>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace bin {
33 
36 
37 // declare processor class
38 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC3, IPSDKIPLBinarization, HysteresisThreshold2dImg,
39  (ipsdk::imaproc::matchSize(_pInImg, _pOutBinImg) &&
40  (ipsdk::processor::ifIsSet(_pOutOptWk1LabelImg,
41  (ipsdk::imaproc::matchSize(_pInImg, _pOutOptWk1LabelImg)))) &&
42  (ipsdk::processor::ifIsSet(_pOutOptWk1LabelImg,
43  (ipsdk::imaproc::matchSize(_pInImg, _pOutOptWk1LabelImg))))),
44  (((ipsdk)(imaproc)(attr))(InImg))
45  (((ipsdk)(imaproc)(attr))(InHysteresisParams))
46  (((ipsdk)(imaproc)(attr))(InOptNeighborhood2d))
47  (((ipsdk)(imaproc)(attr))(OutOptWk1BinImg))
48  (((ipsdk)(imaproc)(attr))(OutOptWk1LabelImg))
49  (((ipsdk)(imaproc)(attr))(OutBinImg)(ipsdk::imaproc::duplicateInOut)(_pInImg)(image::eImageBufferType::eIBT_Binary)))
50 
51 // methods
52 public:
53 
54 protected:
55  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
56  const core::BasePriority& priority,
57  core::ActionProviderPtr& pProvider);
58 
59  processor::RetrievalResult binaryReconstruction(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
60 
61 // attributes
62 protected:
63 
64 };
65 
68 
69 } // end of namespace bin
70 } // end of namespace imaproc
71 } // end of namespace ipsdk
72 
73 #endif // __IPSDKIPLBINARIZATION_HYSTERESISTHRESHOLD2DIMGLVL1_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#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)
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
Definition of import/export macro for library.
boost::shared_ptr< BaseActionProvider > ActionProviderPtr