IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KMeansResultsTypes.h
Go to the documentation of this file.
1 // KMeansResultsTypes.h:
3 // -----------------------------
4 //
14 
15 #ifndef __IPSDKIPLCLASSIFICATION_KMEANSRESULTSTYPES_H__
16 #define __IPSDKIPLCLASSIFICATION_KMEANSRESULTSTYPES_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::imaproc::classif::KMeansResults::_pClassImg' : class 'boost::shared_ptr<T>' needs to have dll-interface to be used by clients of struct 'ipsdk::imaproc::classif::KMeansResults'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
25 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/ClustersCenters.h>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 namespace classif {
30 
33 
39 {
42  KMeansResults(const image::ImagePtr& pClassesImg,
43  const attr::ClustersCentersPtr& pClustersCenters,
44  const ipReal64 compactness) :
45  _pClassesImg(pClassesImg),
46  _pClustersCenters(pClustersCenters),
47  _compactness(compactness) {}
48 
49  ~KMeansResults() {}
51 
54 
57 
60 };
61 
64 
65 } // end of namespace classif
66 } // end of namespace imaproc
67 } // end of namespace ipsdk
68 
69 #pragma warning (pop)
70 
71 #endif // __IPSDKIPLCLASSIFICATION_KMEANSRESULTSTYPES_H__
#define IPSDKIPLCLASSIFICATION_API
Import/Export macro for library IPSDKIPLClassification.
Definition: IPSDKIPLClassificationExports.h:25
image::ImagePtr _pClassesImg
image of classes
Definition: KMeansResultsTypes.h:53
boost::shared_ptr< BaseImage > ImagePtr
double ipReal64
boost::shared_ptr< ipsdk::imaproc::attr::ClustersCenters > ClustersCentersPtr
shared pointer to ipsdk::imaproc::attr::ClustersCenters
Definition: ClustersCenters.h:128
Structure allowing to encaspulate image of classes, coordinates of centers of clusters and compactnes...
Definition: KMeansResultsTypes.h:38
Definition of import/export macro for library.
attr::ClustersCentersPtr _pClustersCenters
coordinates of clusters centers
Definition: KMeansResultsTypes.h:56
ipReal64 _compactness
global compactness of clusters
Definition: KMeansResultsTypes.h:59