SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
virtual ~SegmentationConfig()=default
Destructor.
SegmentationConfig(long manager_id)
Constructs a new SegmentationConfig object.
void initialize(const UserValues &args) override
STL class.
std::shared_ptr< DetectionImageFrame::ImageFilter > m_filter
STL class.
std::shared_ptr< DetectionImageFrame::ImageFilter > loadFilter(const std::string &filename) const
string filename
Definition: conf.py:63
Used to select a Segmentation algorithm.
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
std::shared_ptr< DetectionImageFrame::ImageFilter > loadFITSFilter(const std::string &filename) const
std::shared_ptr< DetectionImageFrame::ImageFilter > loadASCIIFilter(const std::string &filename) const
void preInitialize(const UserValues &args) override
std::shared_ptr< DetectionImageFrame::ImageFilter > getFilter() const
std::shared_ptr< DetectionImageFrame::ImageFilter > getDefaultFilter() const