IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RidgeLine3dImgLvl1.h
1 // RidgeLine3dImgLvl1.h:
3 // ---------------------
4 //
14 
15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_RIDGELINE3DIMGLVL1_H__
16 #define __IPSDKIPLADVANCEDMORPHOLOGY_RIDGELINE3DIMGLVL1_H__
17 
22 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/PlanIndexedStatsResult.h>
23 
24 // Attributes headers
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutPIVoxels3d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InPropagationAxis.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InPropagationDirection.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InNbIter.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/3d/InImg3d.h>
30 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/Optional/InOptMaskImg.h>
31 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutBinImg.h>
32 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutDistImg.h>
33 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutIntImg.h>
34 
35 namespace ipsdk {
36 namespace imaproc {
37 namespace advmorpho {
38 
41 
42 // declare processor class
43 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC2, IPSDKIPLAdvancedMorphology, RidgeLine3dImg,
44  ipsdk::imaproc::matchSize(_pInImg3d, _pOutDistImg, _pOutIntImg)&&
45  ipsdk::imaproc::matchImagePlans(_pOutPIVoxels3d, _pInImg3d, eImagePlansMatchPolicy::eIPMP_CT)&&
47  ipsdk::imaproc::matchSize(_pInImg3d, _pInOptMaskImg),
49  ipsdk::imaproc::matchSize(_pOutDistImg, _pOutBinImg),
50  (((ipsdk)(imaproc)(attr))(InImg3d))
51  (((ipsdk)(imaproc)(attr))(InOptMaskImg))
52  (((ipsdk)(imaproc)(attr))(InPropagationAxis))
53  (((ipsdk)(imaproc)(attr))(InPropagationDirection))
54  (((ipsdk)(imaproc)(attr))(InNbIter))
55  (((ipsdk)(imaproc)(attr))(OutDistImg)(duplicateInOut)(_pInImg3d)(ipsdk::image::eImageBufferType::eIBT_Real32))
56  (((ipsdk)(imaproc)(attr))(OutIntImg)(duplicateInOut)(_pInImg3d)(ipsdk::image::eImageBufferType::eIBT_UInt8))
57  (((ipsdk)(imaproc)(attr))(OutBinImg)(duplicateInOut)(_pInImg3d)(ipsdk::image::eImageBufferType::eIBT_Binary))
58  (((ipsdk)(imaproc)(attr))(OutPIVoxels3d)(ipsdk::imaproc::fromImageButVolume)(_pInImg3d)))
59 // methods
60 public:
61 
62 protected:
66 
68  ipReal64 getImageMinValue();
69 
70 // attributes
71 protected:
74  attr::PlanIndexedStatsResultPtr _pPlanIndexedStatsResult;
75 
76 };
77 
80 
81 } // end of namespace advmorpho
82 } // end of namespace imaproc
83 } // end of namespace ipsdk
84 
85 #endif // __IPSDKIPLADVANCEDMORPHOLOGY_RIDGELINE3DIMGLVL1_H__
Definition of import/export macro for library.
processor::OutputInitializerPtr fromImageButVolume(const boost::shared_ptr< OutputAttributeType > &pOutputAttribute, const ImageAttributeConstPtr &pInputAttribute)
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
IPSDKBASEPROCESSING_API RulePtr none()
processor::OutputInitializerPtr duplicateInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
double ipReal64
ipsdk::core::ExecResult preProcess()
method called before processing
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type isSet(const boost::shared_ptr< AttributeType > &pAttribute)
boost::shared_ptr< ipsdk::imaproc::attr::PlanIndexedStatsResult > PlanIndexedStatsResultPtr
shared pointer to ipsdk::imaproc::attr::PlanIndexedStatsResult
Definition: PlanIndexedStatsResult.h:50
IPSDKBASEPROCESSING_API RulePtr If(const RulePtr &pPredicate, const RulePtr &pRuleTrue)