IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KMeansComputeCompactnessLvl1.h
1 // KMeansComputeCompactnessLvl1.h:
3 // -------------------------------
4 //
14 
15 #ifndef __IPSDKIPLCLASSIFICATION_KMEANSCOMPUTECOMPACTNESSLVL1_H__
16 #define __IPSDKIPLCLASSIFICATION_KMEANSCOMPUTECOMPACTNESSLVL1_H__
17 
21 
22 // Attributes headers
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InClustersCenters.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutKMeansCompactnessInfo.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InClassImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InHomogeneousImg.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/Optional/InOptSingleGreyMaskImg.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/Doubles.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/OutCompactness.h>
30 
31 namespace ipsdk {
32 namespace imaproc {
33 namespace classif {
34 
37 
38 // declare processor class
39 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC1, IPSDKIPLClassification, KMeansComputeCompactness,
41  (((ipsdk)(imaproc)(attr))(InHomogeneousImg))
42  (((ipsdk)(imaproc)(attr))(InClassImg))
43  (((ipsdk)(imaproc)(attr))(InOptSingleGreyMaskImg))
44  (((ipsdk)(imaproc)(attr))(InClustersCenters))
45  (((ipsdk)(imaproc)(attr))(OutCompactness)))
46 
47 // methods
48 public:
49 
50 protected:
53  ipsdk::core::ExecResult postProcess();
54 
55 // attributes
56 protected:
57  attr::DoublesPtr _pFlattenedClustersCenters;
58 
59  // declaration of dispatch results collection
60  IPSDK_DECLARE_STATIC_RESULT_COLL(attr::OutKMeansCompactnessInfo, OutKMeansCompactnessInfoColl);
61 };
62 
65 
66 } // end of namespace classif
67 } // end of namespace imaproc
68 } // end of namespace ipsdk
69 
70 #endif // __IPSDKIPLCLASSIFICATION_KMEANSCOMPUTECOMPACTNESSLVL1_H__
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
IPSDKBASEPROCESSING_API RulePtr none()
boost::shared_ptr< ipsdk::imaproc::attr::Doubles > DoublesPtr
shared pointer to ipsdk::imaproc::Doubles
Definition: Doubles.h:124
Definition of import/export macro for library.
#define IPSDK_DECLARE_STATIC_RESULT_COLL(AttributeType, CollType)