IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BinaryReconstruction3dImgLvl1.h
1 // BinaryReconstruction3dImgLvl1.h:
3 // --------------------------------
4 //
14 
15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_BINARYRECONSTRUCTION3DIMGLVL1_H__
16 #define __IPSDKIPLADVANCEDMORPHOLOGY_BINARYRECONSTRUCTION3DIMGLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/3d/InBinImg3d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/3d/InBinMarkImg3d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Neighborhood/InOptNeighborhood3d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InOptOptimizationPolicy.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1BinImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1LabelImg.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
30 
31 namespace ipsdk {
32 namespace imaproc {
33 namespace advmorpho {
34 
37 
38 // declare processor class
39 IPSDK_DECLARE_LVL1_PROCESSOR(REP_ASYNC1, IPSDKIPLAdvancedMorphology, BinaryReconstruction3dImg,
40  ((ipsdk::imaproc::matchSize(_pInBinImg3d, _pInBinMarkImg3d)) &&
41  (ipsdk::imaproc::matchSizeAndType(_pInBinImg3d, _pOutImg)) &&
42  (ipsdk::processor::ifIsSet(_pOutOptWk1BinImg,
43  (ipsdk::imaproc::matchSize(_pInBinImg3d, _pOutOptWk1BinImg)))) &&
44  (ipsdk::processor::ifIsSet(_pOutOptWk1LabelImg,
45  (ipsdk::imaproc::matchSize(_pInBinImg3d, _pOutOptWk1LabelImg))))),
46  (((ipsdk)(imaproc)(attr))(InBinImg3d))
47  (((ipsdk)(imaproc)(attr))(InBinMarkImg3d))
48  (((ipsdk)(imaproc)(attr))(InOptNeighborhood3d))
49  (((ipsdk)(imaproc)(attr))(InOptOptimizationPolicy))
50  (((ipsdk)(imaproc)(attr))(OutOptWk1BinImg))
51  (((ipsdk)(imaproc)(attr))(OutOptWk1LabelImg))
52  (((ipsdk)(imaproc)(attr))(OutImg)(ipsdk::imaproc::duplicateInOut)(_pInBinImg3d)))
53 
54 // methods
55 public:
56 
57 protected:
58 
60  void clearIntermediateData();
61 
62  processor::RetrievalResult provideProcessor(const boost::shared_ptr<core::BaseAction>& pProcessor,
63  const core::BasePriority& priority,
64  core::ActionProviderPtr& pProvider);
65 
66  processor::RetrievalResult bitwiseAnd(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
67  processor::RetrievalResult add(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
68  processor::RetrievalResult maxPropagation(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
69  processor::RetrievalResult threshold(const core::BasePriority& priority, core::ActionProviderPtr& pProvider);
70 
71 // attributes
72 protected:
73  ipsdk::image::ImagePtr _pUsedAddImg;
74 
75 };
76 
79 
80 } // end of namespace advmorpho
81 } // end of namespace imaproc
82 } // end of namespace ipsdk
83 
84 #endif // __IPSDKIPLADVANCEDMORPHOLOGY_BINARYRECONSTRUCTION3DIMGLVL1_H__
Definition of import/export macro for library.
ProcessingResult< eRetrievalResultType > RetrievalResult
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
boost::shared_ptr< BaseImage > ImagePtr
processor::OutputInitializerPtr duplicateInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
boost::shared_ptr< BaseActionProvider > ActionProviderPtr
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