SourceXtractorPlusPlus  0.16
Please provide a description of the project.
BackgroundAnalyzer.h
Go to the documentation of this file.
1 
17 /*
18  * BackgroundAnalyzer.h
19  *
20  * Created on: Mar 28, 2017
21  * Author: mschefer
22  */
23 
24 #ifndef _SEFRAMEWORK_BACKGROUND_BACKGROUNDANALYZER_H_
25 #define _SEFRAMEWORK_BACKGROUND_BACKGROUNDANALYZER_H_
26 
29 
30 namespace SourceXtractor {
31 
32 
34 public:
36  SeFloat scaling_factor, SeFloat median_rms)
37  : m_background_level(background_level)
39  FunctionalImage<SeFloat>::create(background_variance, [](int, int, SeFloat v) -> SeFloat { return ::fabs(v); }))
40  , m_scaling_factor(scaling_factor)
41  , m_median_rms(median_rms) {}
42 
44  return m_background_level;
45  }
46 
48  return m_background_variance;
49  }
50 
52  return m_scaling_factor;
53  }
54 
56  return m_median_rms;
57  }
58 
59 private:
62  SeFloat m_scaling_factor, m_median_rms;
63 };
64 
66 public:
67 
68  virtual ~BackgroundAnalyzer() = default;
69 
72  std::shared_ptr<Image<unsigned char>> mask, WeightImage::PixelType variance_threshold) const = 0;
73 };
74 
75 }
76 
77 
78 #endif /* SEFRAMEWORK_SEFRAMEWORK_BACKGROUND_BACKGROUNDANALYZER_H_ */
virtual ~BackgroundAnalyzer()=default
virtual BackgroundModel analyzeBackground(std::shared_ptr< DetectionImage > image, std::shared_ptr< WeightImage > variance_map, std::shared_ptr< Image< unsigned char >> mask, WeightImage::PixelType variance_threshold) const =0
std::shared_ptr< Image< SeFloat > > getLevelMap() const
std::shared_ptr< Image< SeFloat > > getVarianceMap() const
std::shared_ptr< Image< SeFloat > > m_background_level
std::shared_ptr< Image< SeFloat > > m_background_variance
BackgroundModel(std::shared_ptr< Image< SeFloat >> background_level, std::shared_ptr< Image< SeFloat >> background_variance, SeFloat scaling_factor, SeFloat median_rms)
Interface representing an image.
Definition: Image.h:43
T fabs(T... args)
SeFloat32 SeFloat
Definition: Types.h:32