IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
LocalHistogramModule3dImgLvl3.h
1 // LocalHistogramModule3dImgLvl3.h:
3 // --------------------------------
4 //
14 
15 #ifndef __IPSDKIPLSTATS_LOCALHISTOGRAMMODULE3DIMGLVL3_H__
16 #define __IPSDKIPLSTATS_LOCALHISTOGRAMMODULE3DIMGLVL3_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/ZStrip3d/OutZStrip3d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3dWithKernel/InKnlZStrip3d.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, LocalHistogramModule3dImg,
37  ipsdk::imaproc::matchSize(_pInKnlZStrip3d, _pOutZStrip3d),
38  (((ipsdk)(imaproc)(attr))(InKnlZStrip3d))
39  (((ipsdk)(imaproc)(attr))(InInputRange))
40  (((ipsdk)(imaproc)(attr))(InNbClasses))
41  (((ipsdk)(imaproc)(attr))(OutZStrip3d)))
42 
43  // implementation of image processing data identifier retrieval method
44  // for function selector usage
45  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InKnlZStrip3d))
46  ((STRIP)(OutZStrip3d)));
47 
48  // declaration of parsed data during processing
49  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InKnlZStrip3d))
50  ((LINESTRIP)(OutZStrip3d)));
51 
52 // methods
53 public:
54 
55 protected:
59 
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 _pInitialYZPlanHisto;
73  FragHybridBufferPtr _pMainYZPlanHisto;
74  FragHybridBufferPtr _pFinalYZPlanHisto;
75  FragHybridBufferPtr _pInitialYZPlanY0Histo;
76  FragHybridBufferPtr _pMainYZPlanY0Histo;
77  FragHybridBufferPtr _pFinalYZPlanY0Histo;
78  FragHybridBufferPtr _pInitialKnlHisto;
79  FragHybridBufferPtr _pMainKnlHisto;
80  FragHybridBufferPtr _pFinalKnlHisto;
82 
83 };
84 
87 
88 } // end of namespace stats
89 } // end of namespace imaproc
90 } // end of namespace ipsdk
91 
92 #endif // __IPSDKIPLSTATS_LOCALHISTOGRAMMODULE3DIMGLVL3_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)