IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AreaPercent2dMsrLvl2.h
1 // AreaPercent2dMsrLvl2.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIPLGLOBALMEASURE_AREAPERCENT2DMSRLVL2_H__
16 #define __IPSDKIPLGLOBALMEASURE_AREAPERCENT2DMSRLVL2_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutValues.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/SubImage/Input/2d/InSubBinLabImg2d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/SubImage/Input/2d/Optional/InOptMaskSubImg2d.h>
25 
26 namespace ipsdk {
27 namespace imaproc {
28 namespace glbmsr {
29 
32 
33 // declare processor class
34 IPSDK_DECLARE_LVL2_PROCESSOR(ASYNC1, IPSDKIPLGlobalMeasure, AreaPercent2dMsr,
35  ipsdk::processor::If(ipsdk::processor::isSet(_pInOptMaskSubImg2d),
36  ipsdk::imaproc::matchSize(_pInSubBinLabImg2d, _pInOptMaskSubImg2d),
38  (((ipsdk)(imaproc)(attr))(InSubBinLabImg2d))
39  (((ipsdk)(imaproc)(attr))(InOptMaskSubImg2d))
40  (((ipsdk)(imaproc)(attr))(OutValues)))
41 
42 // methods
43 public:
44 
45 protected:
46 
49  ipsdk::core::ExecResult postProcess();
50 
52  void clearIntermediateData();
53 
54 // attributes
55 protected:
56  // declaration of dispatch results collection
57  IPSDK_DECLARE_DYNAMIC_RESULT_COLL(OutValues, OutValuesColl);
58 
59 };
60 
63 
64 } // end of namespace glbmsr
65 } // end of namespace imaproc
66 } // end of namespace ipsdk
67 
68 #endif // __IPSDKIPLGLOBALMEASURE_AREAPERCENT2DMSRLVL2_H__
#define IPSDK_DECLARE_LVL2_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
IPSDKBASEPROCESSING_API RulePtr none()
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type isSet(const boost::shared_ptr< AttributeType > &pAttribute)
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)