IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AdaptiveThresholdMean3dImgLvl3.h
1 // AdaptiveThresholdMean3dImgLvl3.h:
3 // ---------------------------------
4 //
14 
15 #ifndef __IPSDKIPLBINARIZATION_ADAPTIVETHRESHOLDMEAN3DIMGLVL3_H__
16 #define __IPSDKIPLBINARIZATION_ADAPTIVETHRESHOLDMEAN3DIMGLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/InZStrip3d.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/OutBinZStrip3d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3dWithKernel/InKnlZStrip3d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InHalfKnlSize.h>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 namespace bin {
30 
33 
34 // declare processing algorithm
35 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLBinarization, AdaptiveThresholdMean3dImg,
36  ipsdk::imaproc::matchSize(_pInKnlZStrip3d, _pOutBinZStrip3d),
37  (((ipsdk)(imaproc)(attr))(InKnlZStrip3d))
38  (((ipsdk)(imaproc)(attr))(InZStrip3d))
39  (((ipsdk)(imaproc)(attr))(InHalfKnlSize))
40  (((ipsdk)(imaproc)(attr))(OutBinZStrip3d)))
41 
42  // implementation of image processing data identifier retrieval method
43  // for function selector usage
44  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InKnlZStrip3d)));
45 
46  // declaration of parsed data during processing
47  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InKnlZStrip3d))
48  ((LINESTRIP)(InZStrip3d))
49  ((LINESTRIP)(OutBinZStrip3d)));
50 
51 // methods
52 public:
53 
54 protected:
58 
60  template <typename BufType,
61  ipsdk::eInstructionSet::domain IS>
62  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
63 
64 // attributes
65 protected:
69  FragHybridBufferPtr _pInitialXSum;
70  FragHybridBufferPtr _pMainXSum;
71  FragHybridBufferPtr _pFinalXSum;
73 
77  FragHybridBufferPtr _pInitialXYSum;
78  FragHybridBufferPtr _pMainXYSum;
79  FragHybridBufferPtr _pFinalXYSum;
81 
85  HybridBufferPtr _pInitialXYZSum;
86  HybridBufferPtr _pMainXYZSum;
87  HybridBufferPtr _pFinalXYZSum;
89 
90 };
91 
94 
95 } // end of namespace bin
96 } // end of namespace imaproc
97 } // end of namespace ipsdk
98 
99 #endif // __IPSDKIPLBINARIZATION_ADAPTIVETHRESHOLDMEAN3DIMGLVL3_H__
boost::shared_ptr< FragHybridBuffer > FragHybridBufferPtr
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_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)
boost::shared_ptr< HybridBuffer > HybridBufferPtr