|
SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
|
#include <AssocModeConfig.h>


Classes | |
| struct | CatalogEntry |
Public Types | |
| enum class | AssocMode { UNKNOWN , FIRST , NEAREST , MIN , MAX , MEAN , MAG_MEAN , SUM , MAG_SUM } |
| enum class | AssocFilter { ALL , MATCHED , UNMATCHED } |
| enum class | AssocCoordType { PIXEL , WORLD } |
| Public Types inherited from Euclid::Configuration::Configuration | |
| enum | State |
| typedef std::vector< boost::program_options::option_description > | OptionDescriptionList |
| typedef std::map< std::string, boost::program_options::variable_value > | UserValues |
Public Member Functions | |
| AssocModeConfig (long manager_id) | |
| virtual | ~AssocModeConfig ()=default |
| std::map< std::string, OptionDescriptionList > | getProgramOptions () override |
| void | initialize (const UserValues &args) override |
| AssocMode | getAssocMode () const |
| double | getAssocRadius () const |
| const std::vector< std::vector< CatalogEntry > > & | getCatalogs () const |
| const std::vector< int > & | getColumnsIdx () const |
| std::vector< std::string > | getColumnsNames () const |
| Public Member Functions inherited from Euclid::Configuration::Configuration | |
| Configuration (long manager_id) | |
| virtual | ~Configuration ()=default |
| virtual void | preInitialize (const UserValues &args) |
| virtual void | postInitialize (const UserValues &args) |
| const std::set< std::type_index > & | getDependencies () |
| State & | getCurrentState () |
| State | getCurrentState () const |
Private Member Functions | |
| void | readCommonConfig (const UserValues &args) |
| void | readConfigFromParams (const UserValues &args) |
| void | readConfigFromFile (const std::string &filename) |
| std::map< std::string, unsigned int > | parseConfigFile (const std::string &filename) |
| void | checkConfig () |
| void | printConfig () |
| void | readCatalogs (const std::string &filename, const std::vector< int > &columns, AssocCoordType assoc_coord_type) |
| AssocCoordType | getCoordinateType (const UserValues &args) const |
| std::vector< CatalogEntry > | readTable (const Euclid::Table::Table &table, const std::vector< int > &columns, const std::vector< int > ©_columns, bool use_world, std::shared_ptr< CoordinateSystem > coordinate_system=nullptr) |
Private Attributes | |
| AssocMode | m_assoc_mode |
| double | m_assoc_radius |
| double | m_default_pixel_size |
| int | m_pixel_width_column |
| int | m_pixel_height_column |
| int | m_group_id_column |
| std::vector< std::vector< CatalogEntry > > | m_catalogs |
| std::vector< int > | m_columns |
| std::vector< int > | m_columns_idx |
| std::vector< std::string > | m_custom_column_names |
| std::map< std::string, unsigned int > | m_assoc_columns |
| std::string | m_filename |
| AssocCoordType | m_assoc_coord_type |
Additional Inherited Members | |
| Protected Member Functions inherited from Euclid::Configuration::Configuration | |
| void | declareDependency () |
| T & | getDependency () |
| const T & | getDependency () const |
Definition at line 31 of file AssocModeConfig.h.
|
strong |
| Enumerator | |
|---|---|
| PIXEL | |
| WORLD | |
Definition at line 53 of file AssocModeConfig.h.
|
strong |
| Enumerator | |
|---|---|
| ALL | |
| MATCHED | |
| UNMATCHED | |
Definition at line 47 of file AssocModeConfig.h.
|
strong |
| Enumerator | |
|---|---|
| UNKNOWN | |
| FIRST | |
| NEAREST | |
| MIN | |
| MAX | |
| MEAN | |
| MAG_MEAN | |
| SUM | |
| MAG_SUM | |
Definition at line 35 of file AssocModeConfig.h.
|
explicit |
Definition at line 117 of file AssocModeConfig.cpp.
References AssocModeConfig(), Euclid::Configuration::Configuration::Configuration(), Euclid::Configuration::Configuration::declareDependency(), SourceXtractor::ConfigManager::getInstance(), m_assoc_coord_type, m_assoc_mode, m_assoc_radius, m_default_pixel_size, m_group_id_column, m_pixel_height_column, m_pixel_width_column, PIXEL, Euclid::Configuration::ConfigManager::registerDependency(), and UNKNOWN.
Referenced by AssocModeConfig().

|
virtualdefault |
|
private |
Definition at line 308 of file AssocModeConfig.cpp.
References Euclid::Configuration::Configuration::getDependency(), Euclid::Configuration::logger, m_assoc_coord_type, m_columns, and PIXEL.
Referenced by initialize().

|
inline |
Definition at line 76 of file AssocModeConfig.h.
References m_assoc_mode.
|
inline |
Definition at line 80 of file AssocModeConfig.h.
References m_assoc_radius.
|
inline |
Definition at line 84 of file AssocModeConfig.h.
References m_catalogs.
|
inline |
Definition at line 88 of file AssocModeConfig.h.
References m_columns_idx.
|
inline |
Definition at line 92 of file AssocModeConfig.h.
References m_custom_column_names.
Referenced by SourceXtractor::ObjectInfo::ObjectInfo(), and SourceXtractor::ObjectInfo::ObjectInfo().
|
private |
Definition at line 327 of file AssocModeConfig.cpp.
References SourceXtractor::ASSOC_COORD_TYPE, std::map< K, T >::at(), std::map< K, T >::end(), std::map< K, T >::find(), and PIXEL.
Referenced by readConfigFromParams().

|
overridevirtual |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 127 of file AssocModeConfig.cpp.
References SourceXtractor::ASSOC_CATALOG, SourceXtractor::ASSOC_COLUMNS, SourceXtractor::ASSOC_CONFIG, SourceXtractor::ASSOC_COORD_TYPE, SourceXtractor::ASSOC_COPY, SourceXtractor::ASSOC_DEFAULT_PIXEL_SIZE, SourceXtractor::ASSOC_FILTER, SourceXtractor::ASSOC_GROUP_ID, SourceXtractor::ASSOC_MODE, SourceXtractor::ASSOC_RADIUS, SourceXtractor::ASSOC_SOURCE_HALF_HEIGHTS, SourceXtractor::ASSOC_SOURCE_HALF_WIDTHS, SourceXtractor::ASSOC_SOURCE_SIZES, and SourceXtractor::ASSOC_TEST.
|
overridevirtual |
Reimplemented from Euclid::Configuration::Configuration.
Definition at line 160 of file AssocModeConfig.cpp.
References SourceXtractor::ASSOC_CONFIG, SourceXtractor::ASSOC_TEST, std::map< K, T >::at(), checkConfig(), std::map< K, T >::end(), std::map< K, T >::find(), m_assoc_coord_type, m_columns, m_filename, printConfig(), readCatalogs(), readCommonConfig(), readConfigFromFile(), and readConfigFromParams().

|
private |
Definition at line 438 of file AssocModeConfig.cpp.
References std::vector< T >::begin(), std::ifstream::close(), std::string::empty(), std::vector< T >::end(), std::find(), std::string::find(), std::getline(), std::ifstream::is_open(), and std::string::substr().
Referenced by readConfigFromFile().

|
private |
Definition at line 490 of file AssocModeConfig.cpp.
References std::endl(), m_assoc_coord_type, m_catalogs, m_columns, m_custom_column_names, m_group_id_column, m_pixel_height_column, m_pixel_width_column, and PIXEL.
Referenced by initialize().

|
private |
Definition at line 340 of file AssocModeConfig.cpp.
References Euclid::Configuration::Configuration::getDependency(), m_catalogs, m_columns_idx, std::make_shared(), readTable(), and WORLD.
Referenced by initialize().

|
private |
Definition at line 186 of file AssocModeConfig.cpp.
References SourceXtractor::ASSOC_CATALOG, SourceXtractor::ASSOC_DEFAULT_PIXEL_SIZE, SourceXtractor::ASSOC_FILTER, SourceXtractor::ASSOC_MODE, SourceXtractor::ASSOC_RADIUS, std::map< K, T >::at(), std::map< K, T >::end(), std::map< K, T >::find(), Euclid::Configuration::Configuration::getDependency(), m_assoc_mode, m_assoc_radius, m_default_pixel_size, m_filename, std::make_shared(), MATCHED, and UNMATCHED.
Referenced by initialize().

|
private |
Definition at line 243 of file AssocModeConfig.cpp.
References m_assoc_columns, m_assoc_coord_type, m_columns, m_columns_idx, m_custom_column_names, m_group_id_column, m_pixel_height_column, m_pixel_width_column, parseConfigFile(), PIXEL, and WORLD.
Referenced by initialize().

|
private |
Definition at line 224 of file AssocModeConfig.cpp.
References SourceXtractor::ASSOC_COLUMNS, SourceXtractor::ASSOC_COPY, SourceXtractor::ASSOC_GROUP_ID, SourceXtractor::ASSOC_SOURCE_HALF_HEIGHTS, SourceXtractor::ASSOC_SOURCE_HALF_WIDTHS, SourceXtractor::ASSOC_SOURCE_SIZES, std::map< K, T >::at(), std::map< K, T >::end(), std::map< K, T >::find(), getCoordinateType(), m_assoc_coord_type, m_columns, m_columns_idx, m_group_id_column, m_pixel_height_column, and m_pixel_width_column.
Referenced by initialize().

|
private |
Definition at line 373 of file AssocModeConfig.cpp.
References std::vector< T >::at(), std::vector< T >::back(), std::vector< T >::emplace_back(), m_default_pixel_size, m_group_id_column, m_pixel_height_column, m_pixel_width_column, and std::vector< T >::size().
Referenced by readCatalogs().

|
private |
Definition at line 122 of file AssocModeConfig.h.
Referenced by readConfigFromFile().
|
private |
Definition at line 125 of file AssocModeConfig.h.
Referenced by AssocModeConfig(), checkConfig(), initialize(), printConfig(), readConfigFromFile(), and readConfigFromParams().
|
private |
Definition at line 110 of file AssocModeConfig.h.
Referenced by AssocModeConfig(), getAssocMode(), and readCommonConfig().
|
private |
Definition at line 111 of file AssocModeConfig.h.
Referenced by AssocModeConfig(), getAssocRadius(), and readCommonConfig().
|
private |
Definition at line 117 of file AssocModeConfig.h.
Referenced by getCatalogs(), printConfig(), and readCatalogs().
|
private |
Definition at line 118 of file AssocModeConfig.h.
Referenced by checkConfig(), initialize(), printConfig(), readConfigFromFile(), and readConfigFromParams().
|
private |
Definition at line 119 of file AssocModeConfig.h.
Referenced by getColumnsIdx(), readCatalogs(), readConfigFromFile(), and readConfigFromParams().
|
private |
Definition at line 120 of file AssocModeConfig.h.
Referenced by getColumnsNames(), printConfig(), and readConfigFromFile().
|
private |
Definition at line 112 of file AssocModeConfig.h.
Referenced by AssocModeConfig(), readCommonConfig(), and readTable().
|
private |
Definition at line 123 of file AssocModeConfig.h.
Referenced by initialize(), and readCommonConfig().
|
private |
Definition at line 115 of file AssocModeConfig.h.
Referenced by AssocModeConfig(), printConfig(), readConfigFromFile(), readConfigFromParams(), and readTable().
|
private |
Definition at line 114 of file AssocModeConfig.h.
Referenced by AssocModeConfig(), printConfig(), readConfigFromFile(), readConfigFromParams(), and readTable().
|
private |
Definition at line 113 of file AssocModeConfig.h.
Referenced by AssocModeConfig(), printConfig(), readConfigFromFile(), readConfigFromParams(), and readTable().