IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
IsoDataThresholdLvl1.h
1 // IsoDataThresholdLvl1.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIPLBINARIZATION_ISODATATHRESHOLDLVL1_H__
16 #define __IPSDKIPLBINARIZATION_ISODATATHRESHOLDLVL1_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/InOptWeight.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/OutThreshold.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/StatsResult.h>
28 
29 namespace ipsdk {
30 namespace imaproc {
31 namespace bin {
32 
35 
36 // declare processor class
37 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC2, IPSDKIPLBinarization, IsoDataThreshold,
39  (((ipsdk)(imaproc)(attr))(InImg))
40  (((ipsdk)(imaproc)(attr))(InOutOptHistogram))
41  (((ipsdk)(imaproc)(attr))(InOptWeight))
42  (((ipsdk)(imaproc)(attr))(OutThreshold)))
43 
44 // methods
45 public:
46 
47 protected:
49  void clearIntermediateData();
50 
51  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
52  const core::BasePriority& priority,
53  core::ActionProviderPtr& pProvider);
54 
57  core::ExecResult postProcess();
58 
59 // attributes
60 protected:
62  attr::StatsResultPtr _pStatsPtr;
63 
65  attr::HistogramDataPtr _pHistoPtr;
66 
67 };
68 
71 
72 } // end of namespace bin
73 } // end of namespace imaproc
74 } // end of namespace ipsdk
75 
76 #endif // __IPSDKIPLBINARIZATION_ISODATATHRESHOLDLVL1_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