IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KMeansImg.h
1 // KMeansImg.h:
3 // ------------
4 //
14 
15 #ifndef __IPSDKIPLCLASSIFICATION_KMEANSIMG_H__
16 #define __IPSDKIPLCLASSIFICATION_KMEANSIMG_H__
17 
21 
22 namespace ipsdk {
23 namespace imaproc {
24 namespace classif {
25 
26 class KMeansImgLvl1;
27 
30 
35 IPSDKIPLCLASSIFICATION_API KMeansResults
36 kMeansImg(
37  const ipsdk::image::ImageConstPtr& pInImg,
38  const ipUInt32 nbClusters);
39 
40 IPSDKIPLCLASSIFICATION_API KMeansResults
41 kMeansImg(
42  const ipsdk::image::ImageConstPtr& pInImg,
43  const ipUInt32 nbClusters,
44  const ipUInt32 nbAttempts,
45  const ipUInt32 nbMaxIterPerAttempt,
46  const ipReal64 centersShiftTol,
47  const ipsdk::image::ImagePtr& pOutClassImg);
49 
55 IPSDKIPLCLASSIFICATION_API KMeansResults
56 kMeansImg(
57  const ipsdk::image::ImageConstPtr& pInImg,
58  const ipsdk::image::ImageConstPtr& pInOptSingleGreyMaskImg,
59  const ipUInt32 nbClusters);
60 
61 IPSDKIPLCLASSIFICATION_API KMeansResults
62 kMeansImg(
63  const ipsdk::image::ImageConstPtr& pInImg,
64  const ipsdk::image::ImageConstPtr& pInOptSingleGreyMaskImg,
65  const ipUInt32 nbClusters,
66  const ipUInt32 nbAttempts,
67  const ipUInt32 nbMaxIterPerAttempt,
68  const ipReal64 centersShiftTol,
69  const ipsdk::image::ImagePtr& pOutClassImg);
71 
74 IPSDKIPLCLASSIFICATION_API boost::shared_ptr<KMeansImgLvl1>
76  const ipsdk::image::ImageConstPtr& pInImg,
77  const ipUInt32 nbClusters);
78 IPSDKIPLCLASSIFICATION_API boost::shared_ptr<KMeansImgLvl1>
80  const ipsdk::image::ImageConstPtr& pInImg,
81  const ipUInt32 nbClusters,
82  const ipUInt32 nbAttempts,
83  const ipUInt32 nbMaxIterPerAttempt,
84  const ipReal64 centersShiftTol,
85  const ipsdk::image::ImagePtr& pOutClassImg);
86 IPSDKIPLCLASSIFICATION_API boost::shared_ptr<KMeansImgLvl1>
88  const ipsdk::image::ImageConstPtr& pInImg,
89  const ipsdk::image::ImageConstPtr& pInOptSingleGreyMaskImg,
90  const ipUInt32 nbClusters);
91 IPSDKIPLCLASSIFICATION_API boost::shared_ptr<KMeansImgLvl1>
93  const ipsdk::image::ImageConstPtr& pInImg,
94  const ipsdk::image::ImageConstPtr& pInOptSingleGreyMaskImg,
95  const ipUInt32 nbClusters,
96  const ipUInt32 nbAttempts,
97  const ipUInt32 nbMaxIterPerAttempt,
98  const ipReal64 centersShiftTol,
99  const ipsdk::image::ImagePtr& pOutClassImg);
101 
104 IPSDKIPLCLASSIFICATION_API KMeansResults
105 getAsyncProcessorOutput(boost::shared_ptr<KMeansImgLvl1> pProcessor);
107 
110 
111 } // end of namespace classif
112 } // end of namespace imaproc
113 } // end of namespace ipsdk
114 
115 #endif // __IPSDKIPLCLASSIFICATION_KMEANSIMG_H__
IPSDKIPLCLASSIFICATION_API KMeansResults kMeansImg(const ipsdk::image::ImageConstPtr &pInImg, const ipUInt32 nbClusters)
wrapper function for classifies pixels of an image using k-means algorithm
IPSDKIPLCLASSIFICATION_API boost::shared_ptr< KMeansImgLvl1 > kMeansImg_async(const ipsdk::image::ImageConstPtr &pInImg, const ipUInt32 nbClusters)
asynchronous wrappers
Predefined types for KMeansImg management.
#define IPSDKIPLCLASSIFICATION_API
Import/Export macro for library IPSDKIPLClassification.
Definition: IPSDKIPLClassificationExports.h:25
boost::shared_ptr< BaseImage > ImagePtr
double ipReal64
Definition of import/export macro for library.
boost::shared_ptr< const BaseImage > ImageConstPtr
IPSDKIPLCLASSIFICATION_API image::ImagePtr getAsyncProcessorOutput(boost::shared_ptr< KernelKMeansAssignImgLvl1 > pProcessor)
function to retrieve the result of an asynchronous processor
uint32_t ipUInt32