IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
SuperPixels2dImgLvl3.h
1 // SuperPixels2dImgLvl3.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_SUPERPIXELS2DIMGLVL3_H__
16 #define __IPSDKIPLADVANCEDMORPHOLOGY_SUPERPIXELS2DIMGLVL3_H__
17 
20 
21 // Attributes headers
22 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InPixelsColor.h>
23 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutSuperPixelUpdateCenters.h>
24 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStrip2d/OutLabelYStrip2d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/YStripColor2d/InColorYStrip2d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InCompactness.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/InSizeSuperPixels.h>
28 
29 namespace ipsdk {
30 namespace imaproc {
31 namespace advmorpho {
32 
35 
36 // declare processing algorithm
37 IPSDK_DECLARE_PROCESSING_ALGORITHM(IPSDKIPLAdvancedMorphology, SuperPixels2dImg,
39  (((ipsdk)(imaproc)(attr))(InColorYStrip2d))
40  (((ipsdk)(imaproc)(attr))(InPixelsColor))
41  (((ipsdk)(imaproc)(attr))(InCompactness))
42  (((ipsdk)(imaproc)(attr))(InSizeSuperPixels))
43  (((ipsdk)(imaproc)(attr))(OutSuperPixelUpdateCenters))
44  (((ipsdk)(imaproc)(attr))(OutLabelYStrip2d)))
45 
46  // implementation of image processing data identifier retrieval method
47  // for function selector usage
48  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InColorYStrip2d))
49  ((STRIP)(OutLabelYStrip2d)));
50 
51  // declaration of parsed data during processing
52  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InColorYStrip2d))
53  ((LINESTRIP)(OutLabelYStrip2d)));
54 
55 // methods
56 public:
57 
58 protected:
64  ipsdk::core::ExecResult postProcess();
65 
67  template <typename TIn, typename TOut,
68  ipsdk::eInstructionSet::domain IS>
69  ipsdk::BoolResult genericProcessFunction(const ipsdk::processor::ProcessingInfo& info);
70 
71 // attributes
72 protected:
73  std::vector<ipReal32*> _vBufCenterIntensities;
74 
75 };
76 
79 
80 } // end of namespace advmorpho
81 } // end of namespace imaproc
82 } // end of namespace ipsdk
83 
84 #endif // __IPSDKIPLADVANCEDMORPHOLOGY_SUPERPIXELS2DIMGLVL3_H__
Definition of import/export macro for library.
IPSDKBASEPROCESSING_API RulePtr none()
ipsdk::core::ExecResult preProcess()
method called before processing
#define IPSDK_DECLARE_PROCESSING_ALGORITHM(libraryName, algoName, RuleString, attributeSeq)
#define IPSDK_DECLARE_ALGORITHM_PARSED_DATA(dataSeq)
#define IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(dataTypeSeq)