IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HistogramMsrResults.h
1 // HistogramMsrResults.h:
3 // ----------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_HISTOGRAMMSRRESULTS_H__
17 #define __IPSDKIPLSHAPEANALYSIS_HISTOGRAMMSRRESULTS_H__
18 
20 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/HistogramData.h>
21 #include <IPSDKBaseShapeAnalysis/Measure/Result/BaseCustomMeasureResult.h>
22 
23 namespace ipsdk {
24 namespace imaproc {
25 namespace shape {
26 namespace analysis {
27 
30 
32 {
33  // declare serial class
35 
36 // predefined public type
37 public:
39  typedef boost::shared_ptr<attr::HistogramData> ValueType;
40 
42  typedef std::vector<ValueType> CollType;
43 
45  typedef std::vector<CollType> ColorCollType;
46 
47 public:
53 
54 // methods
55 public:
60  const CollType& getColl(const ipsdk::ipUInt64 cPlanIdx = 0) const;
61  CollType& getColl(const ipsdk::ipUInt64 cPlanIdx = 0);
63 
64 protected:
66  void initDerived(const ipsdk::ipUInt64 nbColorPlans,
67  const ipsdk::ipUInt64 nbEntities);
68 
71  void collectResultsDerived(const ipsdk::ipUInt64 resultStartIndex,
72  const ipsdk::shape::analysis::BaseMeasureResult& baseSubResults);
73  void collectResultsDerived(const ipsdk::UInt64Vector& subDataIdxColl,
74  const ipsdk::shape::analysis::BaseMeasureResult& baseSubResults);
76 
79  void extractResultsDerived(const ipsdk::ipUInt64 resultStartIndex,
80  const ipsdk::shape::analysis::BaseMeasureResult& baseMainResults);
81  void extractResultsDerived(const ipsdk::UInt64Vector& mainDataIdxColl,
82  const ipsdk::shape::analysis::BaseMeasureResult& baseMainResults);
84 
86  void clearDerived();
87 
88 // attributes
89 protected:
92 };
93 
96 
97 } // end of namespace analysis
98 } // end of namespace shape
99 } // end of namespace imaproc
100 } // end of namespace ipsdk
101 
102 #endif // __IPSDKIPLSHAPEANALYSIS_HISTOGRAMMSRRESULTS_H__
#define IPSDK_DECLARE_SERIAL_WITH_COPY(libraryName, className)
std::vector< CollType > ColorCollType
color (by color plan) collection type associated to object
Definition: HistogramMsrResults.h:45
std::vector< ValueType > CollType
collection type associated to object
Definition: HistogramMsrResults.h:42
uint64_t ipUInt64
std::vector< ipUInt64 > UInt64Vector
Measurement results object for measure Histogram.
Definition: HistogramMsrResults.h:31
Definition of import/export macro for library.
#define IPSDKIPLSHAPEANALYSIS_API
Import/Export macro for library IPSDKIPLShapeAnalysis.
Definition: IPSDKIPLShapeAnalysisExports.h:25
boost::shared_ptr< attr::HistogramData > ValueType
measure type associated to object
Definition: HistogramMsrResults.h:39
ColorCollType _coll
result collection associated to object
Definition: HistogramMsrResults.h:91