SourceXtractorPlusPlus
0.10
Please provide a description of the project.
SEImplementation
SEImplementation
Background
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::string
&cell_size,
const
std::string
&smoothing_box,
const
WeightImageConfig::WeightType
weight_type);
39
40
virtual
~SE2BackgroundLevelAnalyzer
() =
default
;
41
42
BackgroundModel
analyzeBackground
(
43
std::shared_ptr<DetectionImage>
image,
std::shared_ptr<WeightImage>
variance_map,
std::shared_ptr
<
Image<unsigned char>
> mask,
WeightImage::PixelType
variance_threshold)
const override
;
44
45
private
:
46
//SeFloat getMedian(std::shared_ptr<DetectionImageFrame> frame) const;
47
48
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
;
49
std::vector<int>
stringToIntVec
(
const
std::string
inString,
const
std::string
delimiters);
50
std::vector<std::string>
stringSplit
(
const
std::string
inString,
const
std::string
delimiters);
51
52
std::vector<int>
m_cell_size
;
53
std::vector<int>
m_smoothing_box
;
54
55
WeightImageConfig::WeightType
m_weight_type
;
56
};
57
58
}
59
60
#endif
/* _SEIMPLEMENTATION_BACKGROUND_SE2BACKGROUNDANALYZER_H_ */
std::shared_ptr
STL class.
WeightImageConfig.h
SourceXtractor::BackgroundModel
Definition:
BackgroundAnalyzer.h:33
SourceXtractor::Image< SeFloat >::PixelType
SeFloat PixelType
Definition:
Image.h:47
SourceXtractor::SE2BackgroundLevelAnalyzer
Definition:
SE2BackgroundLevelAnalyzer.h:35
SourceXtractor::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
SourceXtractor::BackgroundAnalyzer
Definition:
BackgroundAnalyzer.h:71
BackgroundAnalyzer.h
SourceXtractor::SE2BackgroundLevelAnalyzer::m_weight_type
WeightImageConfig::WeightType m_weight_type
Definition:
SE2BackgroundLevelAnalyzer.h:55
std::string
STL class.
SourceXtractor::WeightImageConfig::WeightType
WeightType
Definition:
WeightImageConfig.h:36
Image.h
SourceXtractor::SE2BackgroundLevelAnalyzer::stringSplit
std::vector< std::string > stringSplit(const std::string inString, const std::string delimiters)
Definition:
SE2BackgroundLevelAnalyzer.cpp:179
SourceXtractor::SE2BackgroundLevelAnalyzer::~SE2BackgroundLevelAnalyzer
virtual ~SE2BackgroundLevelAnalyzer()=default
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:68
Frame.h
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::SE2BackgroundLevelAnalyzer::m_smoothing_box
std::vector< int > m_smoothing_box
Definition:
SE2BackgroundLevelAnalyzer.h:53
std::vector< int >
SourceXtractor::Image< unsigned char >
SourceXtractor::SE2BackgroundLevelAnalyzer::SE2BackgroundLevelAnalyzer
SE2BackgroundLevelAnalyzer(const std::string &cell_size, const std::string &smoothing_box, const WeightImageConfig::WeightType weight_type)
Definition:
SE2BackgroundLevelAnalyzer.cpp:45
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:106
SourceXtractor::SE2BackgroundLevelAnalyzer::m_cell_size
std::vector< int > m_cell_size
Definition:
SE2BackgroundLevelAnalyzer.h:52
SourceXtractor::SE2BackgroundLevelAnalyzer::stringToIntVec
std::vector< int > stringToIntVec(const std::string inString, const std::string delimiters)
Definition:
SE2BackgroundLevelAnalyzer.cpp:147
Generated by
1.8.15