SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
ErrorEllipse
ErrorEllipsePlugin.cpp
Go to the documentation of this file.
1
17
/*
18
* ErrorEllipsePlugin.cpp
19
*
20
* Created on: Feb 11 2022
21
* Author: mkuemmel
22
*/
23
24
#include "
SEFramework/Plugin/StaticPlugin.h
"
25
26
#include "
SEImplementation/Plugin/ErrorEllipse/ErrorEllipse.h
"
27
#include "
SEImplementation/Plugin/ErrorEllipse/ErrorEllipseTaskFactory.h
"
28
29
#include "
SEImplementation/Plugin/ErrorEllipse/ErrorEllipsePlugin.h
"
30
31
namespace
SourceXtractor
{
32
33
static
StaticPlugin<ErrorEllipsePlugin>
error_ellipse_plugin
;
34
35
void
ErrorEllipsePlugin::registerPlugin
(
PluginAPI
& plugin_api) {
36
plugin_api.
getTaskFactoryRegistry
().
registerTaskFactory
<
ErrorEllipseTaskFactory
,
ErrorEllipse
>();
37
38
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
ErrorEllipse
,
double
>(
39
"error_ellipse_a"
,
40
[](
const
ErrorEllipse
& prop){
41
return
prop.getEllipseAError();
42
},
43
"pixel"
,
44
"Major axis of the isophotal image centroid error ellipse"
45
);
46
47
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
ErrorEllipse
,
double
>(
48
"error_ellipse_b"
,
49
[](
const
ErrorEllipse
& prop){
50
return
prop.getEllipseBError();
51
},
52
"pixel"
,
53
"Minor axis of the isophotal image centroid error ellipse"
54
);
55
56
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
ErrorEllipse
,
double
>(
57
"error_ellipse_theta"
,
58
[](
const
ErrorEllipse
& prop){
59
return
prop.getEllipseThetaError() * 180.0 / M_PI;
60
},
61
"deg"
,
62
"Position angle of the isophotal image centroid ellipse"
63
);
64
65
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
ErrorEllipse
,
double
>(
66
"error_centroid_x2"
,
67
[](
const
ErrorEllipse
& prop){
68
return
prop.getEllipseCxxError();
69
},
70
"pixel^2"
,
71
"Estimated variance of isophotal image centroid x coordinate"
72
);
73
74
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
ErrorEllipse
,
double
>(
75
"error_centroid_y2"
,
76
[](
const
ErrorEllipse
& prop){
77
return
prop.getEllipseCyyError();
78
},
79
"pixel^2"
,
80
"Estimated variance of isophotal image centroid y coordinate"
81
);
82
83
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
ErrorEllipse
,
double
>(
84
"error_centroid_xy"
,
85
[](
const
ErrorEllipse
& prop){
86
return
prop.getEllipseCxyError();
87
},
88
"pixel^2"
,
89
"Estimated covariance of isophotal image centroid x and y coordinates"
90
);
91
92
plugin_api.
getOutputRegistry
().
enableOutput
<
ErrorEllipse
>(
"ErrorEllipse"
);
93
}
94
95
std::string
ErrorEllipsePlugin::getIdString
()
const
{
96
return
"ErrorEllipse"
;
97
}
98
99
}
100
ErrorEllipsePlugin.h
ErrorEllipseTaskFactory.h
ErrorEllipse.h
StaticPlugin.h
std::string
SourceXtractor::ErrorEllipsePlugin::getIdString
std::string getIdString() const override
Definition
ErrorEllipsePlugin.cpp:95
SourceXtractor::ErrorEllipsePlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition
ErrorEllipsePlugin.cpp:35
SourceXtractor::ErrorEllipseTaskFactory
Definition
ErrorEllipseTaskFactory.h:31
SourceXtractor::ErrorEllipse
Definition
ErrorEllipse.h:32
SourceXtractor::OutputRegistry::registerColumnConverter
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
Definition
OutputRegistry.h:47
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition
OutputRegistry.h:142
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition
PluginAPI.h:40
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition
StaticPlugin.h:38
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition
TaskFactoryRegistry.h:51
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::error_ellipse_plugin
static StaticPlugin< ErrorEllipsePlugin > error_ellipse_plugin
Definition
ErrorEllipsePlugin.cpp:33
Generated by
1.15.0