SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AssocModeConfig.h
Go to the documentation of this file.
1
19#ifndef _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_
20#define _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_
21
22#include <boost/algorithm/string/split.hpp>
23
24#include "Configuration/Configuration.h"
25#include "Table/TableReader.h"
26
28
29namespace SourceXtractor {
30
32
33public:
34
35 enum class AssocMode {
36 UNKNOWN,
37 FIRST,
38 NEAREST,
39 MIN,
40 MAX,
41 MEAN,
43 SUM,
45 };
46
47 enum class AssocFilter {
48 ALL,
49 MATCHED,
51 };
52
53 enum class AssocCoordType {
54 PIXEL,
55 WORLD
56 };
57
66
67 explicit AssocModeConfig(long manager_id);
68 virtual ~AssocModeConfig() = default;
69
71 void initialize(const UserValues& args) override;
72
74 return m_assoc_mode;
75 }
76
77 double getAssocRadius() const {
78 return m_assoc_radius;
79 }
80
84
86 return m_columns_idx;
87 }
88
92
93private:
94 void readCommonConfig(const UserValues& args);
96 void readConfigFromFile(const std::string& filename);
98
99 void checkConfig();
100 void printConfig();
103
106
112
117
120
122};
123
124} /* namespace SourceXtractor */
125
126
127#endif /* _SEIMPLEMENTATION_PLUGIN_ASSOCMODE_ASSOCMODECONFIG_H_ */
std::map< std::string, boost::program_options::variable_value > UserValues
std::map< std::string, OptionDescriptionList > getProgramOptions() override
std::vector< CatalogEntry > readTable(const Euclid::Table::Table &table, const std::vector< int > &columns, const std::vector< int > &copy_columns, bool use_world, std::shared_ptr< CoordinateSystem > coordinate_system=nullptr)
void readConfigFromFile(const std::string &filename)
void readConfigFromParams(const UserValues &args)
void initialize(const UserValues &args) override
const std::vector< std::vector< CatalogEntry > > & getCatalogs() const
const std::vector< int > & getColumnsIdx() const
std::map< std::string, unsigned int > parseConfigFile(const std::string &filename)
std::vector< std::string > getColumnsNames() const
void readCommonConfig(const UserValues &args)
std::vector< std::vector< CatalogEntry > > m_catalogs
virtual ~AssocModeConfig()=default
std::map< std::string, unsigned int > m_assoc_columns
void readCatalogs(const std::string &filename, const std::vector< int > &columns, AssocCoordType assoc_coord_type)
AssocCoordType getCoordinateType(const UserValues &args) const
std::vector< std::string > m_custom_column_names