IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
GlobalEntropyMsr2dLvl2.h
1 // GlobalEntropyMsr2dLvl2.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIPLGLOBALMEASURE_GLOBALENTROPYMSR2DLVL2_H__
16 #define __IPSDKIPLGLOBALMEASURE_GLOBALENTROPYMSR2DLVL2_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/SubImage/Input/2d/InSubImg2d.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutGlobalEntropyResult.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptHistoMsrParams.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/HistogramData.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/StatsResult.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace glbmsr {
31 
34 
35 // declare processor class
36 IPSDK_DECLARE_LVL2_PROCESSOR(ASYNC2, IPSDKIPLGlobalMeasure, GlobalEntropyMsr2d,
38  (((ipsdk)(imaproc)(attr))(InSubImg2d))
39  (((ipsdk)(imaproc)(attr))(InOptHistoMsrParams))
40  (((ipsdk)(imaproc)(attr))(OutGlobalEntropyResult)))
41 
42 // methods
43 public:
44 
45 protected:
46 
48  void clearIntermediateData();
49 
52  core::ExecResult postProcess();
53 
54  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
55  const core::BasePriority& priority,
56  core::ActionProviderPtr& pProvider);
57  processor::RetrievalResult histo(const core::BasePriority& priority, core::ActionProviderPtr& pProvider, const attr::HistoMsrParamsConstPtr pHistoPrms);
58 
59 // attributes
60 protected:
63 
65  attr::HistogramDataPtr _pHistoPtr;
66 
67 };
68 
71 
72 } // end of namespace glbmsr
73 } // end of namespace imaproc
74 } // end of namespace ipsdk
75 
76 #endif // __IPSDKIPLGLOBALMEASURE_GLOBALENTROPYMSR2DLVL2_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL2_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
boost::shared_ptr< const HistoMsrParams > HistoMsrParamsConstPtr
shared pointer to const HistoMsrParams
Definition: HistoMsrParams.h:212
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
Definition of import/export macro for library.
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