IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HistogramMsr3dLvl1.h
1 // HistogramMsr3dLvl1.h:
3 // ---------------------
4 //
14 
15 #ifndef __IPSDKIPLGLOBALMEASURE_HISTOGRAMMSR3DLVL1_H__
16 #define __IPSDKIPLGLOBALMEASURE_HISTOGRAMMSR3DLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOptHistoMsrParams.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutPIHistogram.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/3d/InImg3d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InOutHistogram.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace glbmsr {
31 
34 
35 // declare processor class
36 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLGlobalMeasure, HistogramMsr3d,
37  ipsdk::imaproc::matchImagePlans(_pOutPIHistogram, _pInImg3d, eImagePlansMatchPolicy::eIPMP_CT) &&
38  (ipsdk::processor::ifIsSet(_pInOptHistoMsrParams,
39  ipsdk::imaproc::matchImageRange<ipsdk::imaproc::attr::HistoMsrParams::Min>(_pInImg3d, _pInOptHistoMsrParams) &&
40  ipsdk::imaproc::matchImageRange<ipsdk::imaproc::attr::HistoMsrParams::Max>(_pInImg3d, _pInOptHistoMsrParams) &&
41  ipsdk::processor::isGreater<ipsdk::imaproc::attr::HistoMsrParams::BinWidth>(_pInOptHistoMsrParams, 0))),
42  (((ipsdk)(imaproc)(attr))(InImg3d))
43  (((ipsdk)(imaproc)(attr))(InOptHistoMsrParams))
44  (((ipsdk)(imaproc)(attr))(OutPIHistogram)(ipsdk::imaproc::fromImageButVolume)(_pInImg3d)))
45 
46 // methods
47 public:
48 
49 protected:
50 
51 // attributes
52 protected:
53 
54 };
55 
58 
59 } // end of namespace glbmsr
60 } // end of namespace imaproc
61 } // end of namespace ipsdk
62 
63 #endif // __IPSDKIPLGLOBALMEASURE_HISTOGRAMMSR3DLVL1_H__
processor::OutputInitializerPtr fromImageButVolume(const boost::shared_ptr< OutputAttributeType > &pOutputAttribute, const ImageAttributeConstPtr &pInputAttribute)
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
Definition of import/export macro for library.