SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
SEImplementation
Configuration
DetectionImageConfig.h
Go to the documentation of this file.
1
22
23
#ifndef _SEIMPLEMENTATION_DETECTIONIMAGECONFIG_H
24
#define _SEIMPLEMENTATION_DETECTIONIMAGECONFIG_H
25
26
#include "Configuration/Configuration.h"
27
#include "
SEFramework/Image/Image.h
"
28
#include "
SEFramework/Image/ImageSourceWithMetadata.h
"
29
#include "
SEFramework/CoordinateSystem/CoordinateSystem.h
"
30
31
namespace
SourceXtractor
{
32
38
class
DetectionImageConfig
:
public
Euclid::Configuration::Configuration
{
39
public
:
40
44
virtual
~DetectionImageConfig
() =
default
;
45
47
explicit
DetectionImageConfig
(
long
manager_id);
48
49
std::map<std::string, Configuration::OptionDescriptionList>
getProgramOptions
()
override
;
50
51
void
initialize
(
const
UserValues
& args)
override
;
52
53
std::string
getDetectionImagePath
()
const
;
54
55
std::shared_ptr<DetectionImage>
getDetectionImage
(
size_t
index = 0)
const
;
56
std::shared_ptr<CoordinateSystem>
getCoordinateSystem
(
size_t
index = 0)
const
;
57
bool
isReferenceImage
()
const
{
return
m_is_reference_image
; }
58
59
double
getGain
(
size_t
index = 0)
const
{
return
m_extensions
.at(index).m_gain; }
60
double
getSaturation
(
size_t
index = 0)
const
{
return
m_extensions
.at(index).m_saturation; }
61
int
getInterpolationGap
(
size_t
index = 0)
const
{
return
m_extensions
.at(index).m_interpolation_gap; }
62
63
// Note: flux scale is already applied to all values returned,
64
// we still need to know what it was to adjust the weight map
65
double
getOriginalFluxScale
(
size_t
index = 0)
const
{
return
m_extensions
.at(index).m_flux_scale; }
66
67
// Get the detection image source
68
std::shared_ptr<ImageSource>
getImageSource
(
size_t
index = 0) {
69
return
m_extensions
.at(index).m_image_source;
70
}
71
72
size_t
getExtensionsNb
()
const
{
73
if
(
m_is_reference_image
) {
74
return
0;
75
}
else
{
76
return
m_extensions
.size();
77
}
78
}
79
80
private
:
81
std::string
m_detection_image_path
;
82
83
struct
DetectionImageExtension
{
84
std::shared_ptr<DetectionImage>
m_detection_image
;
85
std::shared_ptr<CoordinateSystem>
m_coordinate_system
;
86
std::shared_ptr<ImageSource>
m_image_source
;
87
88
double
m_gain
{0.0};
89
double
m_saturation
{0.0};
90
double
m_flux_scale
{1.0};
91
92
int
m_interpolation_gap
{0};
93
};
94
95
std::vector<DetectionImageExtension>
m_extensions
;
96
97
bool
m_is_reference_image
{
false
};
98
};
/* End of DetectionImageConfig class */
99
100
}
/* namespace SourceXtractor */
101
102
103
#endif
CoordinateSystem.h
ImageSourceWithMetadata.h
Image.h
std::string
Euclid::Configuration::Configuration
Euclid::Configuration::Configuration::UserValues
std::map< std::string, boost::program_options::variable_value > UserValues
SourceXtractor::DetectionImageConfig::getDetectionImage
std::shared_ptr< DetectionImage > getDetectionImage(size_t index=0) const
Definition
DetectionImageConfig.cpp:205
SourceXtractor::DetectionImageConfig::getImageSource
std::shared_ptr< ImageSource > getImageSource(size_t index=0)
Definition
DetectionImageConfig.h:68
SourceXtractor::DetectionImageConfig::getDetectionImagePath
std::string getDetectionImagePath() const
Definition
DetectionImageConfig.cpp:201
SourceXtractor::DetectionImageConfig::getCoordinateSystem
std::shared_ptr< CoordinateSystem > getCoordinateSystem(size_t index=0) const
Definition
DetectionImageConfig.cpp:215
SourceXtractor::DetectionImageConfig::getExtensionsNb
size_t getExtensionsNb() const
Definition
DetectionImageConfig.h:72
SourceXtractor::DetectionImageConfig::m_is_reference_image
bool m_is_reference_image
Definition
DetectionImageConfig.h:97
SourceXtractor::DetectionImageConfig::getOriginalFluxScale
double getOriginalFluxScale(size_t index=0) const
Definition
DetectionImageConfig.h:65
SourceXtractor::DetectionImageConfig::initialize
void initialize(const UserValues &args) override
Definition
DetectionImageConfig.cpp:72
SourceXtractor::DetectionImageConfig::m_extensions
std::vector< DetectionImageExtension > m_extensions
Definition
DetectionImageConfig.h:95
SourceXtractor::DetectionImageConfig::DetectionImageConfig
DetectionImageConfig(long manager_id)
Constructs a new DetectionImageConfig object.
Definition
DetectionImageConfig.cpp:50
SourceXtractor::DetectionImageConfig::~DetectionImageConfig
virtual ~DetectionImageConfig()=default
Destructor.
SourceXtractor::DetectionImageConfig::getInterpolationGap
int getInterpolationGap(size_t index=0) const
Definition
DetectionImageConfig.h:61
SourceXtractor::DetectionImageConfig::m_detection_image_path
std::string m_detection_image_path
Definition
DetectionImageConfig.h:81
SourceXtractor::DetectionImageConfig::getSaturation
double getSaturation(size_t index=0) const
Definition
DetectionImageConfig.h:60
SourceXtractor::DetectionImageConfig::getGain
double getGain(size_t index=0) const
Definition
DetectionImageConfig.h:59
SourceXtractor::DetectionImageConfig::getProgramOptions
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
Definition
DetectionImageConfig.cpp:53
SourceXtractor::DetectionImageConfig::isReferenceImage
bool isReferenceImage() const
Definition
DetectionImageConfig.h:57
std::map
SourceXtractor
Definition
Aperture.h:30
std::shared_ptr
SourceXtractor::DetectionImageConfig::DetectionImageExtension
Definition
DetectionImageConfig.h:83
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_interpolation_gap
int m_interpolation_gap
Definition
DetectionImageConfig.h:92
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_image_source
std::shared_ptr< ImageSource > m_image_source
Definition
DetectionImageConfig.h:86
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_detection_image
std::shared_ptr< DetectionImage > m_detection_image
Definition
DetectionImageConfig.h:84
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_saturation
double m_saturation
Definition
DetectionImageConfig.h:89
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_flux_scale
double m_flux_scale
Definition
DetectionImageConfig.h:90
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_coordinate_system
std::shared_ptr< CoordinateSystem > m_coordinate_system
Definition
DetectionImageConfig.h:85
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_gain
double m_gain
Definition
DetectionImageConfig.h:88
std::vector
Generated by
1.15.0