IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
MaskImgLvl1.h
1 // MaskImgLvl1.h:
3 // --------------
4 //
16 
17 #ifndef __IPSDKIPLLOGICAL_MASKIMGLVL1_H__
18 #define __IPSDKIPLLOGICAL_MASKIMGLVL1_H__
19 
24 
25 // Attributes headers
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InMaskImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InOptMaskMode.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
30 
31 namespace ipsdk {
32 namespace imaproc {
33 namespace logic {
34 
37 
38 // declare processor class
39 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLLogical, MaskImg,
40  (ipsdk::processor::If(ipsdk::imaproc::is2d(_pInMaskImg),
41  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_2d, _pInImg, _pInMaskImg),
42  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_3d, _pInImg, _pInMaskImg)))
43  && ipsdk::imaproc::matchSize(_pInImg, _pOutImg)
44  && ipsdk::imaproc::matchBufferType(_pInImg, _pOutImg),
45  (((ipsdk)(imaproc)(attr))(InImg))
46  (((ipsdk)(imaproc)(attr))(InMaskImg))
47  (((ipsdk)(imaproc)(attr))(InOptMaskMode))
48  (((ipsdk)(imaproc)(attr))(OutImg)(ipsdk::imaproc::duplicateInOut)(_pInImg)))
49 
50 // methods
51 public:
52 
53 protected:
54  processor::RetrievalResult mask2d(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
55  processor::RetrievalResult mask3d(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
56 
57 // attributes
58 protected:
59 
60 };
61 
64 
65 } // end of namespace logic
66 } // end of namespace imaproc
67 } // end of namespace ipsdk
68 
69 #endif // __IPSDKIPLLOGICAL_MASKIMGLVL1_H__
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
Definition of import/export macro for library.
processor::OutputInitializerPtr duplicateInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
IPSDKBASEPROCESSING_API RulePtr If(const RulePtr &pPredicate, const RulePtr &pRuleTrue)