IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HistogramMsr3dLvl3.h
1 // HistogramMsr3dLvl3.h:
3 // ---------------------
4 //
14 
15 #ifndef __IPSDKIPLGLOBALMEASURE_HISTOGRAMMSR3DLVL3_H__
16 #define __IPSDKIPLGLOBALMEASURE_HISTOGRAMMSR3DLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutHistogram.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/InZStrip3d.h>
24 
25 namespace ipsdk {
26 namespace imaproc {
27 namespace glbmsr {
28 
31 
32 // declare processing algorithm
33 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLGlobalMeasure, HistogramMsr3d,
34  ((ipsdk::imaproc::matchStripRange<ipsdk::imaproc::attr::HistogramData::Min>(_pInZStrip3d, _pOutHistogram)) &&
35  (ipsdk::imaproc::matchStripRange<ipsdk::imaproc::attr::HistogramData::Max>(_pInZStrip3d, _pOutHistogram)) &&
36  (ipsdk::processor::isGreater<ipsdk::imaproc::attr::HistogramData::BinWidth>(_pOutHistogram, 0)) &&
37  ((ipsdk::imaproc::bufferType(_pInZStrip3d, ipsdk::image::eImageBufferType::eIBT_Real32)) ||
38  (ipsdk::processor::isGreaterOrEqual<ipsdk::imaproc::attr::HistogramData::BinWidth>(_pOutHistogram, 1)))),
39  (((ipsdk)(imaproc)(attr))(InZStrip3d))
40  (((ipsdk)(imaproc)(attr))(OutHistogram)))
41 
42  // implementation of image processing data identifier retrieval method
43  // for function selector usage
44  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InZStrip3d)));
45 
46  // declaration of parsed data during processing
47  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((RAWSTRIP)(InZStrip3d)));
48 
49 // methods
50 public:
51 
52 protected:
53 
55  template <typename BufType,
56  ipsdk::eInstructionSet::domain IS>
57  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
58 
59 // attributes
60 protected:
61 
62 };
63 
66 
67 } // end of namespace glbmsr
68 } // end of namespace imaproc
69 } // end of namespace ipsdk
70 
71 #endif // __IPSDKIPLGLOBALMEASURE_HISTOGRAMMSR3DLVL3_H__
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
Definition of import/export macro for library.
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)