SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::SegmentationConfig Class Reference

Used to select a Segmentation algorithm. More...

#include <SegmentationConfig.h>

Inheritance diagram for SourceXtractor::SegmentationConfig:
Collaboration diagram for SourceXtractor::SegmentationConfig:

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::OptionDescriptionListgetProgramOptions () 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 ()
StategetCurrentState ()
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
int m_bfs_max_delta
std::string m_onnx_model_path
double m_ml_threshold

Additional Inherited Members

Protected Member Functions inherited from Euclid::Configuration::Configuration
void declareDependency ()
T & getDependency ()
const T & getDependency () const

Detailed Description

Used to select a Segmentation algorithm.

Definition at line 38 of file SegmentationConfig.h.

Member Enumeration Documentation

◆ Algorithm

Enumerator
UNKNOWN 
LUTZ 
BFS 
ML 
ASSOC 

Definition at line 41 of file SegmentationConfig.h.

Constructor & Destructor Documentation

◆ ~SegmentationConfig()

virtual SourceXtractor::SegmentationConfig::~SegmentationConfig ( )
virtualdefault

Destructor.

◆ SegmentationConfig()

SourceXtractor::SegmentationConfig::SegmentationConfig ( long manager_id)
explicit

Constructs a new SegmentationConfig object.

Definition at line 55 of file SegmentationConfig.cpp.

References Euclid::Configuration::Configuration::Configuration(), m_bfs_max_delta, m_lutz_window_size, m_ml_threshold, and m_selected_algorithm.

Here is the call graph for this function:

Member Function Documentation

◆ getAlgorithmOption()

Algorithm SourceXtractor::SegmentationConfig::getAlgorithmOption ( ) const
inline

Definition at line 60 of file SegmentationConfig.h.

References m_selected_algorithm.

◆ getBfsMaxDelta()

int SourceXtractor::SegmentationConfig::getBfsMaxDelta ( ) const
inline

Definition at line 68 of file SegmentationConfig.h.

References m_bfs_max_delta.

◆ getDefaultFilter()

std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::getDefaultFilter ( ) const
private

Definition at line 120 of file SegmentationConfig.cpp.

References SourceXtractor::VectorImage< T >::create(), std::make_shared(), and SourceXtractor::segConfigLogger.

Referenced by preInitialize().

Here is the call graph for this function:

◆ getFilter()

std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::getFilter ( ) const
inline

Definition at line 76 of file SegmentationConfig.h.

References m_filter.

◆ getLutzWindowSize()

int SourceXtractor::SegmentationConfig::getLutzWindowSize ( ) const
inline

Definition at line 64 of file SegmentationConfig.h.

References m_lutz_window_size.

◆ getMLThreashold()

double SourceXtractor::SegmentationConfig::getMLThreashold ( ) const
inline

Definition at line 84 of file SegmentationConfig.h.

References m_ml_threshold.

◆ getOnnxModelPath()

std::string SourceXtractor::SegmentationConfig::getOnnxModelPath ( ) const
inline

Definition at line 80 of file SegmentationConfig.h.

References m_onnx_model_path.

◆ getProgramOptions()

◆ isFilteringEnabled()

bool SourceXtractor::SegmentationConfig::isFilteringEnabled ( ) const
inline

Definition at line 72 of file SegmentationConfig.h.

References m_filter.

◆ loadASCIIFilter()

std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::loadASCIIFilter ( const std::string & filename) const
private

◆ loadFilter()

std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::loadFilter ( const std::string & filename) const
private

Definition at line 138 of file SegmentationConfig.cpp.

References std::string::length(), loadASCIIFilter(), and loadFITSFilter().

Referenced by preInitialize().

Here is the call graph for this function:

◆ loadFITSFilter()

std::shared_ptr< DetectionImageFrame::ImageFilter > SourceXtractor::SegmentationConfig::loadFITSFilter ( const std::string & filename) const
private

Definition at line 152 of file SegmentationConfig.cpp.

References std::make_shared(), SourceXtractor::FitsReader< T >::readFile(), and SourceXtractor::segConfigLogger.

Referenced by loadFilter().

Here is the call graph for this function:

◆ preInitialize()

Member Data Documentation

◆ m_bfs_max_delta

int SourceXtractor::SegmentationConfig::m_bfs_max_delta
private

Definition at line 99 of file SegmentationConfig.h.

Referenced by getBfsMaxDelta(), preInitialize(), and SegmentationConfig().

◆ m_filter

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

Definition at line 96 of file SegmentationConfig.h.

Referenced by getFilter(), isFilteringEnabled(), and preInitialize().

◆ m_lutz_window_size

int SourceXtractor::SegmentationConfig::m_lutz_window_size
private

Definition at line 98 of file SegmentationConfig.h.

Referenced by getLutzWindowSize(), preInitialize(), and SegmentationConfig().

◆ m_ml_threshold

double SourceXtractor::SegmentationConfig::m_ml_threshold
private

Definition at line 101 of file SegmentationConfig.h.

Referenced by getMLThreashold(), preInitialize(), and SegmentationConfig().

◆ m_onnx_model_path

std::string SourceXtractor::SegmentationConfig::m_onnx_model_path
private

Definition at line 100 of file SegmentationConfig.h.

Referenced by getOnnxModelPath(), and preInitialize().

◆ m_selected_algorithm

Algorithm SourceXtractor::SegmentationConfig::m_selected_algorithm
private

Definition at line 95 of file SegmentationConfig.h.

Referenced by getAlgorithmOption(), preInitialize(), and SegmentationConfig().


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