SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SegmentationConfig.h
Go to the documentation of this file.
1/*
2 * Copyright © 2019-2022 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation; either version 3.0 of the License, or (at your option)
7 * any later version.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12 * details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
23
24#ifndef _SEIMPLEMENTATION_SEGMENTATIONCONFIG_H
25#define _SEIMPLEMENTATION_SEGMENTATIONCONFIG_H
26
27#include <memory>
28#include "Configuration/Configuration.h"
30
31namespace SourceXtractor {
32
39public:
40
48
52 virtual ~SegmentationConfig() = default;
53
55 explicit SegmentationConfig(long manager_id);
56
58 void preInitialize(const UserValues& args) override;
59
63
64 int getLutzWindowSize() const {
65 return m_lutz_window_size;
66 }
67
68 int getBfsMaxDelta() const {
69 return m_bfs_max_delta;
70 }
71
72 bool isFilteringEnabled() const {
73 return m_filter != nullptr;
74 }
75
79
83
84 double getMLThreashold() const {
85 return m_ml_threshold;
86 }
87
88
89private:
94
97
102}; /* End of SegmentationConfig class */
103
104} /* namespace SourceXtractor */
105
106
107#endif
std::map< std::string, boost::program_options::variable_value > UserValues
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.