IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
MeanSmoothing2dMaskImgLvl3.h
1 // MeanSmoothing2dMaskImgLvl3.h:
3 // -----------------------------
4 //
14 
15 #ifndef __IPSDKIPLFILTERING_MEANSMOOTHING2DMASKIMGLVL3_H__
16 #define __IPSDKIPLFILTERING_MEANSMOOTHING2DMASKIMGLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutYStrip2d.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2dWithKernel/InBinKnlYStrip2d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2dWithKernel/InKnlYStrip2d.h>
25 
26 namespace ipsdk {
27 namespace imaproc {
28 namespace filter {
29 
32 
33 // declare processing algorithm
34 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLFiltering, MeanSmoothing2dMaskImg,
35  ipsdk::imaproc::matchSize(_pInKnlYStrip2d, _pOutYStrip2d) &&
36  ipsdk::imaproc::matchSize(_pInKnlYStrip2d, _pInBinKnlYStrip2d),
37  (((ipsdk)(imaproc)(attr))(InKnlYStrip2d))
38  (((ipsdk)(imaproc)(attr))(InBinKnlYStrip2d))
39  (((ipsdk)(imaproc)(attr))(OutYStrip2d)))
40 
41  // implementation of image processing data identifier retrieval method
42  // for function selector usage
43  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InKnlYStrip2d))
44  ((STRIP)(OutYStrip2d)));
45 
46  // declaration of parsed data during processing
47  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InKnlYStrip2d))
48  ((LINESTRIP)(InBinKnlYStrip2d))
49  ((LINESTRIP)(OutYStrip2d)));
50 
51 // methods
52 public:
53 
54 protected:
58 
60  template <typename BufInType, typename BufOutType,
61  ipsdk::eInstructionSet::domain IS>
62  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
63 
64 // attributes
65 protected:
68  FragHybridBufferPtr _pInitialXSum;
69  FragHybridBufferPtr _pMainXSum;
70  FragHybridBufferPtr _pFinalXSum;
71  FragHybridBufferPtr _pInitialXSumMask;
72  FragHybridBufferPtr _pMainXSumMask;
73  FragHybridBufferPtr _pFinalXSumMask;
75 
78  HybridBufferPtr _pInitialXYSum;
79  HybridBufferPtr _pMainXYSum;
80  HybridBufferPtr _pFinalXYSum;
81  HybridBufferPtr _pInitialXYSumMask;
82  HybridBufferPtr _pMainXYSumMask;
83  HybridBufferPtr _pFinalXYSumMask;
85 
86 };
87 
90 
91 } // end of namespace filter
92 } // end of namespace imaproc
93 } // end of namespace ipsdk
94 
95 #endif // __IPSDKIPLFILTERING_MEANSMOOTHING2DMASKIMGLVL3_H__
boost::shared_ptr< FragHybridBuffer > FragHybridBufferPtr
ipsdk::core::ExecResult preProcess()
method called before processing
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)
boost::shared_ptr< HybridBuffer > HybridBufferPtr
Definition of import/export macro for library.