SourceXtractorPlusPlus  0.15
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  BFS
43  };
44 
48  virtual ~SegmentationConfig() = default;
49 
51  SegmentationConfig(long manager_id);
52 
54  void preInitialize(const UserValues& args) override;
55  void initialize(const UserValues& args) override;
56 
58  return m_selected_algorithm;
59  }
60 
61  int getLutzWindowSize() const {
62  return m_lutz_window_size;
63  }
64 
65  int getBfsMaxDelta() const {
66  return m_bfs_max_delta;
67  }
68 
69  bool isFilteringEnabled() const {
70  return m_filter != nullptr;
71  }
72 
74  return m_filter;
75  }
76 
77 private:
82 
85 
88 }; /* End of SegmentationConfig class */
89 
90 } /* namespace SourceXtractor */
91 
92 
93 #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