IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
IsoDataThresholdImgLvl1.h
1 // IsoDataThresholdImgLvl1.h:
3 // --------------------------
4 //
14 
15 #ifndef __IPSDKIPLBINARIZATION_ISODATATHRESHOLDIMGLVL1_H__
16 #define __IPSDKIPLBINARIZATION_ISODATATHRESHOLDIMGLVL1_H__
17 
21 #include <IPSDKIPL/IPSDKIPLBinarization/Processor/IsoDataThreshold/IsoDataThresholdLvl1.h>
22 
23 // Attributes headers
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOutOptHistogram.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutBinImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOptWeight.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/OutThreshold.h>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace bin {
33 
36 
37 // declare processor class
38 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC2, IPSDKIPLBinarization, IsoDataThresholdImg,
39  ipsdk::imaproc::matchSize(_pInImg, _pOutBinImg),
40  (((ipsdk)(imaproc)(attr))(InImg))
41  (((ipsdk)(imaproc)(attr))(InOutOptHistogram))
42  (((ipsdk)(imaproc)(attr))(InOptWeight))
43  (((ipsdk)(imaproc)(attr))(OutThreshold))
44  (((ipsdk)(imaproc)(attr))(OutBinImg)(ipsdk::imaproc::duplicateInOut)(_pInImg)(image::eImageBufferType::eIBT_Binary)))
45 
46 // methods
47 public:
48 
49 protected:
51  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
52  const core::BasePriority& priority,
53  core::ActionProviderPtr& pProvider);
54 
56  processor::RetrievalResult autoThreshold(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
57 
59  processor::RetrievalResult threshold(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
60 
61 // attributes
62 protected:
64  boost::shared_ptr<IsoDataThresholdLvl1> _pAutoThresholdProcessor;
65 
66 };
67 
70 
71 } // end of namespace bin
72 } // end of namespace imaproc
73 } // end of namespace ipsdk
74 
75 #endif // __IPSDKIPLBINARIZATION_ISODATATHRESHOLDIMGLVL1_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)
Definition of import/export macro for library.
boost::shared_ptr< BaseActionProvider > ActionProviderPtr