IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HistogramMaskMsr3dLvl2.h
1 // HistogramMaskMsr3dLvl2.h:
3 // ---------------------
4 //
15 
16 #ifndef __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR3DLVL2_H__
17 #define __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR3DLVL2_H__
18 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptHistoMsrParams.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutHistogram.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/SubImage/Input/3d/InSubImg3d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/SubImage/Input/3d/InSubMaskImg3d.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace glbmsr {
31 
32 class StatsMaskMsr3dLvl2;
33 
36 
37 // declare processor class
38 IPSDK_DECLARE_LVL2_PROCESSOR(ASYNC2, IPSDKIPLGlobalMeasure, HistogramMaskMsr3d,
39  ipsdk::imaproc::matchSize(_pInSubImg3d, _pInSubMaskImg3d) &&
40  (ipsdk::processor::If(ipsdk::processor::isSet(_pInOptHistoMsrParams),
41  ipsdk::imaproc::matchImageRange<ipsdk::imaproc::attr::HistoMsrParams::Min>(_pInSubImg3d, _pInOptHistoMsrParams) &&
42  ipsdk::imaproc::matchImageRange<ipsdk::imaproc::attr::HistoMsrParams::Max>(_pInSubImg3d, _pInOptHistoMsrParams) &&
43  ipsdk::processor::isGreater<ipsdk::imaproc::attr::HistoMsrParams::BinWidth>(_pInOptHistoMsrParams, 0),
45  (((ipsdk)(imaproc)(attr))(InSubImg3d))
46  (((ipsdk)(imaproc)(attr))(InSubMaskImg3d))
47  (((ipsdk)(imaproc)(attr))(InOptHistoMsrParams))
48  (((ipsdk)(imaproc)(attr))(OutHistogram)))
49 
50 // methods
51 public:
52 
53 protected:
55  processor::RetrievalResult retrieveLastProvider(const core::BasePriority& priority,
56  core::ActionProviderPtr& pProvider);
57 
60  core::ExecResult postProcess();
61 
64  ipUInt32 getHistoNbClasses(ipReal64 fMin, ipReal64 fMax, ipReal64 fBinWidth) const;
65 
67  void clearIntermediateData();
68 
69 // attributes
70 protected:
71  // declaration of dispatch results collection
72  IPSDK_DECLARE_DYNAMIC_RESULT_COLL(OutHistogram, OutHistogramColl);
73 
75  boost::shared_ptr<glbmsr::StatsMaskMsr3dLvl2> _pStatsMaskMsr3dLvl2;
76 
77 };
78 
81 
82 } // end of namespace glbmsr
83 } // end of namespace imaproc
84 } // end of namespace ipsdk
85 
86 #endif // __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR3DLVL2_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL2_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
IPSDKBASEPROCESSING_API RulePtr none()
double ipReal64
ProcessingResult< eExecutionResult > ExecResult
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type isSet(const boost::shared_ptr< AttributeType > &pAttribute)
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
#define IPSDK_DECLARE_DYNAMIC_RESULT_COLL(AttributeType, CollType)
IPSDKBASEPROCESSING_API RulePtr If(const RulePtr &pPredicate, const RulePtr &pRuleTrue)
uint32_t ipUInt32