|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
The SegmentationFactory will provide a Segmentation implementation based on the current configuration. More...
#include <SegmentationFactory.h>


Public Member Functions | |
| virtual | ~SegmentationFactory ()=default |
| Destructor. | |
| SegmentationFactory (std::shared_ptr< TaskProvider > task_provider) | |
| Constructor. | |
| std::shared_ptr< Segmentation > | createSegmentation () 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::ImageFilter > | m_filter |
| SegmentationConfig::Algorithm | m_algorithm |
| std::shared_ptr< TaskProvider > | m_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 |
The SegmentationFactory will provide a Segmentation implementation based on the current configuration.
Definition at line 42 of file SegmentationFactory.h.
|
virtualdefault |
Destructor.
|
explicit |
Constructor.
Definition at line 46 of file SegmentationFactory.cpp.
References m_algorithm, m_bfs_max_delta, m_lutz_window_size, m_ml_threshold, and m_task_provider.
|
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.
| manager | The manager to get the Configurations from |
Implements SourceXtractor::Configurable.
Definition at line 56 of file SegmentationFactory.cpp.
References Euclid::Configuration::ConfigManager::getConfiguration(), m_algorithm, m_bfs_max_delta, m_catalogs, m_filter, m_lutz_window_size, m_ml_threshold, and m_model_path.

| std::shared_ptr< Segmentation > SourceXtractor::SegmentationFactory::createSegmentation | ( | ) | const |
Definition at line 69 of file SegmentationFactory.cpp.
References SourceXtractor::SegmentationConfig::ASSOC, SourceXtractor::SegmentationConfig::BFS, SourceXtractor::SegmentationConfig::LUTZ, m_algorithm, m_bfs_max_delta, m_catalogs, m_filter, m_lutz_window_size, m_ml_threshold, m_model_path, m_task_provider, std::make_shared(), SourceXtractor::SegmentationConfig::ML, and SourceXtractor::SegmentationConfig::UNKNOWN.

|
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
| manager | The manager to register the dependencies to |
Implements SourceXtractor::Configurable.
Definition at line 51 of file SegmentationFactory.cpp.
References Euclid::Configuration::ConfigManager::registerConfiguration().

|
private |
Definition at line 61 of file SegmentationFactory.h.
Referenced by configure(), createSegmentation(), and SegmentationFactory().
|
private |
Definition at line 65 of file SegmentationFactory.h.
Referenced by configure(), createSegmentation(), and SegmentationFactory().
|
private |
Definition at line 70 of file SegmentationFactory.h.
Referenced by configure(), and createSegmentation().
|
private |
Definition at line 59 of file SegmentationFactory.h.
Referenced by configure(), and createSegmentation().
|
private |
Definition at line 64 of file SegmentationFactory.h.
Referenced by configure(), createSegmentation(), and SegmentationFactory().
|
private |
Definition at line 68 of file SegmentationFactory.h.
Referenced by configure(), createSegmentation(), and SegmentationFactory().
|
private |
Definition at line 67 of file SegmentationFactory.h.
Referenced by configure(), and createSegmentation().
|
private |
Definition at line 62 of file SegmentationFactory.h.
Referenced by createSegmentation(), and SegmentationFactory().