IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LocalExtrema3dImgLvl3.h
1 // LocalExtrema3dImgLvl3.h:
3 // ------------------------
4 //
14 
15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_LOCALEXTREMA3DIMGLVL3_H__
16 #define __IPSDKIPLADVANCEDMORPHOLOGY_LOCALEXTREMA3DIMGLVL3_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/Strip/ZStrip3d/InOptPreviousBinZStrip3d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InLocalExtremumType.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutNbModifiedPixels.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/InOutBinZStrip3d.h>
28 #include <boost/scoped_array.hpp>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace advmorpho {
33 
36 
37 // declare processing algorithm
38 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLAdvancedMorphology, LocalExtrema3dImg,
39  ipsdk::imaproc::matchSize(_pInZStrip3d, _pInOutBinZStrip3d),
40  (((ipsdk)(imaproc)(attr))(InZStrip3d))
41  (((ipsdk)(imaproc)(attr))(InOptPreviousZStrip3d))
42  (((ipsdk)(imaproc)(attr))(InOptPreviousBinZStrip3d))
43  (((ipsdk)(imaproc)(attr))(InLocalExtremumType))
44  (((ipsdk)(imaproc)(attr))(OutNbModifiedPixels))
45  (((ipsdk)(imaproc)(attr))(InOutBinZStrip3d)))
46 
47  // implementation of image processing data identifier retrieval method
48  // for function selector usage
49  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InZStrip3d)));
50 
51  // declaration of parsed data during processing
52  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InZStrip3d))
53  ((LINESTRIP)(InOutBinZStrip3d)));
54 
55 // methods
56 public:
57 
58 protected:
60  template <typename BufInType,
61  ipsdk::eInstructionSet::domain IS>
62  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
63 
66  template <typename BufInType,
67  typename Operator,
68  ipsdk::eInstructionSet::domain IS>
69  void specificProcessFunction(const ipsdk::processor::ProcessingInfo& info);
70 
72  template <typename BufInType,
73  typename Operator,
74  ipsdk::eInstructionSet::domain IS>
75  void initPreviousData();
76 
78  template <typename BufInType,
79  typename Operator,
80  ipsdk::eInstructionSet::domain IS>
81  void updatePreviousRowData(const ipUInt64 curRowOffset);
82 
84  template <typename BufInType,
85  typename Operator,
86  ipsdk::eInstructionSet::domain IS>
87  void updatePreviousPlanData();
88 
90  void clearIntermediateData();
91 
92 // attributes
93 protected:
95  ipUInt64 _alignedRowNbData;
96 
98  ipUInt64 _sizeX;
99 
101  ipUInt64 _sizeY;
102 
104  boost::scoped_array<ipUInt8> _pPrevPlanGreyBuf;
105 
107  boost::scoped_array<ipUInt8> _pCurPlanGreyBuf;
108 
110  boost::scoped_array<ipUInt8> _pPrevPlanBinBuf;
111 
113  boost::scoped_array<ipUInt8> _pCurPlanBinBuf;
114 
116  ipReal64 _usedBorderValue;
117 };
118 
121 
122 } // end of namespace advmorpho
123 } // end of namespace imaproc
124 } // end of namespace ipsdk
125 
126 #endif // __IPSDKIPLADVANCEDMORPHOLOGY_LOCALEXTREMA3DIMGLVL3_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)