SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
SEImplementation
Configuration
DetectionImageConfig.h
Go to the documentation of this file.
1
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
58
double
getGain
(
size_t
index = 0)
const
{
return
m_extensions
.at(index).m_gain; }
59
double
getSaturation
(
size_t
index = 0)
const
{
return
m_extensions
.at(index).m_saturation; }
60
int
getInterpolationGap
(
size_t
index = 0)
const
{
return
m_extensions
.at(index).m_interpolation_gap; }
61
62
// Note: flux scale is already applied to all values returned,
63
// we still need to know what it was to adjust the weight map
64
double
getOriginalFluxScale
(
size_t
index = 0)
const
{
return
m_extensions
.at(index).m_flux_scale; }
65
66
// Get the detection image source
67
std::shared_ptr<ImageSource>
getImageSource
(
size_t
index = 0) {
68
return
m_extensions
.at(index).m_image_source;
69
}
70
71
size_t
getExtensionsNb
()
const
{
72
return
m_extensions
.size();
73
}
74
75
private
:
76
std::string
m_detection_image_path
;
77
78
struct
DetectionImageExtension
{
79
std::shared_ptr<DetectionImage>
m_detection_image
;
80
std::shared_ptr<CoordinateSystem>
m_coordinate_system
;
81
std::shared_ptr<ImageSource>
m_image_source
;
82
83
double
m_gain
{0.0};
84
double
m_saturation
{0.0};
85
double
m_flux_scale
{1.0};
86
87
int
m_interpolation_gap
{0};
88
};
89
90
std::vector<DetectionImageExtension>
m_extensions
;
91
92
};
/* End of DetectionImageConfig class */
93
94
}
/* namespace SourceXtractor */
95
96
97
#endif
CoordinateSystem.h
ImageSourceWithMetadata.h
Image.h
std::string
Euclid::Configuration::Configuration
SourceXtractor::DetectionImageConfig
Provides the detection image.
Definition
DetectionImageConfig.h:38
SourceXtractor::DetectionImageConfig::getDetectionImage
std::shared_ptr< DetectionImage > getDetectionImage(size_t index=0) const
Definition
DetectionImageConfig.cpp:188
SourceXtractor::DetectionImageConfig::getImageSource
std::shared_ptr< ImageSource > getImageSource(size_t index=0)
Definition
DetectionImageConfig.h:67
SourceXtractor::DetectionImageConfig::getDetectionImagePath
std::string getDetectionImagePath() const
Definition
DetectionImageConfig.cpp:184
SourceXtractor::DetectionImageConfig::getCoordinateSystem
std::shared_ptr< CoordinateSystem > getCoordinateSystem(size_t index=0) const
Definition
DetectionImageConfig.cpp:195
SourceXtractor::DetectionImageConfig::getExtensionsNb
size_t getExtensionsNb() const
Definition
DetectionImageConfig.h:71
SourceXtractor::DetectionImageConfig::getOriginalFluxScale
double getOriginalFluxScale(size_t index=0) const
Definition
DetectionImageConfig.h:64
SourceXtractor::DetectionImageConfig::initialize
void initialize(const UserValues &args) override
Definition
DetectionImageConfig.cpp:69
SourceXtractor::DetectionImageConfig::m_extensions
std::vector< DetectionImageExtension > m_extensions
Definition
DetectionImageConfig.h:90
SourceXtractor::DetectionImageConfig::DetectionImageConfig
DetectionImageConfig(long manager_id)
Constructs a new DetectionImageConfig object.
Definition
DetectionImageConfig.cpp:49
SourceXtractor::DetectionImageConfig::~DetectionImageConfig
virtual ~DetectionImageConfig()=default
Destructor.
SourceXtractor::DetectionImageConfig::getInterpolationGap
int getInterpolationGap(size_t index=0) const
Definition
DetectionImageConfig.h:60
SourceXtractor::DetectionImageConfig::m_detection_image_path
std::string m_detection_image_path
Definition
DetectionImageConfig.h:76
SourceXtractor::DetectionImageConfig::getSaturation
double getSaturation(size_t index=0) const
Definition
DetectionImageConfig.h:59
SourceXtractor::DetectionImageConfig::getGain
double getGain(size_t index=0) const
Definition
DetectionImageConfig.h:58
SourceXtractor::DetectionImageConfig::getProgramOptions
std::map< std::string, Configuration::OptionDescriptionList > getProgramOptions() override
Definition
DetectionImageConfig.cpp:52
std::function
std::map
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::DetectionImageConfig::DetectionImageExtension
Definition
DetectionImageConfig.h:78
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_interpolation_gap
int m_interpolation_gap
Definition
DetectionImageConfig.h:87
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_image_source
std::shared_ptr< ImageSource > m_image_source
Definition
DetectionImageConfig.h:81
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_detection_image
std::shared_ptr< DetectionImage > m_detection_image
Definition
DetectionImageConfig.h:79
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_saturation
double m_saturation
Definition
DetectionImageConfig.h:84
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_flux_scale
double m_flux_scale
Definition
DetectionImageConfig.h:85
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_coordinate_system
std::shared_ptr< CoordinateSystem > m_coordinate_system
Definition
DetectionImageConfig.h:80
SourceXtractor::DetectionImageConfig::DetectionImageExtension::m_gain
double m_gain
Definition
DetectionImageConfig.h:83
Generated by
1.10.0