IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KapurThresholdLvl1.h
1 // KapurThresholdLvl1.h:
3 // ---------------------
4 //
14 
15 #ifndef __IPSDKIPLBINARIZATION_KAPURTHRESHOLDLVL1_H__
16 #define __IPSDKIPLBINARIZATION_KAPURTHRESHOLDLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOutOptHistogram.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/OutThreshold.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/StatsResult.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace bin {
31 
34 
35 // declare processor class
36 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC2, IPSDKIPLBinarization, KapurThreshold,
38  (((ipsdk)(imaproc)(attr))(InImg))
39  (((ipsdk)(imaproc)(attr))(InOutOptHistogram))
40  (((ipsdk)(imaproc)(attr))(OutThreshold)))
41 
42 // methods
43 public:
44 
45 protected:
47  void clearIntermediateData();
48 
49  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
50  const core::BasePriority& priority,
51  core::ActionProviderPtr& pProvider);
52 
55  core::ExecResult postProcess();
56 
57 // attributes
58 protected:
59 
61  attr::StatsResultPtr _pStatsPtr;
62 
64  attr::HistogramDataPtr _pHistoPtr;
65 
66 };
67 
70 
71 } // end of namespace bin
72 } // end of namespace imaproc
73 } // end of namespace ipsdk
74 
75 #endif // __IPSDKIPLBINARIZATION_KAPURTHRESHOLDLVL1_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
IPSDKBASEPROCESSING_API RulePtr none()
boost::shared_ptr< ipsdk::imaproc::attr::HistogramData > HistogramDataPtr
shared pointer to ipsdk::imaproc::HistogramData
Definition: HistogramData.h:231
ProcessingResult< eExecutionResult > ExecResult
Definition of import/export macro for library.
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
IPSDK_DECLARE_GPU_PROCESSING_ALGORITHM(IPSDKIPLFiltering, Convolution2dImg, ipsdk::imaproc::matchSize(_pInSubGpuImg, _pOutImg),(((ipsdk)(imaproc)(attr))(InSubGpuImg))(((ipsdk)(imaproc)(attr))(InKnlXY))(((ipsdk)(imaproc)(attr))(InNormalize))(((ipsdk)(imaproc)(attr))(InConvolBorder2d))(((ipsdk)(imaproc)(attr))(OutImg))) IPSDKCUDA_DECLARE_ALGORITHM_FUNCTION_SELECTOR((InSubGpuImg)(OutImg)) public void clearIntermediateData()
method called before processing
boost::shared_ptr< ipsdk::imaproc::attr::StatsResult > StatsResultPtr
shared pointer to ipsdk::imaproc::attr::StatsResult
Definition: StatsResult.h:206