IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HistogramMaskMsr3dLvl3.h
1 // HistogramMaskMsr3dLvl3.h:
3 // ---------------------
4 //
15 
16 #ifndef __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR3DLVL3_H__
17 #define __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR3DLVL3_H__
18 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutHistogram.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/InZStrip3d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStrip3d/InMaskZStrip3d.h>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 namespace glbmsr {
30 
33 
34 // declare processing algorithm
35 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLGlobalMeasure, HistogramMaskMsr3d,
36  ((ipsdk::imaproc::matchStripRange<ipsdk::imaproc::attr::HistogramData::Min>(_pInZStrip3d, _pOutHistogram)) &&
37  (ipsdk::imaproc::matchStripRange<ipsdk::imaproc::attr::HistogramData::Max>(_pInZStrip3d, _pOutHistogram)) &&
38  (ipsdk::processor::isGreater<ipsdk::imaproc::attr::HistogramData::BinWidth>(_pOutHistogram, 0)) &&
39  ((ipsdk::imaproc::bufferType(_pInZStrip3d, ipsdk::image::eImageBufferType::eIBT_Real32)) ||
40  (ipsdk::processor::isGreaterOrEqual<ipsdk::imaproc::attr::HistogramData::BinWidth>(_pOutHistogram, 1)))),
41  (((ipsdk)(imaproc)(attr))(InZStrip3d))
42  (((ipsdk)(imaproc)(attr))(InMaskZStrip3d))
43  (((ipsdk)(imaproc)(attr))(OutHistogram)))
44 
45  // implementation of image processing data identifier retrieval method
46  // for function selector usage
47  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InZStrip3d)));
48 
49  // declaration of parsed data during processing
50  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((RAWSTRIP)(InZStrip3d))
51  ((RAWSTRIP)(InMaskZStrip3d)));
52 
53 // methods
54 public:
55 
56 protected:
57 
59  template <typename BufType,
60  ipsdk::eInstructionSet::domain IS>
61  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
62 
63 // attributes
64 protected:
65 
66 };
67 
70 
71 } // end of namespace glbmsr
72 } // end of namespace imaproc
73 } // end of namespace ipsdk
74 
75 #endif // __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR3DLVL3_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)