15 #ifndef __IPSDKIPLADVANCEDMORPHOLOGY_WATERSHEDBINARYSEPARATION2DIMGLVL1_H__ 16 #define __IPSDKIPLADVANCEDMORPHOLOGY_WATERSHEDBINARYSEPARATION2DIMGLVL1_H__ 23 #include <IPSDKIPL/IPSDKIPLAttributes/DataItem/StatsResult.h> 24 #include <IPSDKIPL/IPSDKIPLAdvancedMorphology/Tools/WatershedInternalTypes.h> 27 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Input/InBinImg.h> 28 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InDilateFactor.h> 29 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InWatershedSeparationMode.h> 30 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Enumerate/InOptWatershedProcMode.h> 31 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Value/InOptNbMinDataByThread.h> 32 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk1DistImg.h> 33 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/OutWk1Img.h> 34 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1Img.h> 35 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/Working/Optional/OutOptWk1BinImg.h> 36 #include <IPSDKIPL/IPSDKIPLAttributes/Attribute/Image/Output/OutBinLabImg.h> 47 (ipsdk::imaproc::matchSize(_pInBinImg, _pOutBinLabImg) &&
48 ipsdk::imaproc::customImageProperty(_pOutBinLabImg,
allowedBufferType(_pInWatershedSeparationMode)) &&
49 ipsdk::imaproc::matchSize(_pInBinImg, _pOutWk1DistImg) &&
50 ipsdk::imaproc::matchSize(_pInBinImg, _pOutWk1Img) &&
51 ipsdk::imaproc::customImageProperty(_pOutWk1Img,
allowedWk1BufferType(_pInWatershedSeparationMode)) &&
53 ipsdk::imaproc::matchSize(_pInBinImg, _pOutOptWk1Img))),
54 (((
ipsdk)(imaproc)(attr))(InBinImg))
55 (((
ipsdk)(imaproc)(attr))(InDilateFactor))
56 (((
ipsdk)(imaproc)(attr))(InWatershedSeparationMode))
57 (((
ipsdk)(imaproc)(attr))(InOptWatershedProcMode))
58 (((
ipsdk)(imaproc)(attr))(InOptNbMinDataByThread))
61 (((
ipsdk)(imaproc)(attr))(OutOptWk1Img))
62 (((
ipsdk)(imaproc)(attr))(OutOptWk1BinImg))
92 Watershed2dStackPtr _pWatershed2dStack;
105 #endif // __IPSDKIPLADVANCEDMORPHOLOGY_WATERSHEDBINARYSEPARATION2DIMGLVL1_H__ Definition of import/export macro for library.
Utility functions for watershed attribute output initialization management.
#define IPSDK_DECLARE_LVL1_PROCESSOR(ProcType, libraryName, algoName, RuleString, attributeSeq)
IPSDKIPLADVANCEDMORPHOLOGY_API CustomCheckedImagePropertyPtr allowedWk1BufferType(const boost::shared_ptr< const attr::InWatershedSeparationMode > pModeAttribute)
IPSDKIPLADVANCEDMORPHOLOGY_API CustomImageInfoPtr outputWatershed(const ImageAttributeConstPtr &pInputAttribute, const boost::shared_ptr< const attr::InWatershedOutputMode > pModeAttribute)
boost::shared_ptr< BaseImage > ImagePtr
processor::OutputInitializerPtr duplicateInOut(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const boost::weak_ptr< InputAttributeType > &pInputAttribute, const eImageInitializerStoragePolicy &storagePolicy=eImageInitializerStoragePolicy::eIISP_Inherit)
ipsdk::core::ExecResult preProcess()
method called before processing
Utility functions for watershed attribute rules management.
boost::enable_if_c< AttributeType::g_bOptional, RulePtr >::type ifIsSet(const boost::shared_ptr< AttributeType > &pAttribute, const RulePtr &pRuleTrue)
boost::shared_ptr< BaseAction > ActionPtr
IPSDKIPLADVANCEDMORPHOLOGY_API CustomImageInfoPtr outputWk1Watershed(const ImageAttributeConstPtr &pInputAttribute, const boost::shared_ptr< const attr::InWatershedSeparationMode > pModeAttribute)
processor::OutputInitializerPtr customOutput(const boost::weak_ptr< OutputAttributeType > &pOutputAttribute, const CustomImageInfoPtr &pCustomImageInfo)
IPSDKIPLADVANCEDMORPHOLOGY_API CustomCheckedImagePropertyPtr allowedBufferType(const boost::shared_ptr< const attr::InWatershedOutputMode > pModeAttribute)
IPSDK_DECLARE_GPU_PROCESSING_ALGORITHM(IPSDKIPLFiltering, Convolution2dImg, ipsdk::imaproc::matchSize(_pInSubGpuImg, _pOutImg),(((ipsdk)(imaproc)(attr))(InSubGpuImg))(((ipsdk)(imaproc)(attr))(InKnlXY))(((ipsdk)(imaproc)(attr))(InNormalize))(((ipsdk)(imaproc)(attr))(InConvolBorder2d))(((ipsdk)(imaproc)(attr))(OutImg))) IPSDKCUDA_DECLARE_ALGORITHM_FUNCTION_SELECTOR((InSubGpuImg)(OutImg)) public void clearIntermediateData()
method called before processing
boost::shared_ptr< ipsdk::imaproc::attr::StatsResult > StatsResultPtr
shared pointer to ipsdk::imaproc::attr::StatsResult
Definition: StatsResult.h:206