IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
GreyReconstruction3dImgLvl3.h
1 // GreyReconstruction3dImgLvl3.h:
3 // ------------------------------
4 //
14 
15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_GREYRECONSTRUCTION3DIMGLVL3_H__
16 #define __IPSDKIPLADVANCEDMORPHOLOGY_GREYRECONSTRUCTION3DIMGLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/InZStrip3d.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/InOptPreviousZStrip3d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InLocalExtremumType.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutNbModifiedPixels.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/InOutZStrip3d.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace advmorpho {
31 
34 
35 // declare processing algorithm
36 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLAdvancedMorphology, GreyReconstruction3dImg,
37  (ipsdk::imaproc::matchSizeAndType(_pInZStrip3d, _pInOutZStrip3d)),
38  (((ipsdk)(imaproc)(attr))(InZStrip3d))
39  (((ipsdk)(imaproc)(attr))(InOptPreviousZStrip3d))
40  (((ipsdk)(imaproc)(attr))(InLocalExtremumType))
41  (((ipsdk)(imaproc)(attr))(OutNbModifiedPixels))
42  (((ipsdk)(imaproc)(attr))(InOutZStrip3d)))
43 
44  // implementation of image processing data identifier retrieval method
45  // for function selector usage
46  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InZStrip3d)));
47 
48  // declaration of parsed data during processing
49  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InZStrip3d))
50  ((LINESTRIP)(InOutZStrip3d)));
51 
52 // methods
53 public:
54 
55 protected:
57  template <typename BufType,
58  ipsdk::eInstructionSet::domain IS>
59  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
60 
63  template <typename BufType,
64  typename Operator,
65  ipsdk::eInstructionSet::domain IS>
66  void specificProcessFunction(const ipsdk::processor::ProcessingInfo& info);
67 
69  template <typename BufType,
70  typename Operator,
71  ipsdk::eInstructionSet::domain IS>
72  void initPreviousData();
73 
75  template <typename BufType,
76  typename Operator,
77  ipsdk::eInstructionSet::domain IS>
78  void updatePreviousRowData(const ipUInt64 curRowOffset);
79 
81  template <typename BufType,
82  typename Operator,
83  ipsdk::eInstructionSet::domain IS>
84  void updatePreviousPlanData();
85 
87  void clearIntermediateData();
88 
89 // attributes
90 protected:
92  ipUInt64 _alignedRowNbData;
93 
95  ipUInt64 _sizeX;
96 
98  ipUInt64 _sizeY;
99 
101  boost::scoped_array<ipUInt8> _pPrevPlanGreyBuf;
102 
104  boost::scoped_array<ipUInt8> _pCurPlanGreyBuf;
105 
107  boost::scoped_array<ipUInt8> _pPrevPlanBinBuf;
108 
110  boost::scoped_array<ipUInt8> _pCurPlanBinBuf;
111 
113  ipReal64 _usedBorderValue;
114 };
115 
118 
119 } // end of namespace advmorpho
120 } // end of namespace imaproc
121 } // end of namespace ipsdk
122 
123 #endif // __IPSDKIPLADVANCEDMORPHOLOGY_GREYRECONSTRUCTION3DIMGLVL3_H__
Definition of import/export macro for library.
uint64_t ipUInt64
double ipReal64
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)