IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KDEDataSet.h
1 // KDEDataSet.h:
3 // -------------
4 //
15 
16 #ifndef __IPSDKIPLATTRIBUTES_KDEDATASET_H__
17 #define __IPSDKIPLATTRIBUTES_KDEDATASET_H__
18 
21 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/HistogramData.h>
22 
23 namespace ipsdk {
24 namespace imaproc {
25 namespace attr {
26 
32 
33 IPSDK_DECLARE_NODE_DATA(IPSDKIPLAttributes, KDEDataSet,
34  ((LEAF_COLL)(ImgValues)(ipsdk::ipReal64))
35  ((LEAF)(Bandwidth)(ipsdk::ipReal64)))
36 };
37 
40 
43 typedef boost::shared_ptr<ipsdk::imaproc::attr::KDEDataSet> KDEDataSetPtr;
44 
47 typedef boost::shared_ptr<const ipsdk::imaproc::attr::KDEDataSet> KDEDataSetConstPtr;
48 
51 
56 computeDensity(const KDEDataSet& kdeDataSet,
57  const ipReal64 x);
58 
66 generateHistogram(const KDEDataSet& kdeDataSet,
67  const ipsdk::ipReal64 minValue,
68  const ipsdk::ipReal64 maxValue,
69  const ipsdk::ipReal64 binWidth,
70  const ipUInt64 globalPopulation);
71 
74 
75 } // end of namespace attr
76 } // end of namespace imaproc
77 } // end of namespace ipsdk
78 
79 #endif // __IPSDKIPLATTRIBUTES_KDEDATASET_H__
boost::shared_ptr< ipsdk::imaproc::attr::KDEDataSet > KDEDataSetPtr
shared pointer to ipsdk::imaproc::attr::KDEDataSet
Definition: KDEDataSet.h:143
#define IPSDK_DECLARE_NODE_DATA(libraryName, className, childSeq)
uint64_t ipUInt64
double ipReal64
data set associated to a kernel density estimator
Definition: KDEDataSet.h:55
boost::shared_ptr< ipsdk::imaproc::attr::HistogramData > HistogramDataPtr
shared pointer to ipsdk::imaproc::HistogramData
Definition: HistogramData.h:231
IPSDKIPLATTRIBUTES_API ipReal64 computeDensity(const KDEDataSet &kdeDataSet, const ipReal64 x)
function allowing to compute a density at a given point from a KDEDataSet
Definition of import/export macro for library.
IPSDKIPLATTRIBUTES_API ipsdk::imaproc::attr::HistogramDataPtr generateHistogram(const KDEDataSet &kdeDataSet, const ipsdk::ipReal64 minValue, const ipsdk::ipReal64 maxValue, const ipsdk::ipReal64 binWidth, const ipUInt64 globalPopulation)
function allowing to generate an histogram from a KDEDataSet
#define IPSDKIPLATTRIBUTES_API
Import/Export macro for library IPSDKIPLAttributes.
Definition: IPSDKIPLAttributesExports.h:25
boost::shared_ptr< const ipsdk::imaproc::attr::KDEDataSet > KDEDataSetConstPtr
shared pointer to const ipsdk::imaproc::attr::KDEDataSet
Definition: KDEDataSet.h:147