IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ipsdk::imaproc::fd::HoughLinesGradient2dLvl1 Class Reference

Level 1 algorithm: detection of 2D lines in gradient images using Hough algorithm. More...

#include <HoughLinesGradient2dLvl1.h>

Inheritance diagram for ipsdk::imaproc::fd::HoughLinesGradient2dLvl1:
ipsdk::processor::BaseProcessor< ipsdk::core::BaseAsync1Action >

Public Member Functions

 ~HoughLinesGradient2dLvl1 ()
 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::InGxGreyImg2dget () const
 Getter for attribute InGxGreyImg2d.
 
template<>
void set (const typename ipsdk::imaproc::attr::InGxGreyImg2d::StorageType &value)
 Setter for attribute InGxGreyImg2d.
 
template<>
const ipsdk::imaproc::attr::InGyGreyImg2dget () const
 Getter for attribute InGyGreyImg2d.
 
template<>
void set (const typename ipsdk::imaproc::attr::InGyGreyImg2d::StorageType &value)
 Setter for attribute InGyGreyImg2d.
 
template<>
const ipsdk::imaproc::attr::InOptHoughLinesGradientImgParamsget () const
 Getter for attribute InOptHoughLinesGradientImgParams.
 
template<>
void set (const typename ipsdk::imaproc::attr::InOptHoughLinesGradientImgParams::StorageType &value)
 Setter for attribute InOptHoughLinesGradientImgParams.
 
template<>
const ipsdk::imaproc::attr::InOptHoughLinesExtractionParamsget () const
 Getter for attribute InOptHoughLinesExtractionParams.
 
template<>
void set (const typename ipsdk::imaproc::attr::InOptHoughLinesExtractionParams::StorageType &value)
 Setter for attribute InOptHoughLinesExtractionParams.
 
template<>
const ipsdk::imaproc::attr::InOptHoughLinesOrientationToleranceget () const
 Getter for attribute InOptHoughLinesOrientationTolerance.
 
template<>
void set (const typename ipsdk::imaproc::attr::InOptHoughLinesOrientationTolerance::StorageType &value)
 Setter for attribute InOptHoughLinesOrientationTolerance.
 
template<>
const ipsdk::imaproc::attr::OutOptRealImgget () const
 Getter for attribute OutOptRealImg.
 
template<>
void set (const typename ipsdk::imaproc::attr::OutOptRealImg::StorageType &value)
 Setter for attribute OutOptRealImg.
 
template<>
const ipsdk::imaproc::attr::OutPIHoughLines2dPptiesget () const
 Getter for attribute OutPIHoughLines2dPpties.
 
template<>
void set (const typename ipsdk::imaproc::attr::OutPIHoughLines2dPpties::StorageType &value)
 Setter for attribute OutPIHoughLines2dPpties.
 
- Public Member Functions inherited from ipsdk::processor::BaseProcessor< ipsdk::core::BaseAsync1Action >
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< HoughLinesGradient2dLvl1createProcessor ()
 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

 HoughLinesGradient2dLvl1 ()
 constructor
 
ipsdk::processor::RetrievalResult retrieveProvider (const ipsdk::core::BasePriority &priority, 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)
 
- Protected Member Functions inherited from ipsdk::processor::BaseProcessor< ipsdk::core::BaseAsync1Action >
virtual BoolResult initDerived (AttributeColl &attributeColl, OutputInitializerColl &outputInitializerColl, ProcessorDispatchPolicy &dispatchPolicy, RulePtr &pGlobalRule, const eProcessorRulePolicy &rulePolicy)=0
 

Protected Attributes

Attribute members
boost::shared_ptr< ipsdk::imaproc::attr::InGxGreyImg2d_pInGxGreyImg2d
 
boost::shared_ptr< ipsdk::imaproc::attr::InGyGreyImg2d_pInGyGreyImg2d
 
boost::shared_ptr< ipsdk::imaproc::attr::InOptHoughLinesGradientImgParams_pInOptHoughLinesGradientImgParams
 
boost::shared_ptr< ipsdk::imaproc::attr::InOptHoughLinesExtractionParams_pInOptHoughLinesExtractionParams
 
boost::shared_ptr< ipsdk::imaproc::attr::InOptHoughLinesOrientationTolerance_pInOptHoughLinesOrientationTolerance
 
boost::shared_ptr< ipsdk::imaproc::attr::OutOptRealImg_pOutOptRealImg
 
boost::shared_ptr< ipsdk::imaproc::attr::OutPIHoughLines2dPpties_pOutPIHoughLines2dPpties
 
- Protected Attributes inherited from ipsdk::processor::BaseProcessor< ipsdk::core::BaseAsync1Action >
eProcessorProgressAvailability _processorProgressAvailability
 
ipUInt32 _nbIter
 

Additional Inherited Members

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

Detailed Description

Level 1 algorithm: detection of 2D lines in gradient images using Hough algorithm.

See Extension of Hough lines detection based on gradient orientation for a complete algorithm description.

Author
H. Delestre
Date
2017/10/06

Algorithm associated library :

IPSDKIPLFeatureDetection

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InGxGreyImg2d [Input] 2d grey levels image of gradient computed along x-axis X
ipsdk::imaproc::attr::InGyGreyImg2d [Input] 2d grey levels image of gradient computed along y-axis X
ipsdk::imaproc::attr::InOptHoughLinesGradientImgParams [Input Optional] Parameters for Hough lines detection algorithm using 2 input gradient images X
ipsdk::imaproc::attr::InOptHoughLinesExtractionParams [Input Optional] Parameters used for step of extraction of lines in Hough lines algorithm X
ipsdk::imaproc::attr::InOptHoughLinesOrientationTolerance [Input Optional] Tolerance for orientation around estimated gradient direction X
ipsdk::imaproc::attr::OutOptRealImg [Output Optional] image for processing operation (data contained in image buffer are reals) X
ipsdk::imaproc::attr::OutPIHoughLines2dPpties [Output] plan indexed collection of positions and intensities of 2d pixels ipsdk::imaproc::fromImage (_pOutPIHoughLines2dPpties, _pInGxGreyImg2d)

Global attributes rule :

Global rule on attributes is given by
ipsdk::processor::If (
 ipsdk::processor::isSet (_pOutOptRealImg),
 ipsdk::imaproc::customImageProperty (_pOutOptRealImg,
  ipsdk::imaproc::fd::houghLines2dCheckOutImgSzXEquals (_pInGxGreyImg2d,_pInOptHoughLinesGradientImgParams)) && 
 ipsdk::imaproc::customImageProperty (_pOutOptRealImg,
  ipsdk::imaproc::fd::houghLines2dCheckOutImgSzYEquals (_pInGxGreyImg2d,_pInOptHoughLinesGradientImgParams,_pInOptHoughLinesExtractionParams)) && 
 ipsdk::imaproc::customImageProperty (_pOutOptRealImg,
  ipsdk::imaproc::fd::houghLines2dCheckOutImgBufferType (_pInGxGreyImg2d)) && 
 ipsdk::imaproc::matchSize (eMatchImageSizeType::eMIST_T,_pInGxGreyImg2d,_pOutOptRealImg) && 
 ipsdk::imaproc::matchVolumeGeometryType (_pInGxGreyImg2d,_pOutOptRealImg) && 
 ipsdk::imaproc::matchColorGeometryType (_pInGxGreyImg2d,_pOutOptRealImg) && 
 ipsdk::imaproc::noInSitu (_pInGxGreyImg2d,_pOutOptRealImg),
 ipsdk::processor::none ())

Member Function Documentation

◆ getStorage()

template<typename TAttribute >
TAttribute::StorageType ipsdk::imaproc::fd::HoughLinesGradient2dLvl1::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::fd::HoughLinesGradient2dLvl1::retrieveProvider ( const ipsdk::core::BasePriority priority,
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: