IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
GreyInertiaMsrResults.h
1 // GreyInertiaMsrResults.h:
3 // ------------------------
4 //
15 
16 #ifndef __IPSDKIPLSHAPEANALYSIS_GREYINERTIAMSRRESULTS_H__
17 #define __IPSDKIPLSHAPEANALYSIS_GREYINERTIAMSRRESULTS_H__
18 
19 // suppression warning
20 // warning C4251: 'ipsdk::imaproc::shape::analysis::GreyInertiaMsrResults::_coll' : class 'std::vector<T>' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::shape::analysis::GreyInertiaMsrResults'
21 #pragma warning (push)
22 #pragma warning (disable : 4251)
23 
25 #include <IPSDKIPL/IPSDKIPLShapeAnalysis/Measure/Intensity/Inertia/GreyInertia/GreyInertiaData.h>
26 #include <IPSDKBaseShapeAnalysis/Measure/Result/BaseCustomMeasureResult.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace shape {
31 namespace analysis {
32 
35 
37 {
38  // declare serial class
40 
41 // predefined public type
42 public:
45 
47  typedef std::vector<ValueType> CollType;
48 
50  typedef std::vector<CollType> ColorCollType;
51 
52 public:
58 
59 // methods
60 public:
65  const CollType& getColl(const ipsdk::ipUInt64 cPlanIdx = 0) const;
66  CollType& getColl(const ipsdk::ipUInt64 cPlanIdx = 0);
68 
69 protected:
71  void initDerived(const ipsdk::ipUInt64 nbColorPlans,
72  const ipsdk::ipUInt64 nbEntities);
73 
76  void collectResultsDerived(const ipsdk::ipUInt64 resultStartIndex,
77  const ipsdk::shape::analysis::BaseMeasureResult& baseSubResults);
78  void collectResultsDerived(const ipsdk::UInt64Vector& subDataIdxColl,
79  const ipsdk::shape::analysis::BaseMeasureResult& baseSubResults);
81 
84  void extractResultsDerived(const ipsdk::ipUInt64 resultStartIndex,
85  const ipsdk::shape::analysis::BaseMeasureResult& baseMainResults);
86  void extractResultsDerived(const ipsdk::UInt64Vector& mainDataIdxColl,
87  const ipsdk::shape::analysis::BaseMeasureResult& baseMainResults);
89 
91  void clearDerived();
92 
93 // attributes
94 protected:
97 };
98 
101 
102 } // end of namespace analysis
103 } // end of namespace shape
104 } // end of namespace imaproc
105 } // end of namespace ipsdk
106 
107 #pragma warning (pop)
108 
109 #endif // __IPSDKIPLSHAPEANALYSIS_GREYINERTIAMSRRESULTS_H__
#define IPSDK_DECLARE_SERIAL_WITH_COPY(libraryName, className)
uint64_t ipUInt64
ColorCollType _coll
result collection associated to object
Definition: GreyInertiaMsrResults.h:96
std::vector< ipUInt64 > UInt64Vector
Definition: GreyInertiaData.h:29
Definition of import/export macro for library.
GreyInertiaData ValueType
measure type associated to object
Definition: GreyInertiaMsrResults.h:44
std::vector< CollType > ColorCollType
color (by color plan) collection type associated to object
Definition: GreyInertiaMsrResults.h:50
std::vector< ValueType > CollType
collection type associated to object
Definition: GreyInertiaMsrResults.h:47
Measurement results object for measure GreyInertia.
Definition: GreyInertiaMsrResults.h:36
#define IPSDKIPLSHAPEANALYSIS_API
Import/Export macro for library IPSDKIPLShapeAnalysis.
Definition: IPSDKIPLShapeAnalysisExports.h:25