IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KeepBigShape2dImgLvl1.h
1 // KeepBigShape2dImgLvl1.h:
3 // ---------------------------------
4 //
14 
15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_KEEPBIGSHAPE2DIMGLVL1_H__
16 #define __IPSDKIPLADVANCEDMORPHOLOGY_KEEPBIGSHAPE2DIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InBinLabImg.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1LabelImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InNbFeatures.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace advmorpho {
31 
34 
35 // declare processor class
36 IPSDK_DECLARE_LVL1_PROCESSOR(REP_ASYNC1, IPSDKIPLAdvancedMorphology, KeepBigShape2dImg,
37  ((ipsdk::imaproc::matchSizeAndType(_pInBinLabImg, _pOutImg)) &&
38  (ipsdk::processor::ifIsSet(_pOutOptWk1LabelImg,
39  (ipsdk::imaproc::matchSize(_pInBinLabImg, _pOutOptWk1LabelImg))))),
40  (((ipsdk)(imaproc)(attr))(InBinLabImg))
41  (((ipsdk)(imaproc)(attr))(InNbFeatures))
42  (((ipsdk)(imaproc)(attr))(OutOptWk1LabelImg))
43  (((ipsdk)(imaproc)(attr))(OutImg)(duplicateInOut)(_pInBinLabImg)))
44 
45 // methods
46 public:
47 
48 protected:
52 
53  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
54  const core::BasePriority& priority,
55  core::ActionProviderPtr& pProvider);
56 
57  processor::RetrievalResult connectedComponent(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
58  processor::RetrievalResult keepBigShapes(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
59 
60 // attributes
61 protected:
62 
63 };
64 
67 
68 } // end of namespace advmorpho
69 } // end of namespace imaproc
70 } // end of namespace ipsdk
71 
72 #endif // __IPSDKIPLADVANCEDMORPHOLOGY_KEEPBIGSHAPE2DIMGLVL1_H__
Definition of import/export macro for library.
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
processor::OutputInitializerPtr duplicateInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
ipsdk::core::ExecResult preProcess()
method called before processing
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
boost::shared_ptr< BaseActionProvider > ActionProviderPtr