SourceXtractorPlusPlus  0.10
Please provide a description of the project.
SegmentationConfig.h
Go to the documentation of this file.
1 
23 #ifndef _SEIMPLEMENTATION_SEGMENTATIONCONFIG_H
24 #define _SEIMPLEMENTATION_SEGMENTATIONCONFIG_H
25 
26 #include <memory>
28 
29 namespace SourceXtractor {
30 
37 public:
38 
39  enum class Algorithm {
40  UNKNOWN,
41  LUTZ
42  };
43 
47  virtual ~SegmentationConfig() = default;
48 
50  SegmentationConfig(long manager_id);
51 
53  void preInitialize(const UserValues& args) override;
54  void initialize(const UserValues& args) override;
55 
57  return m_selected_algorithm;
58  }
59 
60  int getLutzWindowSize() const {
61  return m_lutz_window_size;
62  }
63 
64  bool isFilteringEnabled() const {
65  return m_filter != nullptr;
66  }
67 
69  return m_filter;
70  }
71 
72 private:
77 
80 
82 }; /* End of SegmentationConfig class */
83 
84 } /* namespace SourceXtractor */
85 
86 
87 #endif
SourceXtractor::SegmentationConfig::m_filter
std::shared_ptr< DetectionImageFrame::ImageFilter > m_filter
Definition: SegmentationConfig.h:79
std::string
STL class.
std::shared_ptr
STL class.
SourceXtractor::SegmentationConfig::preInitialize
void preInitialize(const UserValues &args) override
Definition: SegmentationConfig.cpp:72
conf.filename
string filename
Definition: conf.py:63
SourceXtractor::SegmentationConfig::getProgramOptions
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
Definition: SegmentationConfig.cpp:59
SourceXtractor::SegmentationConfig::m_lutz_window_size
int m_lutz_window_size
Definition: SegmentationConfig.h:81
SourceXtractor::SegmentationConfig::getDefaultFilter
std::shared_ptr< DetectionImageFrame::ImageFilter > getDefaultFilter() const
Definition: SegmentationConfig.cpp:98
SourceXtractor::SegmentationConfig::~SegmentationConfig
virtual ~SegmentationConfig()=default
Destructor.
SourceXtractor::SegmentationConfig::isFilteringEnabled
bool isFilteringEnabled() const
Definition: SegmentationConfig.h:64
SourceXtractor::SegmentationConfig::getLutzWindowSize
int getLutzWindowSize() const
Definition: SegmentationConfig.h:60
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::SegmentationConfig::m_selected_algorithm
Algorithm m_selected_algorithm
Definition: SegmentationConfig.h:78
SourceXtractor::SegmentationConfig
Used to select a Segmentation algorithm.
Definition: SegmentationConfig.h:36
SourceXtractor::SegmentationConfig::SegmentationConfig
SegmentationConfig(long manager_id)
Constructs a new SegmentationConfig object.
Definition: SegmentationConfig.cpp:55
SourceXtractor::SegmentationConfig::loadFilter
std::shared_ptr< DetectionImageFrame::ImageFilter > loadFilter(const std::string &filename) const
Definition: SegmentationConfig.cpp:116
std::map
STL class.
SourceXtractor::SegmentationConfig::loadFITSFilter
std::shared_ptr< DetectionImageFrame::ImageFilter > loadFITSFilter(const std::string &filename) const
Definition: SegmentationConfig.cpp:130
Configuration.h
SourceXtractor::SegmentationConfig::Algorithm::LUTZ
@ LUTZ
SourceXtractor::SegmentationConfig::getAlgorithmOption
Algorithm getAlgorithmOption() const
Definition: SegmentationConfig.h:56
SourceXtractor::SegmentationConfig::loadASCIIFilter
std::shared_ptr< DetectionImageFrame::ImageFilter > loadASCIIFilter(const std::string &filename) const
Definition: SegmentationConfig.cpp:142
Euclid::Configuration::Configuration
SourceXtractor::SegmentationConfig::getFilter
std::shared_ptr< DetectionImageFrame::ImageFilter > getFilter() const
Definition: SegmentationConfig.h:68
SourceXtractor::SegmentationConfig::Algorithm::UNKNOWN
@ UNKNOWN
SourceXtractor::SegmentationConfig::initialize
void initialize(const UserValues &args) override
Definition: SegmentationConfig.cpp:94
Euclid::Configuration::Configuration::UserValues
std::map< std::string, boost::program_options::variable_value > UserValues
SourceXtractor::SegmentationConfig::Algorithm
Algorithm
Definition: SegmentationConfig.h:39