IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RidgeLine2dImgLvl1.h
1 // RidgeLine2dImgLvl1.h:
3 // ---------------------
4 //
14 
15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_RIDGELINE2DIMGLVL1_H__
16 #define __IPSDKIPLADVANCEDMORPHOLOGY_RIDGELINE2DIMGLVL1_H__
17 
22 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/PlanIndexedStatsResult.h>
23 
24 // Attributes headers
25 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/DataItem/OutPIPixels2d.h>
26 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InPropagationAxis.h>
27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InPropagationDirection.h>
28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOptComputeOutImg.h>
29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InNbIter.h>
30 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InImg.h>
31 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InNbIter.h>
32 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/Optional/InOptMaskImg.h>
33 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutBinImg.h>
34 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutDistImg.h>
35 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutIntImg.h>
36 
37 
38 namespace ipsdk {
39 namespace imaproc {
40 namespace advmorpho {
41 
44 
45 // declare processor class
46 IPSDK_DECLARE_LVL1_PROCESSOR(ASYNC2, IPSDKIPLAdvancedMorphology, RidgeLine2dImg,
47  ipsdk::imaproc::matchSize(_pInImg, _pOutDistImg, _pOutIntImg)&&
48  ipsdk::imaproc::matchImagePlans(_pOutPIPixels2d, _pInImg, eImagePlansMatchPolicy::eIPMP_ZCT)&&
50  ipsdk::imaproc::matchSize(_pInImg, _pInOptMaskImg),
52  ipsdk::imaproc::matchSize(_pOutDistImg, _pOutBinImg),
53  (((ipsdk)(imaproc)(attr))(InImg))
54  (((ipsdk)(imaproc)(attr))(InOptMaskImg))
55  (((ipsdk)(imaproc)(attr))(InPropagationAxis))
56  (((ipsdk)(imaproc)(attr))(InPropagationDirection))
57  (((ipsdk)(imaproc)(attr))(InOptComputeOutImg))
58  (((ipsdk)(imaproc)(attr))(InNbIter))
59  (((ipsdk)(imaproc)(attr))(OutDistImg)(duplicateInOut)(_pInImg)(ipsdk::image::eImageBufferType::eIBT_Real32))
60  (((ipsdk)(imaproc)(attr))(OutIntImg)(duplicateInOut)(_pInImg)(ipsdk::image::eImageBufferType::eIBT_UInt8))
61  (((ipsdk)(imaproc)(attr))(OutBinImg)(duplicateInOut)(_pInImg)(ipsdk::image::eImageBufferType::eIBT_Binary))
62  (((ipsdk)(imaproc)(attr))(OutPIPixels2d)(ipsdk::imaproc::fromImage)(_pInImg)))
63 
64 // methods
65 public:
66 
67 protected:
71 
73  ipReal64 getImageMinValue();
74 
75 // attributes
76 protected:
78  attr::PlanIndexedStatsResultPtr _pPlanIndexedStatsResult;
79 };
80 
83 
84 } // end of namespace advmorpho
85 } // end of namespace imaproc
86 } // end of namespace ipsdk
87 
88 #endif // __IPSDKIPLADVANCEDMORPHOLOGY_RIDGELINE2DIMGLVL1_H__
Definition of import/export macro for library.
#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
processor::OutputInitializerPtr fromImage(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const ImageAttributeConstWeakPtr &pInputImageAttribute, const eFromImagePlanIndexedPolicy &fromImagePlanIndexedPolicy)
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)