SourceXtractorPlusPlus 0.18
SourceXtractor++, the next generation SExtractor
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
29namespace SourceXtractor {
30
37public:
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
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
86private:
91
94
99}; /* End of SegmentationConfig class */
100
101} /* namespace SourceXtractor */
102
103
104#endif
Used to select a Segmentation algorithm.
std::shared_ptr< DetectionImageFrame::ImageFilter > m_filter
SegmentationConfig(long manager_id)
Constructs a new SegmentationConfig object.
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
std::shared_ptr< DetectionImageFrame::ImageFilter > getFilter() const
void preInitialize(const UserValues &args) override
std::shared_ptr< DetectionImageFrame::ImageFilter > getDefaultFilter() const
std::shared_ptr< DetectionImageFrame::ImageFilter > loadFITSFilter(const std::string &filename) const
std::shared_ptr< DetectionImageFrame::ImageFilter > loadASCIIFilter(const std::string &filename) const
std::shared_ptr< DetectionImageFrame::ImageFilter > loadFilter(const std::string &filename) const
virtual ~SegmentationConfig()=default
Destructor.
string filename
Definition: conf.py:65