IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
HistogramData.h
1 // HistogramData.h:
3 // ----------------
4 //
15 
16 #ifndef __IPSDKIPLATTRIBUTES_HISTOGRAMDATA_H__
17 #define __IPSDKIPLATTRIBUTES_HISTOGRAMDATA_H__
18 
23 
24 namespace ipsdk {
25 namespace imaproc {
26 namespace attr {
27 
33 
34 IPSDK_DECLARE_NODE_DATA(IPSDKIPLAttributes, HistogramData,
35  ((LEAF)(Min)(ipsdk::ipReal64))
36  ((LEAF)(Max)(ipsdk::ipReal64))
37  ((LEAF)(BinWidth)(ipsdk::ipReal64))
38  ((LEAF_COLL)(Frequencies)(ipsdk::ipUInt64)))
39 
40 public:
42  ipsdk::ipReal64 getRange() const;
43 
47  ipsdk::ipReal64 getBinMin(const ipUInt32 nBinIdx) const;
48 
52  ipsdk::ipReal64 getBinMax(const ipUInt32 nBinIdx) const;
53 
57  ipsdk::ipReal64 getBinMean(const ipUInt32 nBinIdx) const;
58 
62  ipsdk::ipReal64 getBinRange(const ipUInt32 nBinIdx) const;
63 
65  ipsdk::ipUInt32 getNbClasses() const;
66 
69  ipsdk::Real64Vector getBinMinColl() const;
70 
73  ipsdk::Real64Vector getBinMaxColl() const;
74 
77  ipsdk::Real64Vector getBinMeanColl() const;
78 
81  ipsdk::Real64Vector getBinRangeColl() const;
82 
84  ipsdk::ipUInt64 getPopulation() const;
85 
87  operator ipsdk::math::HistogramPtr() const;
88 };
89 
92 
95 typedef boost::shared_ptr<ipsdk::imaproc::attr::HistogramData> HistogramDataPtr;
96 
99 typedef boost::shared_ptr<const ipsdk::imaproc::attr::HistogramData> HistogramDataConstPtr;
100 
103 
108 exportToCsv(const boost::filesystem::path& filePath,
109  const ipsdk::imaproc::attr::HistogramData& histogramData);
110 
113 
114 } // end of namespace attr
115 } // end of namespace imaproc
116 } // end of namespace ipsdk
117 
118 #endif // __IPSDKIPLATTRIBUTES_HISTOGRAMDATA_H__
#define IPSDK_DECLARE_NODE_DATA(libraryName, className, childSeq)
std::vector< ipReal64 > Real64Vector
uint64_t ipUInt64
boost::shared_ptr< const ipsdk::imaproc::attr::HistogramData > HistogramDataConstPtr
shared pointer to const ipsdk::imaproc::HistogramData
Definition: HistogramData.h:235
IPSDKMATH_API void exportToCsv(const boost::filesystem::path &filePath, const ipsdk::math::BaseHistogram &histogram)
double ipReal64
boost::shared_ptr< ipsdk::imaproc::attr::HistogramData > HistogramDataPtr
shared pointer to ipsdk::imaproc::HistogramData
Definition: HistogramData.h:231
results computed from a histogram measure
Definition: HistogramData.h:60
Definition of import/export macro for library.
#define IPSDKIPLATTRIBUTES_API
Import/Export macro for library IPSDKIPLAttributes.
Definition: IPSDKIPLAttributesExports.h:25
boost::shared_ptr< ipsdk::math::BaseHistogram > HistogramPtr
uint32_t ipUInt32