SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BackgroundAnalyzerFactory.cpp
Go to the documentation of this file.
1 
17 /*
18  * BackgroundAnalyzerFactory.cpp
19  *
20  * Created on: Mar 29, 2017
21  * Author: mschefer
22  */
23 
24 
26 
29 
30 namespace SourceXtractor {
31 
34 }
35 
37  WeightImageConfig::WeightType weight_type) const {
38  // make a SE2 background if cell size and smoothing box are given
39  if (m_cell_size.size() > 0 && m_smoothing_box.size() > 0) {
40  auto background_level = std::make_shared<SE2BackgroundLevelAnalyzer>(m_cell_size, m_smoothing_box, weight_type);
41  return background_level;
42  } else {
43  // make a simple background
44  auto background_level = std::make_shared<SimpleBackgroundAnalyzer>();
45  return background_level;
46  }
47 }
48 
52 }
53 
55  auto se2background_config = manager.getConfiguration<SE2BackgroundConfig>();
56  auto weight_image_config = manager.getConfiguration<WeightImageConfig>();
57  m_cell_size = se2background_config.getCellSize();
58  m_smoothing_box = se2background_config.getSmoothingBox();
59  m_weight_type = weight_image_config.getWeightType();
60 }
61 
62 }
void configure(Euclid::Configuration::ConfigManager &manager) override
Method which should initialize the object.
T size(T...args)
std::shared_ptr< BackgroundAnalyzer > createBackgroundAnalyzer() const
void reportConfigDependencies(Euclid::Configuration::ConfigManager &manager) const override
Registers all the Configuration dependencies.