IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ipsdk::imaproc::shape::analysis::ShapeFiltering3dImgLvl2 Class Reference

Level 1 algorithm: Shape 3d filtering algorithm. More...

#include <ShapeFiltering3dImgLvl2.h>

Inheritance diagram for ipsdk::imaproc::shape::analysis::ShapeFiltering3dImgLvl2:
ipsdk::processor::BaseProcessor< ipsdk::core::BaseRepeatedAsync1Action >

Public Member Functions

 ~ShapeFiltering3dImgLvl2 ()
 destructor
 
const std::string & getObjectName () const
 method allowing to retrieve object name
 
const std::string & getToolTip () const
 method allowing to retrieve object tooltip
 
const boost::filesystem::path getHeaderPath () const
 retrieve relative header path associated to processor
 
const std::string getLibraryName () const
 retrieve library name associated processor
 
template<typename TAttribute >
TAttribute::StorageType getStorage ()
 retrieve storage associated to a given attribute More...
 
Attribute accessors

Setters and Getters for attributes

template<>
const ipsdk::imaproc::attr::InSubBinLabImg3dget () const
 Getter for attribute InSubBinLabImg3d.
 
template<>
void set (const typename ipsdk::imaproc::attr::InSubBinLabImg3d::StorageType &value)
 Setter for attribute InSubBinLabImg3d.
 
template<>
const ipsdk::imaproc::attr::InSubColorOrGreyImg3dget () const
 Getter for attribute InSubColorOrGreyImg3d.
 
template<>
void set (const typename ipsdk::imaproc::attr::InSubColorOrGreyImg3d::StorageType &value)
 Setter for attribute InSubColorOrGreyImg3d.
 
template<>
const ipsdk::imaproc::attr::InFilterFormulaget () const
 Getter for attribute InFilterFormula.
 
template<>
void set (const typename ipsdk::imaproc::attr::InFilterFormula::StorageType &value)
 Setter for attribute InFilterFormula.
 
template<>
const ipsdk::imaproc::attr::InMeasureInfoSet3dget () const
 Getter for attribute InMeasureInfoSet3d.
 
template<>
void set (const typename ipsdk::imaproc::attr::InMeasureInfoSet3d::StorageType &value)
 Setter for attribute InMeasureInfoSet3d.
 
template<>
const ipsdk::imaproc::attr::InNeighborhood3dget () const
 Getter for attribute InNeighborhood3d.
 
template<>
void set (const typename ipsdk::imaproc::attr::InNeighborhood3d::StorageType &value)
 Setter for attribute InNeighborhood3d.
 
template<>
const ipsdk::imaproc::attr::InLabelReindexingPolicyget () const
 Getter for attribute InLabelReindexingPolicy.
 
template<>
void set (const typename ipsdk::imaproc::attr::InLabelReindexingPolicy::StorageType &value)
 Setter for attribute InLabelReindexingPolicy.
 
template<>
const ipsdk::imaproc::attr::InOptSurfaceExtractionSettingsget () const
 Getter for attribute InOptSurfaceExtractionSettings.
 
template<>
void set (const typename ipsdk::imaproc::attr::InOptSurfaceExtractionSettings::StorageType &value)
 Setter for attribute InOptSurfaceExtractionSettings.
 
template<>
const ipsdk::imaproc::attr::OutImgget () const
 Getter for attribute OutImg.
 
template<>
void set (const typename ipsdk::imaproc::attr::OutImg::StorageType &value)
 Setter for attribute OutImg.
 
- Public Member Functions inherited from ipsdk::processor::BaseProcessor< ipsdk::core::BaseRepeatedAsync1Action >
virtual eProcessorType getProcessorType () const =0
 
BoolResult init (const eProcessorRulePolicy rulePolicy=eProcessorRulePolicy::ePRP_DisableSubRules)
 
const eProcessorRulePolicygetProcessorRulePolicy () const
 
std::string getFullInfoStr () const
 
const BaseRulegetGlobalRule () const
 
const ProcessorDispatchPolicygetDispatchPolicy () const
 
void restrictDispatchPolicy (const ProcessorDispatchPolicy &policy)
 
bool isProgressAvailable () const
 
ipsdk::processor::eProcessorProgressAvailability getProgressAvailability () const
 
ipsdk::ipUInt64 getTotalNbIterations () const
 
bool existsHeaderKey (const std::string &key) const
 
bool existsHeaderKey (const std::string &key) const
 
ItemNames getHeaderKeys () const
 
ItemNames getHeaderKeys () const
 
const BaseDataItemgetHeaderItem (const std::string &key) const
 
BaseDataItemgetHeaderItem (const std::string &key)
 
const BaseDataItemgetHeaderItem (const std::string &key) const
 
BaseDataItemgetHeaderItem (const std::string &key)
 
void addHeaderItem (const std::string &key, const DataItemPtr &pItem)
 
void addHeaderItem (const std::string &key, const DataItemPtr &pItem)
 
void removeHeaderItem (const std::string &key)
 
void removeHeaderItem (const std::string &key)
 
void clearHeader ()
 
void clearHeader ()
 
ipUInt32 getNbAttributes () const
 
ipUInt32 getNbAttributes () const
 
const BaseAttributegetAttribute (ipUInt32 index) const
 
BaseAttributegetAttribute (ipUInt32 index)
 
const BaseAttributegetAttribute (const std::string &attributeName) const
 
BaseAttributegetAttribute (const std::string &attributeName)
 
const BaseAttributegetAttribute (ipUInt32 index) const
 
BaseAttributegetAttribute (ipUInt32 index)
 
const BaseAttributegetAttribute (const std::string &attributeName) const
 
BaseAttributegetAttribute (const std::string &attributeName)
 
bool existsAttribute (const std::string &attributeName) const
 
bool existsAttribute (const std::string &attributeName) const
 
StringVector getAttributeNameColl () const
 
StringVector getAttributeNameColl () const
 
bool hasOutputInitializer (const std::string &attributeName) const
 
bool hasOutputInitializer (const std::string &attributeName) const
 
const BaseOutputInitializergetOutputInitializer (const std::string &attributeName) const
 
const BaseOutputInitializergetOutputInitializer (const std::string &attributeName) const
 

Static Public Member Functions

static boost::shared_ptr< ShapeFiltering3dImgLvl2createProcessor ()
 processor creation function
 
static const std::string & getObjectNameStr ()
 method allowing to retrieve object name
 
static const std::string & getToolTipStr ()
 method allowing to retrieve object tooltip
 
static const boost::filesystem::path getHeaderPathStr ()
 retrieve relative header path associated to processor
 
static const std::string getLibraryNameStr ()
 retrieve library name associated processor
 

Protected Member Functions

 ShapeFiltering3dImgLvl2 ()
 constructor
 
ipsdk::processor::RetrievalResult retrieveProvider (const ipsdk::core::BasePriority &priority, ipsdk::ipUInt32 curNbIter, ipsdk::core::ActionProviderPtr &pProvider)
 method allowing to retrieve provider associated to asynchronous processing in derived class More...
 
processor::RetrievalResult provideProcessor (const boost::shared_ptr< core::BaseAction > &pProcessor, const core::BasePriority &priority, core::ActionProviderPtr &pProvider)
 
processor::RetrievalResult connectedComponent (const core::BasePriority &priority, core::ActionProviderPtr &pProvider)
 
processor::RetrievalResult labelShapeExtraction (const core::BasePriority &priority, core::ActionProviderPtr &pProvider)
 
processor::RetrievalResult shapeAnalysis (const core::BasePriority &priority, core::ActionProviderPtr &pProvider)
 
processor::RetrievalResult lutTransform (const core::BasePriority &priority, core::ActionProviderPtr &pProvider)
 
processor::RetrievalResult erase (const core::BasePriority &priority, core::ActionProviderPtr &pProvider)
 
- Protected Member Functions inherited from ipsdk::processor::BaseProcessor< ipsdk::core::BaseRepeatedAsync1Action >
virtual BoolResult initDerived (AttributeColl &attributeColl, OutputInitializerColl &outputInitializerColl, ProcessorDispatchPolicy &dispatchPolicy, RulePtr &pGlobalRule, const eProcessorRulePolicy &rulePolicy)=0
 

Protected Attributes

ipsdk::image::ImageConstPtr _pLabImg
 Label image.
 
ipsdk::shape::segmentation::Shape3dCollPtr _pShape3dColl
 Intermediate results.
 
ipsdk::shape::analysis::MeasureInfoSetPtr _pMeasureInfoSet
 
ipsdk::shape::analysis::MeasureSetPtr _pMeasureSet
 
std::string _formulaStr
 
boost::shared_ptr< advmorpho::ConnectedComponent3dImgLvl1_pConCompProcessor
 Processors.
 
boost::shared_ptr< segmentation::LabelShapeExtraction3dLvl1_pLabelExtractionProcessor
 
boost::shared_ptr< analysis::ShapeAnalysis3dLvl2_pShapeAnalysisProcessor
 
Attribute members
boost::shared_ptr< ipsdk::imaproc::attr::InSubBinLabImg3d_pInSubBinLabImg3d
 
boost::shared_ptr< ipsdk::imaproc::attr::InSubColorOrGreyImg3d_pInSubColorOrGreyImg3d
 
boost::shared_ptr< ipsdk::imaproc::attr::InFilterFormula_pInFilterFormula
 
boost::shared_ptr< ipsdk::imaproc::attr::InMeasureInfoSet3d_pInMeasureInfoSet3d
 
boost::shared_ptr< ipsdk::imaproc::attr::InNeighborhood3d_pInNeighborhood3d
 
boost::shared_ptr< ipsdk::imaproc::attr::InLabelReindexingPolicy_pInLabelReindexingPolicy
 
boost::shared_ptr< ipsdk::imaproc::attr::InOptSurfaceExtractionSettings_pInOptSurfaceExtractionSettings
 
boost::shared_ptr< ipsdk::imaproc::attr::OutImg_pOutImg
 
- Protected Attributes inherited from ipsdk::processor::BaseProcessor< ipsdk::core::BaseRepeatedAsync1Action >
eProcessorProgressAvailability _processorProgressAvailability
 
ipUInt32 _nbIter
 

Additional Inherited Members

- Protected Types inherited from ipsdk::processor::BaseProcessor< ipsdk::core::BaseRepeatedAsync1Action >
typedef std::vector< AttributePtrAttributeColl
 
typedef std::map< std::string, OutputInitializerPtrOutputInitializerColl
 

Detailed Description

Level 1 algorithm: Shape 3d filtering algorithm.

See Shape Filtering 3d for a complete algorithm description.

Author
H. Delestre
Date
2016/05/04

Algorithm associated library :

IPSDKIPLShapeAnalysis

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InSubBinLabImg3d [Input] binary 3d single sub binary or label image for processing operation X
ipsdk::imaproc::attr::InSubColorOrGreyImg3d [Input] Color or grey image 3d for processing operation X
ipsdk::imaproc::attr::InFilterFormula [Input] Logic measure formula used for shape analysis filtering stage X
ipsdk::imaproc::attr::InMeasureInfoSet3d [Input] shape analysis 3d measure information set X
ipsdk::imaproc::attr::InNeighborhood3d [Input] neighborhood 3d type for operation X
ipsdk::imaproc::attr::InLabelReindexingPolicy [Input] used label reindexing policy X
ipsdk::imaproc::attr::InOptSurfaceExtractionSettings [Input Optional] Settings used for surfaces extraction X
ipsdk::imaproc::attr::OutImg [Output] image for processing operation X

Global attributes rule :

Global rule on attributes is given by
(ipsdk::imaproc::match3dSize (_pInSubBinLabImg3d,_pInSubColorOrGreyImg3d)) && 
(ipsdk::imaproc::matchSizeAndType (_pInSubBinLabImg3d,_pOutImg))

Member Function Documentation

◆ getStorage()

template<typename TAttribute >
TAttribute::StorageType ipsdk::imaproc::shape::analysis::ShapeFiltering3dImgLvl2::getStorage ( )

retrieve storage associated to a given attribute

Note
This method is only available for Output and In/Out attributes
Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif isInit() == false

◆ retrieveProvider()

ipsdk::processor::RetrievalResult ipsdk::imaproc::shape::analysis::ShapeFiltering3dImgLvl2::retrieveProvider ( const ipsdk::core::BasePriority priority,
ipsdk::ipUInt32  curNbIter,
ipsdk::core::ActionProviderPtr pProvider 
)
protected

method allowing to retrieve provider associated to asynchronous processing in derived class

Returns
provider retrieval result.
Note
On success provider pointer must not be null nor uninitialized

The documentation for this class was generated from the following file: