IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HistogramMaskMsr2dLvl3.h
1 // HistogramMaskMsr2dLvl3.h:
3 // ---------------------
4 //
15 
16 #ifndef __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR2DLVL3_H__
17 #define __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR2DLVL3_H__
18 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutHistogram.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InMaskYStrip2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InYStrip2d.h>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 namespace glbmsr {
30 
33 
34 // declare processing algorithm
35 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLGlobalMeasure, HistogramMaskMsr2d,
36  ((ipsdk::imaproc::matchStripRange<ipsdk::imaproc::attr::HistogramData::Min>(_pInYStrip2d, _pOutHistogram)) &&
37  (ipsdk::imaproc::matchStripRange<ipsdk::imaproc::attr::HistogramData::Max>(_pInYStrip2d, _pOutHistogram)) &&
38  (ipsdk::processor::isGreater<ipsdk::imaproc::attr::HistogramData::BinWidth>(_pOutHistogram, 0)) &&
39  ((ipsdk::imaproc::bufferType(_pInYStrip2d, ipsdk::image::eImageBufferType::eIBT_Real32)) ||
40  (ipsdk::processor::isGreaterOrEqual<ipsdk::imaproc::attr::HistogramData::BinWidth>(_pOutHistogram, 1)))),
41  (((ipsdk)(imaproc)(attr))(InYStrip2d))
42  (((ipsdk)(imaproc)(attr))(InMaskYStrip2d))
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)(InYStrip2d)));
48 
49  // declaration of parsed data during processing
50  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((RAWSTRIP)(InYStrip2d))
51  ((RAWSTRIP)(InMaskYStrip2d)));
52 
53 // methods
54 public:
55 
56 protected:
58  template <typename BufType,
59  ipsdk::eInstructionSet::domain IS>
60  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
61 
62 // attributes
63 protected:
64 
65 };
66 
69 
70 } // end of namespace glbmsr
71 } // end of namespace imaproc
72 } // end of namespace ipsdk
73 
74 #endif // __IPSDKIPLGLOBALMEASURE_HISTOGRAMMASKMSR2DLVL3_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)