IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
AdaptiveThresholdMean2dImgLvl3.h
1 // AdaptiveThresholdMean2dImgLvl3.h:
3 // ---------------------------------
4 //
14 
15 #ifndef __IPSDKIPLBINARIZATION_ADAPTIVETHRESHOLDMEAN2DIMGLVL3_H__
16 #define __IPSDKIPLBINARIZATION_ADAPTIVETHRESHOLDMEAN2DIMGLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InYStrip2d.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutBinYStrip2d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2dWithKernel/InKnlYStrip2d.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, AdaptiveThresholdMean2dImg,
36  ipsdk::imaproc::matchSize(_pInKnlYStrip2d, _pOutBinYStrip2d),
37  (((ipsdk)(imaproc)(attr))(InKnlYStrip2d))
38  (((ipsdk)(imaproc)(attr))(InYStrip2d))
39  (((ipsdk)(imaproc)(attr))(InHalfKnlSize))
40  (((ipsdk)(imaproc)(attr))(OutBinYStrip2d)))
41 
42  // implementation of image processing data identifier retrieval method
43  // for function selector usage
44  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InKnlYStrip2d)));
45 
46  // declaration of parsed data during processing
47  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InKnlYStrip2d))
48  ((LINESTRIP)(InYStrip2d))
49  ((LINESTRIP)(OutBinYStrip2d)));
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:
68  FragHybridBufferPtr _pInitialXMean;
69  FragHybridBufferPtr _pMainXMean;
70  FragHybridBufferPtr _pFinalXMean;
72 
75  HybridBufferPtr _pInitialXYMean;
76  HybridBufferPtr _pMainXYMean;
77  HybridBufferPtr _pFinalXYMean;
79 
80 };
81 
84 
85 } // end of namespace bin
86 } // end of namespace imaproc
87 } // end of namespace ipsdk
88 
89 #endif // __IPSDKIPLBINARIZATION_ADAPTIVETHRESHOLDMEAN2DIMGLVL3_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