IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LocalEntropy2dImgLvl3.h
1 // LocalEntropy2dImgLvl3.h:
3 // --------------------
4 //
14 
15 #ifndef __IPSDKIPLSTATS_LOCALENTROPY2DIMGLVL3_H__
16 #define __IPSDKIPLSTATS_LOCALENTROPY2DIMGLVL3_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/Value/InNbClasses.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2dWithKernel/InKnlYStrip2d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutYStrip2d.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace stats {
31 
34 
35 // declare processing algorithm
36 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLStats, LocalEntropy2dImg,
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 
58 
59 protected:
61  template <typename BufInType, typename BufOutType,
62  ipsdk::eInstructionSet::domain IS>
63  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
64 
65 // attributes
66 protected:
69  FragHybridBufferPtr _pInitialNorm;
70  FragHybridBufferPtr _pMainNorm;
71  FragHybridBufferPtr _pFinalNorm;
72  FragHybridBufferPtr _pInitialColHisto;
73  FragHybridBufferPtr _pMainColHisto;
74  FragHybridBufferPtr _pFinalColHisto;
75  FragHybridBufferPtr _pInitialKnlHisto;
76  FragHybridBufferPtr _pMainKnlHisto;
77  FragHybridBufferPtr _pFinalKnlHisto;
79 };
80 
83 
84 } // end of namespace stats
85 } // end of namespace imaproc
86 } // end of namespace ipsdk
87 
88 #endif // __IPSDKIPLSTATS_LOCALENTROPY2DIMGLVL3_H__
boost::shared_ptr< FragHybridBuffer > FragHybridBufferPtr
ipsdk::core::ExecResult preProcess()
method called before processing
ProcessingResult< eExecutionResult > ExecResult
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)