SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
30namespace SourceXtractor {
31
32
34public:
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
46
50
52 return m_scaling_factor;
53 }
54
56 return m_median_rms;
57 }
58
59private:
63};
64
66public:
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 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
virtual ~BackgroundAnalyzer()=default
std::shared_ptr< Image< SeFloat > > getVarianceMap() const
std::shared_ptr< Image< SeFloat > > m_background_level
std::shared_ptr< Image< SeFloat > > m_background_variance
std::shared_ptr< Image< SeFloat > > getLevelMap() const
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:44
T fabs(T... args)
SeFloat32 SeFloat
Definition Types.h:32