IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
MaskImgImgLvl1.h
1 // MaskImgImgLvl1.h:
3 // -----------------
4 //
19 
20 #ifndef __IPSDKIPLLOGICAL_MASKIMGIMGLVL1_H__
21 #define __IPSDKIPLLOGICAL_MASKIMGIMGLVL1_H__
22 
26 
27 // Attributes headers
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg1.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg2.h>
30 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InMaskImg.h>
31 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
32 
33 namespace ipsdk {
34 namespace imaproc {
35 namespace logic {
36 
39 
40 // declare processor class
41 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLLogical, MaskImgImg,
42  (ipsdk::processor::If(ipsdk::imaproc::is2d(_pInMaskImg),
43  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_2d, _pInImg1, _pInMaskImg),
44  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_3d, _pInImg1, _pInMaskImg)))
45  && ipsdk::imaproc::matchSize(_pInImg1, _pInImg2, _pOutImg)
46  && ipsdk::imaproc::matchBufferType(_pInImg1, _pInImg2, _pOutImg),
47  (((ipsdk)(imaproc)(attr))(InImg1))
48  (((ipsdk)(imaproc)(attr))(InImg2))
49  (((ipsdk)(imaproc)(attr))(InMaskImg))
50  (((ipsdk)(imaproc)(attr))(OutImg)(ipsdk::imaproc::duplicateInOut)(_pInImg1)))
51 
52 // methods
53 public:
54 
55 // attributes
56 protected:
57  processor::RetrievalResult mask2d(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
58  processor::RetrievalResult mask3d(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
59 
60 };
61 
64 
65 } // end of namespace logic
66 } // end of namespace imaproc
67 } // end of namespace ipsdk
68 
69 #endif // __IPSDKIPLLOGICAL_MASKIMGIMGLVL1_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)