IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Convolution3dImgLvl3.h
1 // Convolution3dImgLvl3.h:
3 // --------------------
4 //
14 
15 #ifndef __IPSDKIPLFILTERING_CONVOLUTION3DIMGLVL3_H__
16 #define __IPSDKIPLFILTERING_CONVOLUTION3DIMGLVL3_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/ZStrip3dWithKernel/InKnlZStrip3d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Kernel/InKnlXYZ.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InNormalize.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/BorderPolicy/InConvolBorder3d.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/OutZStrip3d.h>
30 
31 namespace ipsdk {
32 namespace imaproc {
33 namespace filter {
34 
37 
38 // declare processing algorithm
39 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLFiltering, Convolution3dImg,
40  ipsdk::imaproc::matchSize(_pInKnlZStrip3d, _pOutZStrip3d),
41  (((ipsdk)(imaproc)(attr))(InKnlZStrip3d))
42  (((ipsdk)(imaproc)(attr))(InKnlXYZ))
43  (((ipsdk)(imaproc)(attr))(InNormalize))
44  (((ipsdk)(imaproc)(attr))(InConvolBorder3d))
45  (((ipsdk)(imaproc)(attr))(OutZStrip3d)))
46 
47  // implementation of image processing data identifier retrieval method
48  // for function selector usage
49  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InKnlZStrip3d))
50  ((STRIP)(OutZStrip3d)));
51 
52  // declaration of parsed data during processing
53  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InKnlZStrip3d))
54  ((LINESTRIP)(OutZStrip3d)));
55 
56 // methods
57 public:
58 
59 protected:
63 
65  template <typename BufInType, typename BufOutType,
66  ipsdk::eInstructionSet::domain ISFma,
67  ipsdk::eInstructionSet::domain IS>
68  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
69 
71  void clearIntermediateData();
72 
73 // attributes
74 protected:
76  typedef std::vector<OffsetXYZ> OffsetColl;
77 
79  OffsetColl _offsetColl;
80 
82  typedef std::vector<ipReal32> CoefColl;
83 
85  CoefColl _coefColl;
86 
88  typedef boost::scoped_array<const void*> BufColl;
89 
91  BufColl _pBufColl;
92 
94  boost::scoped_array<ipReal32> _pWkOutBuf;
95 };
96 
99 
100 } // end of namespace filter
101 } // end of namespace imaproc
102 } // end of namespace ipsdk
103 
104 #endif // __IPSDKIPLFILTERING_CONVOLUTION3DIMGLVL3_H__
ipsdk::core::ExecResult preProcess()
method called before processing
boost::scoped_array< const void * > BufColl
collection of buffer pointers
Definition: Convolution3dImgLvl3.h:215
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
std::vector< ipReal32 > CoefColl
collection of coefficients
Definition: Convolution3dImgLvl3.h:209
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)
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
Definition of import/export macro for library.