IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
MeasureGlobalInfo.h
1 // MeasureGlobalInfo.h:
3 // --------------------
4 //
15 
16 #ifndef __IPSDKBASESHAPEANALYSIS_MEASUREGLOBALINFO_H__
17 #define __IPSDKBASESHAPEANALYSIS_MEASUREGLOBALINFO_H__
18 
19 // suppression warnings
20 // warning C4251: 'ipsdk::shape::analysis::MeasureGlobalInfo::_pImageGeometry' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of class 'ipsdk::shape::analysis::MeasureGlobalInfo'
21 #pragma warning (push)
22 #pragma warning (disable : 4251)
23 
26 #include <IPSDKSerialization/Engine/BaseSerializationObject.h>
28 
29 namespace ipsdk {
30 namespace shape {
31 namespace analysis {
32 
35 
37 {
38  // declare serial class
40 
41 public:
47 
48 // methods
49 public:
51  bool isInit() const;
52 
60  void init(const image::ImageGeometryConstPtr& pImageGeometry,
61  const Real64Vector& minGreyLevelColl,
62  const Real64Vector& maxGreyLevelColl);
63 
67  const image::BaseImageGeometry& getImageGeometry() const;
68 
72  bool isValidCPlanIdx(const ipUInt64 cPlanIdx) const;
73 
77  const Real64Vector& getMinGreyLevelColl() const;
78 
82  const Real64Vector& getMaxGreyLevelColl() const;
83 
87  ipReal64 getMinGreyLevel(const ipUInt64 cPlanIdx = 0) const;
88 
92  ipReal64 getMaxGreyLevel(const ipUInt64 cPlanIdx = 0) const;
93 
95  void clear();
96 
97 // attributes
98 protected:
101 
104 
107 
109  bool _bInit;
110 };
111 
114 
115 inline bool
117 {
118  return _bInit;
119 }
120 
123 
124 } // end of namespace analysis
125 } // end of namespace shape
126 } // end of namespace ipsdk
127 
128 #pragma warning (pop)
129 
130 #endif // __IPSDKBASESHAPEANALYSIS_MEASUREGLOBALINFO_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Real64Vector _maxGreyLevelColl
maximum grey level for image plan
Definition: MeasureGlobalInfo.h:106
std::vector< ipReal64 > Real64Vector
stl vector collections
Definition: BaseCollections.h:37
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
image::ImageGeometryConstPtr _pImageGeometry
shared pointer to image geometry
Definition: MeasureGlobalInfo.h:100
bool _bInit
object initialization flag
Definition: MeasureGlobalInfo.h:109
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
Definition of import/export macro for library.
Base class for image geometry.
Definition: BaseImageGeometry.h:38
#define IPSDKBASESHAPEANALYSIS_API
Import/Export macro for library IPSDKBaseShapeAnalysis.
Definition: IPSDKBaseShapeAnalysisExports.h:25
boost::shared_ptr< const BaseImageGeometry > ImageGeometryConstPtr
shared pointer to const image geometry
Definition: ImageGeometryTypes.h:59
bool isInit() const
check for object initialization
Definition: MeasureGlobalInfo.h:116
#define IPSDK_DECLARE_SERIAL_WITHOUT_COPY(libraryName, className)
macro enabling serialization on class
Definition: SerializationHdrMacro.h:79
Predefined types for shape measurement operations global informations.
Real64Vector _minGreyLevelColl
minimum grey level for image plan
Definition: MeasureGlobalInfo.h:103
Predefined base collection types for library.
Predefined types for shape measurement operations global informations.
Definition: MeasureGlobalInfo.h:36
Base class for serializable class.
Definition: BaseSerializationObject.h:33