SourceXtractorPlusPlus  0.18
SourceXtractor++, the next generation SExtractor
 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  ML
44  };
45 
49  virtual ~SegmentationConfig() = default;
50 
52  explicit SegmentationConfig(long manager_id);
53 
55  void preInitialize(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 
78  return m_onnx_model_path;
79  }
80 
81  double getMLThreashold() const {
82  return m_ml_threshold;
83  }
84 
85 
86 private:
91 
94 
99 }; /* End of SegmentationConfig class */
100 
101 } /* namespace SourceXtractor */
102 
103 
104 #endif
virtual ~SegmentationConfig()=default
Destructor.
SegmentationConfig(long manager_id)
Constructs a new SegmentationConfig object.
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:65
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