SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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:
Inheritance graph
[legend]
Collaboration diagram for SourceXtractor::SegmentationFactory:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

std::shared_ptr< DetectionImageFrame::ImageFilterm_filter
 
SegmentationConfig::Algorithm m_algorithm
 
std::shared_ptr< TaskProviderm_task_provider
 
int m_lutz_window_size
 
int m_bfs_max_delta
 
std::string m_model_path
 
double m_ml_threshold
 
std::vector< std::vector< AssocModeConfig::CatalogEntry > > m_catalogs
 

Detailed Description

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

Definition at line 42 of file SegmentationFactory.h.

Constructor & Destructor Documentation

◆ ~SegmentationFactory()

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

Destructor.

◆ SegmentationFactory()

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

Constructor.

Definition at line 46 of file SegmentationFactory.cpp.

Member Function Documentation

◆ configure()

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 56 of file SegmentationFactory.cpp.

References m_algorithm, m_bfs_max_delta, m_catalogs, m_filter, m_lutz_window_size, m_ml_threshold, and m_model_path.

Referenced by SEMain::mainMethod().

◆ createSegmentation()

std::shared_ptr< Segmentation > SourceXtractor::SegmentationFactory::createSegmentation ( ) const

◆ reportConfigDependencies()

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 51 of file SegmentationFactory.cpp.

Referenced by SEMain::getConfigParameters().

Member Data Documentation

◆ m_algorithm

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

Definition at line 61 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

◆ m_bfs_max_delta

int SourceXtractor::SegmentationFactory::m_bfs_max_delta
private

Definition at line 65 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

◆ m_catalogs

std::vector<std::vector<AssocModeConfig::CatalogEntry> > SourceXtractor::SegmentationFactory::m_catalogs
private

Definition at line 70 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

◆ m_filter

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

Definition at line 59 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

◆ m_lutz_window_size

int SourceXtractor::SegmentationFactory::m_lutz_window_size
private

Definition at line 64 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

◆ m_ml_threshold

double SourceXtractor::SegmentationFactory::m_ml_threshold
private

Definition at line 68 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

◆ m_model_path

std::string SourceXtractor::SegmentationFactory::m_model_path
private

Definition at line 67 of file SegmentationFactory.h.

Referenced by configure(), and createSegmentation().

◆ m_task_provider

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

Definition at line 62 of file SegmentationFactory.h.

Referenced by createSegmentation().


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