SourceXtractorPlusPlus
0.16
Please provide a description of the project.
SEImplementation
SEImplementation
Background
SE2
SE2BackgroundLevelAnalyzer.h
Go to the documentation of this file.
1
17
/*
18
* Background
19
*
20
* Created on: Oct 11, 2016
21
* Author: mschefer
22
*/
23
24
#ifndef _SEIMPLEMENTATION_BACKGROUND_SE2BACKGROUNDANALYZER_H_
25
#define _SEIMPLEMENTATION_BACKGROUND_SE2BACKGROUNDANALYZER_H_
26
27
#include "
SEFramework/Frame/Frame.h
"
28
#include "
SEFramework/Image/Image.h
"
29
#include "
SEFramework/Background/BackgroundAnalyzer.h
"
30
31
#include "
SEImplementation/Configuration/WeightImageConfig.h
"
32
33
namespace
SourceXtractor
{
34
35
class
SE2BackgroundLevelAnalyzer
:
public
BackgroundAnalyzer
{
36
public
:
37
38
SE2BackgroundLevelAnalyzer
(
const
std::vector<int>
& cell_size,
const
std::vector<int>
& smoothing_box,
39
const
WeightImageConfig::WeightType
weight_type);
40
41
virtual
~SE2BackgroundLevelAnalyzer
() =
default
;
42
43
BackgroundModel
analyzeBackground
(
44
std::shared_ptr<DetectionImage>
image,
std::shared_ptr<WeightImage>
variance_map,
std::shared_ptr
<
Image<unsigned char>
> mask,
WeightImage::PixelType
variance_threshold)
const override
;
45
46
private
:
47
//SeFloat getMedian(std::shared_ptr<DetectionImageFrame> frame) const;
48
49
BackgroundModel
fromSE2Modeller
(
std::shared_ptr<DetectionImage>
image,
std::shared_ptr<WeightImage>
variance_map,
std::shared_ptr
<
Image<unsigned char>
> mask,
WeightImage::PixelType
variance_threshold,
SeFloat
&bck_median,
SeFloat
&var_median)
const
;
50
51
std::array<int, 2>
m_cell_size
;
52
std::array<int, 2>
m_smoothing_box
;
53
54
WeightImageConfig::WeightType
m_weight_type
;
55
};
56
57
}
58
59
#endif
/* _SEIMPLEMENTATION_BACKGROUND_SE2BACKGROUNDANALYZER_H_ */
BackgroundAnalyzer.h
Frame.h
Image.h
WeightImageConfig.h
std::array< int, 2 >
SourceXtractor::BackgroundAnalyzer
Definition:
BackgroundAnalyzer.h:65
SourceXtractor::BackgroundModel
Definition:
BackgroundAnalyzer.h:33
SourceXtractor::Image
Interface representing an image.
Definition:
Image.h:43
SourceXtractor::Image::PixelType
T PixelType
Definition:
Image.h:47
SourceXtractor::SE2BackgroundLevelAnalyzer
Definition:
SE2BackgroundLevelAnalyzer.h:35
SourceXtractor::SE2BackgroundLevelAnalyzer::fromSE2Modeller
BackgroundModel fromSE2Modeller(std::shared_ptr< DetectionImage > image, std::shared_ptr< WeightImage > variance_map, std::shared_ptr< Image< unsigned char >> mask, WeightImage::PixelType variance_threshold, SeFloat &bck_median, SeFloat &var_median) const
Definition:
SE2BackgroundLevelAnalyzer.cpp:97
SourceXtractor::SE2BackgroundLevelAnalyzer::m_smoothing_box
std::array< int, 2 > m_smoothing_box
Definition:
SE2BackgroundLevelAnalyzer.h:52
SourceXtractor::SE2BackgroundLevelAnalyzer::m_cell_size
std::array< int, 2 > m_cell_size
Definition:
SE2BackgroundLevelAnalyzer.h:51
SourceXtractor::SE2BackgroundLevelAnalyzer::~SE2BackgroundLevelAnalyzer
virtual ~SE2BackgroundLevelAnalyzer()=default
SourceXtractor::SE2BackgroundLevelAnalyzer::SE2BackgroundLevelAnalyzer
SE2BackgroundLevelAnalyzer(const std::vector< int > &cell_size, const std::vector< int > &smoothing_box, const WeightImageConfig::WeightType weight_type)
Definition:
SE2BackgroundLevelAnalyzer.cpp:44
SourceXtractor::SE2BackgroundLevelAnalyzer::m_weight_type
WeightImageConfig::WeightType m_weight_type
Definition:
SE2BackgroundLevelAnalyzer.h:54
SourceXtractor::SE2BackgroundLevelAnalyzer::analyzeBackground
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 override
Definition:
SE2BackgroundLevelAnalyzer.cpp:59
SourceXtractor::WeightImageConfig::WeightType
WeightType
Definition:
WeightImageConfig.h:36
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
std::shared_ptr
std::vector< int >
Generated by
1.9.1