IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KMeansPosterizeImgLvl3.h
1 // KMeansPosterizeImgLvl3.h:
3 // -------------------------
4 //
14 
15 #ifndef __IPSDKIPLCLASSIFICATION_KMEANSPOSTERIZEIMGLVL3_H__
16 #define __IPSDKIPLCLASSIFICATION_KMEANSPOSTERIZEIMGLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InFlattenedClustersCenters.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutPosterizedYStrip2d.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InClassYStrip2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/InSeqYStrip2d.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, KMeansPosterizeImg,
38  (((ipsdk)(imaproc)(attr))(InFlattenedClustersCenters))
39  (((ipsdk)(imaproc)(attr))(InClassYStrip2d))
40  (((ipsdk)(imaproc)(attr))(InOptSingleGreyMaskYStrip2d))
41  (((ipsdk)(imaproc)(attr))(OutPosterizedYStrip2d)))
42 
43  // implementation of image processing data identifier retrieval method
44  // for function selector usage
45  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(OutPosterizedYStrip2d))
46  ((STRIP)(InClassYStrip2d)));
47 
48  // declaration of parsed data during processing
49  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((RAWSTRIP)(InClassYStrip2d))
50  ((RAWSTRIP)(InOptSingleGreyMaskYStrip2d))
51  ((RAWSTRIP)(OutPosterizedYStrip2d)));
52 
53 // methods
54 public:
55 
56 protected:
57 
59  template <typename BufOutType, typename BufClassType,
60  ipsdk::eInstructionSet::domain IS>
61  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
62 
64  template <bool g_bInit, typename BufOutType, typename BufClassType,
65  ipsdk::eInstructionSet::domain IS>
66  ipsdk::BoolResult specificProcessFunction(const ipsdk::processor::ProcessingInfo& info);
67 
68 // attributes
69 protected:
70 
71 };
72 
75 
76 } // end of namespace classif
77 } // end of namespace imaproc
78 } // end of namespace ipsdk
79 
80 #endif // __IPSDKIPLCLASSIFICATION_KMEANSPOSTERIZEIMGLVL3_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)