IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HitAndMiss3dImgLvl3.h
1 // HitAndMiss3dImgLvl3.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKIPLBASICMORPHOLOGY_HITANDMISS3DIMGLVL3_H__
16 #define __IPSDKIPLBASICMORPHOLOGY_HITANDMISS3DIMGLVL3_H__
17 
20 #include <IPSDKBaseData/Pattern/OffsetXYZ.h>
21 #include <vector>
22 #include <boost/scoped_array.hpp>
23 
24 // Attributes headers
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/OutBinZStrip3d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3dWithKernel/InBinKnlZStrip3d.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/StructuringElement/InSEXYZ1.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/StructuringElement/InSEXYZ2.h>
29 
30 namespace ipsdk {
31 namespace imaproc {
32 namespace morpho {
33 
36 
37 // declare processing algorithm
38 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLBasicMorphology, HitAndMiss3dImg,
39  ipsdk::imaproc::matchSizeAndType(_pInBinKnlZStrip3d, _pOutBinZStrip3d),
40  (((ipsdk)(imaproc)(attr))(InBinKnlZStrip3d))
41  (((ipsdk)(imaproc)(attr))(InSEXYZ1))
42  (((ipsdk)(imaproc)(attr))(InSEXYZ2))
43  (((ipsdk)(imaproc)(attr))(OutBinZStrip3d)))
44 
45  // implementation of image processing data identifier retrieval method
46  // for function selector usage
48 
49  // declaration of parsed data during processing
50  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InBinKnlZStrip3d))
51  ((LINESTRIP)(OutBinZStrip3d)));
52 
53 // methods
54 public:
55 
56 protected:
60 
62  template <ipsdk::eInstructionSet::domain IS>
63  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
64 
65 // attributes
66 protected:
68  typedef std::vector<OffsetXYZ> OffsetColl;
69 
71  OffsetColl _offsetColl_fg;
72  OffsetColl _offsetColl_bg;
73 
75  typedef boost::scoped_array<const void*> BufColl;
76 
78  BufColl _pBufColl_fg;
79  BufColl _pBufColl_bg;
80 
81 };
82 
85 
86 } // end of namespace morpho
87 } // end of namespace imaproc
88 } // end of namespace ipsdk
89 
90 #endif // __IPSDKIPLBASICMORPHOLOGY_HITANDMISS3DIMGLVL3_H__
boost::scoped_array< const void * > BufColl
collection of buffer pointers
Definition: HitAndMiss3dImgLvl3.h:194
ipsdk::core::ExecResult preProcess()
method called before processing
Definition of import/export macro for library.
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
#define IPSDK_DECLARE_NOTYPE_ALGORITHM_FUNCTION_SELECTOR()