|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
Used to select a Segmentation algorithm. More...
#include <SegmentationConfig.h>


Public Types | |
| enum class | Algorithm { UNKNOWN , LUTZ , BFS , ML , ASSOC } |
Public Types inherited from Euclid::Configuration::Configuration | |
| enum | State |
| 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. | |
| SegmentationConfig (long manager_id) | |
| Constructs a new SegmentationConfig object. | |
| std::map< std::string, Configuration::OptionDescriptionList > | getProgramOptions () override |
| void | preInitialize (const UserValues &args) override |
| Algorithm | getAlgorithmOption () const |
| int | getLutzWindowSize () const |
| int | getBfsMaxDelta () const |
| bool | isFilteringEnabled () const |
| std::shared_ptr< DetectionImageFrame::ImageFilter > | getFilter () const |
| std::string | getOnnxModelPath () const |
| double | getMLThreashold () const |
Public Member Functions inherited from Euclid::Configuration::Configuration | |
| Configuration (long manager_id) | |
| virtual | ~Configuration ()=default |
| virtual void | initialize (const UserValues &args) |
| 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 |
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 38 of file SegmentationConfig.h.
| Enumerator | |
|---|---|
| UNKNOWN | |
| LUTZ | |
| BFS | |
| ML | |
| ASSOC | |
Definition at line 41 of file SegmentationConfig.h.
|
virtualdefault |
Destructor.
|
explicit |
Constructs a new SegmentationConfig object.
Definition at line 55 of file SegmentationConfig.cpp.
|
inline |
Definition at line 60 of file SegmentationConfig.h.
References m_selected_algorithm.
|
inline |
Definition at line 68 of file SegmentationConfig.h.
References m_bfs_max_delta.
|
private |
Definition at line 120 of file SegmentationConfig.cpp.
References SourceXtractor::VectorImage< T >::create(), and SourceXtractor::segConfigLogger.
Referenced by preInitialize().

|
inline |
Definition at line 76 of file SegmentationConfig.h.
References m_filter.
|
inline |
Definition at line 64 of file SegmentationConfig.h.
References m_lutz_window_size.
|
inline |
Definition at line 84 of file SegmentationConfig.h.
References m_ml_threshold.
|
inline |
Definition at line 80 of file SegmentationConfig.h.
References m_onnx_model_path.
|
overridevirtual |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 60 of file SegmentationConfig.cpp.
References SourceXtractor::SEGMENTATION_ALGORITHM, SourceXtractor::SEGMENTATION_BFS_MAX_DELTA, SourceXtractor::SEGMENTATION_FILTER, SourceXtractor::SEGMENTATION_LUTZ_WINDOW_SIZE, SourceXtractor::SEGMENTATION_ML_MODEL, SourceXtractor::SEGMENTATION_ML_THRESHOLD, and SourceXtractor::SEGMENTATION_USE_FILTERING.
|
inline |
Definition at line 72 of file SegmentationConfig.h.
References m_filter.
|
private |
Definition at line 189 of file SegmentationConfig.cpp.
References SourceXtractor::VectorImage< T >::create(), SourceXtractor::extractValues(), std::getline(), SourceXtractor::getNormalization(), std::ifstream::good(), std::ifstream::is_open(), std::ifstream::open(), std::regex_replace(), and SourceXtractor::segConfigLogger.
Referenced by loadFilter().

|
private |
Definition at line 138 of file SegmentationConfig.cpp.
References loadASCIIFilter(), and loadFITSFilter().
Referenced by preInitialize().

|
private |
Definition at line 152 of file SegmentationConfig.cpp.
References SourceXtractor::FitsReader< T >::readFile(), and SourceXtractor::segConfigLogger.
Referenced by loadFilter().

|
overridevirtual |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 79 of file SegmentationConfig.cpp.
References ASSOC, BFS, getDefaultFilter(), loadFilter(), LUTZ, m_bfs_max_delta, m_filter, m_lutz_window_size, m_ml_threshold, m_onnx_model_path, m_selected_algorithm, ML, SourceXtractor::SEGMENTATION_ALGORITHM, SourceXtractor::SEGMENTATION_BFS_MAX_DELTA, SourceXtractor::SEGMENTATION_FILTER, SourceXtractor::SEGMENTATION_LUTZ_WINDOW_SIZE, SourceXtractor::SEGMENTATION_ML_MODEL, SourceXtractor::SEGMENTATION_ML_THRESHOLD, and SourceXtractor::SEGMENTATION_USE_FILTERING.

|
private |
Definition at line 99 of file SegmentationConfig.h.
Referenced by getBfsMaxDelta(), and preInitialize().
|
private |
Definition at line 96 of file SegmentationConfig.h.
Referenced by getFilter(), isFilteringEnabled(), and preInitialize().
|
private |
Definition at line 98 of file SegmentationConfig.h.
Referenced by getLutzWindowSize(), and preInitialize().
|
private |
Definition at line 101 of file SegmentationConfig.h.
Referenced by getMLThreashold(), and preInitialize().
|
private |
Definition at line 100 of file SegmentationConfig.h.
Referenced by getOnnxModelPath(), and preInitialize().
|
private |
Definition at line 95 of file SegmentationConfig.h.
Referenced by getAlgorithmOption(), and preInitialize().