SourceXtractorPlusPlus  0.15
Please provide a description of the project.
WeightImageConfig.h
Go to the documentation of this file.
1 
17 /*
18  * WeightImageConfig.h
19  *
20  * Created on: Oct 7, 2016
21  * Author: mschefer
22  */
23 
24 #ifndef _SEIMPLEMENTATION_CONFIGURATION_WEIGHTIMAGECONFIG_H_
25 #define _SEIMPLEMENTATION_CONFIGURATION_WEIGHTIMAGECONFIG_H_
26 
29 
30 namespace SourceXtractor {
31 
33 
34 public:
35 
36  enum class WeightType {
42  };
43 
44  virtual ~WeightImageConfig() = default;
45  WeightImageConfig(long manager_id);
46 
48  void initialize(const UserValues& args) override;
49 
51  return m_weight_image;
52  }
53 
55  return m_weight_type;
56  }
57 
58  bool isWeightAbsolute() const {
59  return m_absolute_weight;
60  }
61 
63  return m_weight_threshold;
64  }
65 
66  bool symmetryUsage() const {
67  return m_symmetry_usage;
68  }
69 
71 
72 private:
73 
80 };
81 
82 
83 }
84 
85 
86 #endif /* _SEIMPLEMENTATION_CONFIGURATION_WEIGHTIMAGECONFIG_H_ */
static std::shared_ptr< WeightImage > convertWeightMap(std::shared_ptr< WeightImage > weight_image, WeightType weight_type, WeightImage::PixelType scaling=1)
WeightImage::PixelType m_weight_threshold
WeightImage::PixelType m_weight_scaling
std::shared_ptr< WeightImage > getWeightImage() const
std::shared_ptr< WeightImage > m_weight_image
WeightImage::PixelType getWeightThreshold() const
void initialize(const UserValues &args) override
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
virtual ~WeightImageConfig()=default