SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
SourceXtractor::SegmentationFactory Class Reference

The SegmentationFactory will provide a Segmentation implementation based on the current configuration. More...

#include <SegmentationFactory.h>

Inheritance diagram for SourceXtractor::SegmentationFactory:
[legend]
Collaboration diagram for SourceXtractor::SegmentationFactory:
[legend]

Public Member Functions

virtual ~SegmentationFactory ()=default
 Destructor. More...
 
 SegmentationFactory (std::shared_ptr< TaskProvider > task_provider)
 Constructor. More...
 
std::shared_ptr< SegmentationcreateSegmentation () const
 
void configure (Euclid::Configuration::ConfigManager &manager) override
 Method which should initialize the object. More...
 
void reportConfigDependencies (Euclid::Configuration::ConfigManager &manager) const override
 Registers all the Configuration dependencies. More...
 
- Public Member Functions inherited from SourceXtractor::Configurable
virtual ~Configurable ()=default
 Destructor. More...
 

Private Attributes

std::shared_ptr
< DetectionImageFrame::ImageFilter
m_filter
 
SegmentationConfig::Algorithm m_algorithm
 
std::shared_ptr< TaskProviderm_task_provider
 
int m_lutz_window_size
 

Detailed Description

The SegmentationFactory will provide a Segmentation implementation based on the current configuration.

Definition at line 39 of file SegmentationFactory.h.

Constructor & Destructor Documentation

virtual SourceXtractor::SegmentationFactory::~SegmentationFactory ( )
virtualdefault

Destructor.

SourceXtractor::SegmentationFactory::SegmentationFactory ( std::shared_ptr< TaskProvider task_provider)

Constructor.

Definition at line 40 of file SegmentationFactory.cpp.

References UNKNOWN.

Member Function Documentation

void SourceXtractor::SegmentationFactory::configure ( Euclid::Configuration::ConfigManager manager)
overridevirtual

Method which should initialize the object.

The given manager is guaranteed to already be in the initialized state, so all the required Configurations can be accessed using its getConfiguration() method.

Parameters
managerThe manager to get the Configurations from

Implements SourceXtractor::Configurable.

Definition at line 49 of file SegmentationFactory.cpp.

References Euclid::Configuration::ConfigManager::getConfiguration(), m_algorithm, m_filter, and m_lutz_window_size.

Here is the call graph for this function:

std::shared_ptr< Segmentation > SourceXtractor::SegmentationFactory::createSegmentation ( ) const
void SourceXtractor::SegmentationFactory::reportConfigDependencies ( Euclid::Configuration::ConfigManager manager) const
overridevirtual

Registers all the Configuration dependencies.

Configurable implementations should implement this method to register to the given ConfigManager (using the registerConfiguration() method) all the Configurations they are going to use

Parameters
managerThe manager to register the dependencies to

Implements SourceXtractor::Configurable.

Definition at line 45 of file SegmentationFactory.cpp.

References Euclid::Configuration::ConfigManager::registerConfiguration().

Here is the call graph for this function:

Member Data Documentation

SegmentationConfig::Algorithm SourceXtractor::SegmentationFactory::m_algorithm
private

Definition at line 58 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

std::shared_ptr<DetectionImageFrame::ImageFilter> SourceXtractor::SegmentationFactory::m_filter
private

Definition at line 56 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

int SourceXtractor::SegmentationFactory::m_lutz_window_size
private

Definition at line 61 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

std::shared_ptr<TaskProvider> SourceXtractor::SegmentationFactory::m_task_provider
private

Definition at line 59 of file SegmentationFactory.h.

Referenced by createSegmentation().


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