IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Dilate3dImgLvl1.h
1 // Dilate3dImgLvl1.h:
3 // ------------------
4 //
16 
17 #ifndef __IPSDKIPLBASICMORPHOLOGY_DILATE3DIMGLVL1_H__
18 #define __IPSDKIPLBASICMORPHOLOGY_DILATE3DIMGLVL1_H__
19 
24 
25 // Attributes headers
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/3d/InImg3d.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/StructuringElement/InSEXYZ.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1Img.h>
32 
33 namespace ipsdk {
34 namespace imaproc {
35 namespace morpho {
36 
39 
40 // declare processor class
41 IPSDK_DECLARE_LVL1_PROCESSOR(REP_ASYNC1, IPSDKIPLBasicMorphology, Dilate3dImg,
42  ((ipsdk::imaproc::matchSizeAndType(_pInImg3d, _pOutImg)) &&
43  (ipsdk::processor::ifIsSet(_pOutOptWk1Img,
44  ipsdk::imaproc::customImageProperty(_pOutOptWk1Img, matchSEMorphology(_pInImg3d, _pInSEXYZ))))),
45  (((ipsdk)(imaproc)(attr))(InImg3d))
46  (((ipsdk)(imaproc)(attr))(InSEXYZ))
47  (((ipsdk)(imaproc)(attr))(OutOptWk1Img))
48  (((ipsdk)(imaproc)(attr))(OutImg)(ipsdk::imaproc::duplicateInOut)(_pInImg3d)))
49 
50 // methods
51 public:
52 
53 protected:
57 
59  void clearIntermediateData();
60 
61 // attributes
62 protected:
64  ML3dDecomposition _knlDecomposition;
65 
67  image::ImageConstPtr _pCurInImg;
68 
70  ipUInt32 _curStep;
71 
73  eSEProcessingCase _seProcessingCase;
74 };
75 
78 
79 } // end of namespace morpho
80 } // end of namespace imaproc
81 } // end of namespace ipsdk
82 
83 #endif // __IPSDKIPLBASICMORPHOLOGY_DILATE3DIMGLVL1_H__
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
eSEProcessingCase
Enumerate describing processing case associated to a structuring element.
Definition: SEMorphologyTypes.h:32
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)
Definition of import/export macro for library.
boost::shared_ptr< const BaseImage > ImageConstPtr
Predefined types used for regular structuring element 3d decomposition.
std::vector< MLD3dElement > ML3dDecomposition
Definition: RegularSEXYZDecompositionTypes.h:52
Utility functions for morphological structuring elements processing rules management.
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
Predefined types for morphological structuring elements processing.
IPSDKIPLBASICMORPHOLOGY_API CustomCheckedImagePropertyPtr matchSEMorphology(const ImageAttributeConstPtr &pInputAttribute, const StructuringElementXYAttributeConstPtr &pSEXYAttribute)
function allowing to define rule applied on working image for structuring elements processing algorit...
uint32_t ipUInt32