IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KMeansComputeCentersLvl3.h
1 // KMeansComputeCentersLvl3.h:
3 // ---------------------------
4 //
14 
15 #ifndef __IPSDKIPLCLASSIFICATION_KMEANSCOMPUTECENTERSLVL3_H__
16 #define __IPSDKIPLCLASSIFICATION_KMEANSCOMPUTECENTERSLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutKMeansAssignmentInfo.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InClassYStrip2d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InSeqYStrip2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOptNbClusters.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InOptSingleGreyMaskYStrip2d.h>
27 
28 namespace ipsdk {
29 namespace imaproc {
30 namespace classif {
31 
34 
35 // declare processing algorithm
36 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLClassification, KMeansComputeCenters,
38  (((ipsdk)(imaproc)(attr))(InSeqYStrip2d))
39  (((ipsdk)(imaproc)(attr))(InClassYStrip2d))
40  (((ipsdk)(imaproc)(attr))(InOptSingleGreyMaskYStrip2d))
41  (((ipsdk)(imaproc)(attr))(InOptNbClusters))
42  (((ipsdk)(imaproc)(attr))(OutKMeansAssignmentInfo)))
43 
44  // implementation of image processing data identifier retrieval method
45  // for function selector usage
46  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InSeqYStrip2d))
47  ((STRIP)(InClassYStrip2d)));
48 
49  // declaration of parsed data during processing
50  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((RAWSTRIP)(InSeqYStrip2d))
51  ((RAWSTRIP)(InClassYStrip2d))
52  ((RAWSTRIP)(InOptSingleGreyMaskYStrip2d)));
53 
54 // methods
55 public:
56 
57 protected:
58 
60  template <typename BufInType, typename BufClassType,
61  ipsdk::eInstructionSet::domain IS>
62  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
63 
65  template <bool g_bInit, typename BufInType, typename BufClassType,
66  ipsdk::eInstructionSet::domain IS>
67  ipsdk::BoolResult specificProcessFunction(const ipsdk::processor::ProcessingInfo& info);
68 
69 // attributes
70 protected:
71 
72 };
73 
76 
77 } // end of namespace classif
78 } // end of namespace imaproc
79 } // end of namespace ipsdk
80 
81 #endif // __IPSDKIPLCLASSIFICATION_KMEANSCOMPUTECENTERSLVL3_H__
IPSDKBASEPROCESSING_API RulePtr none()
Definition of import/export macro for library.
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)