IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
KMeansAssignImgLvl2.h
1 // KMeansAssignImgLvl2.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKIPLCLASSIFICATION_KMEANSASSIGNIMGLVL2_H__
16 #define __IPSDKIPLCLASSIFICATION_KMEANSASSIGNIMGLVL2_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InFlattenedClustersCenters.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutKMeansAssignmentInfo.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/SubImage/Input/2d/InSubSeqImg2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutClassImg.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InUpdateCentersFlag.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/SubImage/Input/2d/Optional/InOptSingleGreyMaskSubImg2d.h>
28 
29 namespace ipsdk {
30 namespace imaproc {
31 namespace classif {
32 
35 
36 // declare processor class
37 IPSDK_DECLARE_LVL2_PROCESSOR(ASYNC1, IPSDKIPLClassification, KMeansAssignImg,
38  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_2d, _pInSubSeqImg2d, _pOutClassImg) &&
39  ipsdk::processor::If(ipsdk::processor::isSet(_pInOptSingleGreyMaskSubImg2d),
40  ipsdk::imaproc::matchSize(eMatchImageSizeType::eMIST_2d, _pInSubSeqImg2d, _pInOptSingleGreyMaskSubImg2d),
42  (((ipsdk)(imaproc)(attr))(InSubSeqImg2d))
43  (((ipsdk)(imaproc)(attr))(InFlattenedClustersCenters))
44  (((ipsdk)(imaproc)(attr))(InUpdateCentersFlag))
45  (((ipsdk)(imaproc)(attr))(InOptSingleGreyMaskSubImg2d))
46  (((ipsdk)(imaproc)(attr))(OutKMeansAssignmentInfo))
47  (((ipsdk)(imaproc)(attr))(OutClassImg)))
48 
49 // methods
50 public:
51 
52 protected:
55  core::ExecResult postProcess();
56 
57 // attributes
58 protected:
59  IPSDK_DECLARE_DYNAMIC_RESULT_COLL(attr::OutKMeansAssignmentInfo, OutKMeansAssignmentInfoColl);
60 };
61 
64 
65 } // end of namespace classif
66 } // end of namespace imaproc
67 } // end of namespace ipsdk
68 
69 #endif // __IPSDKIPLCLASSIFICATION_KMEANSASSIGNIMGLVL2_H__
#define IPSDK_DECLARE_LVL2_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
IPSDKBASEPROCESSING_API RulePtr none()
Definition of import/export macro for library.
ProcessingResult< eExecutionResult > ExecResult
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type isSet(const boost::shared_ptr< AttributeType > &pAttribute)
#define IPSDK_DECLARE_DYNAMIC_RESULT_COLL(AttributeType, CollType)
IPSDKBASEPROCESSING_API RulePtr If(const RulePtr &pPredicate, const RulePtr &pRuleTrue)