IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Erode3dImgLvl1.h
1 // Erode3dImgLvl1.h:
3 // -----------------
4 //
14 
15 #ifndef __IPSDKIPLBASICMORPHOLOGY_ERODE3DIMGLVL1_H__
16 #define __IPSDKIPLBASICMORPHOLOGY_ERODE3DIMGLVL1_H__
17 
22 
23 // Attributes headers
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/3d/InImg3d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/StructuringElement/InSEXYZ.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1Img.h>
30 
31 namespace ipsdk {
32 namespace imaproc {
33 namespace morpho {
34 
37 
38 // declare processor class
39 IPSDK_DECLARE_LVL1_PROCESSOR(REP_ASYNC1, IPSDKIPLBasicMorphology, Erode3dImg,
40  ((ipsdk::imaproc::matchSizeAndType(_pInImg3d, _pOutImg)) &&
41  (ipsdk::processor::ifIsSet(_pOutOptWk1Img,
42  ipsdk::imaproc::customImageProperty(_pOutOptWk1Img, matchSEMorphology(_pInImg3d, _pInSEXYZ))))),
43  (((ipsdk)(imaproc)(attr))(InImg3d))
44  (((ipsdk)(imaproc)(attr))(InSEXYZ))
45  (((ipsdk)(imaproc)(attr))(OutOptWk1Img))
46  (((ipsdk)(imaproc)(attr))(OutImg)(ipsdk::imaproc::duplicateInOut)(_pInImg3d)))
47 
48 // methods
49 public:
50 
51 protected:
55 
57  void clearIntermediateData();
58 
59 // attributes
60 protected:
62  ML3dDecomposition _knlDecomposition;
63 
65  image::ImageConstPtr _pCurInImg;
66 
68  ipUInt32 _curStep;
69 
71  eSEProcessingCase _seProcessingCase;
72 };
73 
76 
77 } // end of namespace morpho
78 } // end of namespace imaproc
79 } // end of namespace ipsdk
80 
81 #endif // __IPSDKIPLBASICMORPHOLOGY_ERODE3DIMGLVL1_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