IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LocalEnergy2dImgLvl3.h
1 // LocalEnergy2dImgLvl3.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIPLSTATS_LOCALENERGY2DIMGLVL3_H__
16 #define __IPSDKIPLSTATS_LOCALENERGY2DIMGLVL3_H__
17 
20 #include <IPSDKBaseData/Buffer/FragHybridBuffer.h>
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InInputRange.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutYStrip2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2dWithKernel/InKnlYStrip2d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InNbClasses.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace stats {
31 
34 
35 // declare processing algorithm
36 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLStats, LocalEnergy2dImg,
37  ipsdk::imaproc::matchSize(_pInKnlYStrip2d, _pOutYStrip2d),
38  (((ipsdk)(imaproc)(attr))(InKnlYStrip2d))
39  (((ipsdk)(imaproc)(attr))(InInputRange))
40  (((ipsdk)(imaproc)(attr))(InNbClasses))
41  (((ipsdk)(imaproc)(attr))(OutYStrip2d)))
42 
43  // implementation of image processing data identifier retrieval method
44  // for function selector usage
45  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InKnlYStrip2d))
46  ((STRIP)(OutYStrip2d)));
47 
48  // declaration of parsed data during processing
49  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InKnlYStrip2d))
50  ((LINESTRIP)(OutYStrip2d)));
51 
52 // methods
53 protected:
57 
59  template <typename BufInType, typename BufOutType,
60  ipsdk::eInstructionSet::domain IS>
61  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
62 
63 // attributes
64 protected:
67  FragHybridBufferPtr _pInitialNorm;
68  FragHybridBufferPtr _pMainNorm;
69  FragHybridBufferPtr _pFinalNorm;
70  FragHybridBufferPtr _pInitialColHisto;
71  FragHybridBufferPtr _pMainColHisto;
72  FragHybridBufferPtr _pFinalColHisto;
73  FragHybridBufferPtr _pInitialKnlHisto;
74  FragHybridBufferPtr _pMainKnlHisto;
75  FragHybridBufferPtr _pFinalKnlHisto;
77 
78 };
79 
82 
83 } // end of namespace stats
84 } // end of namespace imaproc
85 } // end of namespace ipsdk
86 
87 #endif // __IPSDKIPLSTATS_LOCALENERGY2DIMGLVL3_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)