IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
SuperVoxels3dImgLvl3.h
1 // SuperVoxels3dImgLvl3.h:
3 // -----------------------
4 //
14 
15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_SUPERVOXELS3DIMGLVL3_H__
16 #define __IPSDKIPLADVANCEDMORPHOLOGY_SUPERVOXELS3DIMGLVL3_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/ZStrip3d/OutLabelZStrip3d.h>
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Strip/ZStripColor3d/InColorZStrip3d.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, SuperVoxels3dImg,
39  (((ipsdk)(imaproc)(attr))(InColorZStrip3d))
40  (((ipsdk)(imaproc)(attr))(InPixelsColor))
41  (((ipsdk)(imaproc)(attr))(InCompactness))
42  (((ipsdk)(imaproc)(attr))(InSizeSuperPixels))
43  (((ipsdk)(imaproc)(attr))(OutSuperPixelUpdateCenters))
44  (((ipsdk)(imaproc)(attr))(OutLabelZStrip3d)))
45 
46  // implementation of image processing data identifier retrieval method
47  // for function selector usage
48  IPSDK_DECLARE_ALGORITHM_FUNCTION_SELECTOR(((STRIP)(InColorZStrip3d))
49  ((STRIP)(OutLabelZStrip3d)));
50 
51  // declaration of parsed data during processing
52  IPSDK_DECLARE_ALGORITHM_PARSED_DATA(((LINESTRIP)(InColorZStrip3d))
53  ((LINESTRIP)(OutLabelZStrip3d)));
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_SUPERVOXELS3DIMGLVL3_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)