|
SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
Used to select a Segmentation algorithm. More...
#include <SegmentationConfig.h>
Public Types | |
| enum | Algorithm { Algorithm::UNKNOWN, Algorithm::LUTZ } |
Public Types inherited from Euclid::Configuration::Configuration | |
| enum | State { State::CONSTRUCTED, State::PRE_INITIALIZED, State::INITIALIZED, State::FINAL } |
| typedef std::vector< boost::program_options::option_description > | OptionDescriptionList |
| typedef std::map< std::string, boost::program_options::variable_value > | UserValues |
Public Member Functions | |
| virtual | ~SegmentationConfig ()=default |
| Destructor. More... | |
| SegmentationConfig (long manager_id) | |
| Constructs a new SegmentationConfig object. More... | |
| std::map< std::string, Configuration::OptionDescriptionList > | getProgramOptions () override |
| void | preInitialize (const UserValues &args) override |
| void | initialize (const UserValues &args) override |
| Algorithm | getAlgorithmOption () const |
| int | getLutzWindowSize () const |
| bool | isFilteringEnabled () const |
| std::shared_ptr< DetectionImageFrame::ImageFilter > | getFilter () const |
Public Member Functions inherited from Euclid::Configuration::Configuration | |
| Configuration (long manager_id) | |
| virtual | ~Configuration ()=default |
| virtual void | postInitialize (const UserValues &args) |
| const std::set< std::type_index > & | getDependencies () |
| State & | getCurrentState () |
| State | getCurrentState () const |
Private Member Functions | |
| std::shared_ptr< DetectionImageFrame::ImageFilter > | getDefaultFilter () const |
| std::shared_ptr< DetectionImageFrame::ImageFilter > | loadFilter (const std::string &filename) const |
| std::shared_ptr< DetectionImageFrame::ImageFilter > | loadFITSFilter (const std::string &filename) const |
| std::shared_ptr< DetectionImageFrame::ImageFilter > | loadASCIIFilter (const std::string &filename) const |
Private Attributes | |
| Algorithm | m_selected_algorithm |
| std::shared_ptr< DetectionImageFrame::ImageFilter > | m_filter |
| int | m_lutz_window_size |
Additional Inherited Members | |
Protected Member Functions inherited from Euclid::Configuration::Configuration | |
| void | declareDependency () |
| T & | getDependency () |
| const T & | getDependency () const |
Used to select a Segmentation algorithm.
Definition at line 36 of file SegmentationConfig.h.
|
strong |
| Enumerator | |
|---|---|
| UNKNOWN | |
| LUTZ | |
Definition at line 39 of file SegmentationConfig.h.
|
virtualdefault |
Destructor.
| SourceXtractor::SegmentationConfig::SegmentationConfig | ( | long | manager_id | ) |
Constructs a new SegmentationConfig object.
Definition at line 55 of file SegmentationConfig.cpp.
References UNKNOWN.
|
inline |
Definition at line 56 of file SegmentationConfig.h.
References m_selected_algorithm.
|
private |
Definition at line 98 of file SegmentationConfig.cpp.
References SourceXtractor::VectorImage< T >::create(), Elements::Logging::info(), and SourceXtractor::segConfigLogger.
Referenced by preInitialize().
|
inline |
Definition at line 68 of file SegmentationConfig.h.
References m_filter.
|
inline |
Definition at line 60 of file SegmentationConfig.h.
References m_lutz_window_size.
|
overridevirtual |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 59 of file SegmentationConfig.cpp.
References std::string::c_str(), SourceXtractor::SEGMENTATION_ALGORITHM, SourceXtractor::SEGMENTATION_DISABLE_FILTERING, SourceXtractor::SEGMENTATION_FILTER, and SourceXtractor::SEGMENTATION_LUTZ_WINDOW_SIZE.
|
overridevirtual |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 94 of file SegmentationConfig.cpp.
References LUTZ, and m_selected_algorithm.
|
inline |
Definition at line 64 of file SegmentationConfig.h.
References m_filter.
|
private |
Definition at line 167 of file SegmentationConfig.cpp.
References SourceXtractor::VectorImage< T >::create(), SourceXtractor::extractValues(), conf::filename, std::getline(), SourceXtractor::getNormalization(), std::ifstream::good(), Elements::Logging::info(), std::ifstream::is_open(), std::ifstream::open(), std::regex_replace(), SourceXtractor::segConfigLogger, std::vector< T >::size(), and std::string::size().
Referenced by loadFilter().
|
private |
Definition at line 116 of file SegmentationConfig.cpp.
References conf::filename, std::string::length(), loadASCIIFilter(), and loadFITSFilter().
Referenced by preInitialize().
|
private |
Definition at line 130 of file SegmentationConfig.cpp.
References conf::filename, Elements::Logging::info(), and SourceXtractor::segConfigLogger.
Referenced by loadFilter().
|
overridevirtual |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 72 of file SegmentationConfig.cpp.
References std::map< K, T >::at(), getDefaultFilter(), loadFilter(), m_filter, m_lutz_window_size, SourceXtractor::SEGMENTATION_ALGORITHM, SourceXtractor::SEGMENTATION_DISABLE_FILTERING, SourceXtractor::SEGMENTATION_FILTER, and SourceXtractor::SEGMENTATION_LUTZ_WINDOW_SIZE.
|
private |
Definition at line 79 of file SegmentationConfig.h.
Referenced by getFilter(), isFilteringEnabled(), and preInitialize().
|
private |
Definition at line 81 of file SegmentationConfig.h.
Referenced by getLutzWindowSize(), and preInitialize().
|
private |
Definition at line 78 of file SegmentationConfig.h.
Referenced by getAlgorithmOption(), and initialize().
1.8.14