IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KittlerThresholdImgLvl1.h
1 // KittlerThresholdImgLvl1.h:
3 // --------------------------
4 //
14 
15 #ifndef __IPSDKIPLBINARIZATION_KITTLERTHRESHOLDIMGLVL1_H__
16 #define __IPSDKIPLBINARIZATION_KITTLERTHRESHOLDIMGLVL1_H__
17 
21 
22 #include <IPSDKIPL/IPSDKIPLBinarization/Processor/KittlerThreshold/KittlerThresholdLvl1.h>
23 
24 // Attributes headers
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOutOptHistogram.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutBinImg.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(REP_ASYNC1, IPSDKIPLBinarization, KittlerThresholdImg,
39  ipsdk::imaproc::matchSize(_pInImg, _pOutBinImg),
40  (((ipsdk)(imaproc)(attr))(InImg))
41  (((ipsdk)(imaproc)(attr))(InOutOptHistogram))
42  (((ipsdk)(imaproc)(attr))(OutThreshold))
43  (((ipsdk)(imaproc)(attr))(OutBinImg)(ipsdk::imaproc::duplicateInOut)(_pInImg)(image::eImageBufferType::eIBT_Binary)))
44 
45 // methods
46 public:
47 
48 protected:
49  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
50  const core::BasePriority& priority,
51  core::ActionProviderPtr& pProvider);
52 
53  processor::RetrievalResult autoThreshold(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
54  processor::RetrievalResult threshold(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
55 
56 // attributes
57 protected:
58  boost::shared_ptr<KittlerThresholdLvl1> _pAutoThresholdProcessor;
59 
60 };
61 
64 
65 } // end of namespace bin
66 } // end of namespace imaproc
67 } // end of namespace ipsdk
68 
69 #endif // __IPSDKIPLBINARIZATION_KITTLERTHRESHOLDIMGLVL1_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