SourceXtractorPlusPlus
0.11
Please provide a description of the project.
SEImplementation
SEImplementation
Configuration
WeightImageConfig.h
Go to the documentation of this file.
1
17
/*
18
* WeightImageConfig.h
19
*
20
* Created on: Oct 7, 2016
21
* Author: mschefer
22
*/
23
24
#ifndef _SEIMPLEMENTATION_CONFIGURATION_WEIGHTIMAGECONFIG_H_
25
#define _SEIMPLEMENTATION_CONFIGURATION_WEIGHTIMAGECONFIG_H_
26
27
#include "
Configuration/Configuration.h
"
28
#include "
SEFramework/Image/Image.h
"
29
30
namespace
SourceXtractor
{
31
32
class
WeightImageConfig
:
public
Euclid::Configuration::Configuration
{
33
34
public
:
35
36
enum class
WeightType
{
37
WEIGHT_TYPE_NONE
,
38
WEIGHT_TYPE_FROM_BACKGROUND
,
39
WEIGHT_TYPE_RMS
,
40
WEIGHT_TYPE_VARIANCE
,
41
WEIGHT_TYPE_WEIGHT
,
42
};
43
44
virtual
~WeightImageConfig
() =
default
;
45
WeightImageConfig
(
long
manager_id);
46
47
std::map<std::string, Configuration::OptionDescriptionList>
getProgramOptions
()
override
;
48
void
initialize
(
const
UserValues
& args)
override
;
49
50
std::shared_ptr<WeightImage>
getWeightImage
()
const
{
51
return
m_weight_image
;
52
}
53
54
WeightType
getWeightType
()
const
{
55
return
m_weight_type
;
56
}
57
58
bool
isWeightAbsolute
()
const
{
59
return
m_absolute_weight
;
60
}
61
62
WeightImage::PixelType
getWeightThreshold
()
const
{
63
return
m_weight_threshold
;
64
}
65
66
bool
symmetryUsage
()
const
{
67
return
m_symmetry_usage
;
68
}
69
70
static
std::shared_ptr<WeightImage>
convertWeightMap
(
std::shared_ptr<WeightImage>
weight_image,
WeightType
weight_type,
WeightImage::PixelType
scaling = 1);
71
72
private
:
73
74
std::shared_ptr<WeightImage>
m_weight_image
;
75
WeightType
m_weight_type
;
76
bool
m_absolute_weight
;
77
WeightImage::PixelType
m_weight_scaling
;
78
WeightImage::PixelType
m_weight_threshold
;
79
bool
m_symmetry_usage
;
80
};
81
82
83
}
84
85
86
#endif
/* _SEIMPLEMENTATION_CONFIGURATION_WEIGHTIMAGECONFIG_H_ */
std::shared_ptr
SourceXtractor::WeightImageConfig::m_weight_threshold
WeightImage::PixelType m_weight_threshold
Definition:
WeightImageConfig.h:78
SourceXtractor::Image::PixelType
T PixelType
Definition:
Image.h:47
Euclid::Configuration::Configuration
SourceXtractor::WeightImageConfig::getWeightThreshold
WeightImage::PixelType getWeightThreshold() const
Definition:
WeightImageConfig.h:62
SourceXtractor::WeightImageConfig::m_weight_image
std::shared_ptr< WeightImage > m_weight_image
Definition:
WeightImageConfig.h:74
std::map
STL class.
SourceXtractor::WeightImageConfig::WeightType
WeightType
Definition:
WeightImageConfig.h:36
Image.h
SourceXtractor::WeightImageConfig::convertWeightMap
static std::shared_ptr< WeightImage > convertWeightMap(std::shared_ptr< WeightImage > weight_image, WeightType weight_type, WeightImage::PixelType scaling=1)
Definition:
WeightImageConfig.cpp:200
SourceXtractor::WeightImageConfig::WeightType::WEIGHT_TYPE_RMS
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::WeightImageConfig::getWeightType
WeightType getWeightType() const
Definition:
WeightImageConfig.h:54
SourceXtractor::WeightImageConfig::m_weight_scaling
WeightImage::PixelType m_weight_scaling
Definition:
WeightImageConfig.h:77
SourceXtractor::WeightImageConfig::WeightImageConfig
WeightImageConfig(long manager_id)
Definition:
WeightImageConfig.cpp:50
SourceXtractor::WeightImageConfig::symmetryUsage
bool symmetryUsage() const
Definition:
WeightImageConfig.h:66
SourceXtractor::WeightImageConfig::WeightType::WEIGHT_TYPE_FROM_BACKGROUND
SourceXtractor::WeightImageConfig::getProgramOptions
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
Definition:
WeightImageConfig.cpp:61
SourceXtractor::WeightImageConfig::getWeightImage
std::shared_ptr< WeightImage > getWeightImage() const
Definition:
WeightImageConfig.h:50
SourceXtractor::WeightImageConfig::WeightType::WEIGHT_TYPE_WEIGHT
SourceXtractor::WeightImageConfig::~WeightImageConfig
virtual ~WeightImageConfig()=default
SourceXtractor::WeightImageConfig::initialize
void initialize(const UserValues &args) override
Definition:
WeightImageConfig.cpp:78
SourceXtractor::WeightImageConfig::m_symmetry_usage
bool m_symmetry_usage
Definition:
WeightImageConfig.h:79
SourceXtractor::WeightImageConfig::m_weight_type
WeightType m_weight_type
Definition:
WeightImageConfig.h:75
SourceXtractor::WeightImageConfig::m_absolute_weight
bool m_absolute_weight
Definition:
WeightImageConfig.h:76
Configuration.h
SourceXtractor::WeightImageConfig::isWeightAbsolute
bool isWeightAbsolute() const
Definition:
WeightImageConfig.h:58
SourceXtractor::WeightImageConfig::WeightType::WEIGHT_TYPE_NONE
SourceXtractor::WeightImageConfig::WeightType::WEIGHT_TYPE_VARIANCE
SourceXtractor::WeightImageConfig
Definition:
WeightImageConfig.h:32
Euclid::Configuration::Configuration::UserValues
std::map< std::string, boost::program_options::variable_value > UserValues
Generated by
1.8.14