IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KMeansUtils.h
Go to the documentation of this file.
1 // KMeansUtils.h:
3 // ------------------------
4 //
14 
15 #ifndef __PYIPSDKIPLCLASSIFICATION_KMEANSUTILS_H__
16 #define __PYIPSDKIPLCLASSIFICATION_KMEANSUTILS_H__
17 
19 #include <IPSDKIPL/IPSDKIPLClassification/Processor/KMeansImg/KMeansImg.h>
20 #include <IPSDKIPL/IPSDKIPLClassification/Processor/KernelKMeansImg/KernelKMeansImg.h>
21 #include <boost/python/tuple.hpp>
22 
23 class ipsdk::imaproc::classif::KMeansImgLvl1;
24 
25 namespace ipsdk {
26 namespace python {
27 
30 
34 PYIPSDKIPLCLASSIFICATION_API boost::python::tuple
35 kMeansImg(const image::ImageConstPtr& pInImg,
36  const ipUInt32 nbClusters);
37 
38 PYIPSDKIPLCLASSIFICATION_API boost::python::tuple
39 kMeansImg(const image::ImageConstPtr& pInImg,
40  const ipUInt32 nbClusters,
41  const ipUInt32 nbAttempts,
42  const ipUInt32 nbMaxIterPerAttempt,
43  const ipReal64 centersShiftTol,
44  const ipsdk::image::ImagePtr& pOutClassImg);
46 
50 PYIPSDKIPLCLASSIFICATION_API boost::python::tuple
51 kMeansImg(const image::ImageConstPtr& pInImg,
52  const ipsdk::image::ImageConstPtr& pInOptSingleGreyMaskImg,
53  const ipUInt32 nbClusters);
54 
55 PYIPSDKIPLCLASSIFICATION_API boost::python::tuple
56 kMeansImg(const image::ImageConstPtr& pInImg,
57  const ipsdk::image::ImageConstPtr& pInOptSingleGreyMaskImg,
58  const ipUInt32 nbClusters,
59  const ipUInt32 nbAttempts,
60  const ipUInt32 nbMaxIterPerAttempt,
61  const ipReal64 centersShiftTol,
62  const ipsdk::image::ImagePtr& pOutClassImg);
64 
67 PYIPSDKIPLCLASSIFICATION_API boost::python::tuple
68 getAsyncProcessorOutput(boost::shared_ptr<ipsdk::imaproc::classif::KMeansImgLvl1> pProcessor);
69 PYIPSDKIPLCLASSIFICATION_API boost::python::tuple
70 getAsyncProcessorOutput(boost::shared_ptr<ipsdk::imaproc::classif::KernelKMeansImgLvl1> pProcessor);
72 
75 
76 } // end of namespace python
77 } // end of namespace ipsdk
78 
79 #endif // __PYIPSDKIPLCLASSIFICATION_KMEANSUTILS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
#define PYIPSDKIPLCLASSIFICATION_API
Import/Export macro for library PyIPSDKIPLClassification.
Definition: PyIPSDKIPLClassificationExports.h:25
boost::shared_ptr< BaseImage > ImagePtr
Definition: ImageTypes.h:139
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
Definition of import/export macro for library.
PYIPSDKIPLCLASSIFICATION_API boost::python::tuple kMeansImg(const image::ImageConstPtr &pInImg, const ipUInt32 nbClusters)
wrapper function k-means algorithm
boost::shared_ptr< const BaseImage > ImageConstPtr
Definition: ImageTypes.h:140
PYIPSDKIPLADVANCEDMORPHOLOGY_API boost::python::tuple getAsyncProcessorOutput(boost::shared_ptr< ipsdk::imaproc::advmorpho::RidgeLine2dImgLvl1 > pProcessor)
Wrapper to retrieve the result of an asynchronous processor.
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53