SourceXtractorPlusPlus
0.15
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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_ */
std::shared_ptr
WeightImageConfig.h
SourceXtractor::BackgroundModel
Definition:
BackgroundAnalyzer.h:33
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::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::SeFloat
SeFloat32 SeFloat
Definition:
Types.h:32
SourceXtractor::BackgroundAnalyzer
Definition:
BackgroundAnalyzer.h:65
BackgroundAnalyzer.h
SourceXtractor::SE2BackgroundLevelAnalyzer::m_weight_type
WeightImageConfig::WeightType m_weight_type
Definition:
SE2BackgroundLevelAnalyzer.h:54
SourceXtractor::WeightImageConfig::WeightType
WeightType
Definition:
WeightImageConfig.h:36
Image.h
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:59
SourceXtractor::SE2BackgroundLevelAnalyzer::m_cell_size
std::array< int, 2 > m_cell_size
Definition:
SE2BackgroundLevelAnalyzer.h:51
Frame.h
std::vector< int >
std::array< int, 2 >
SourceXtractor::Image
Interface representing an image.
Definition:
Image.h:43
SourceXtractor::SE2BackgroundLevelAnalyzer::m_smoothing_box
std::array< int, 2 > m_smoothing_box
Definition:
SE2BackgroundLevelAnalyzer.h:52
Generated by
1.8.5