SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
25
28
30
31namespace SourceXtractor {
32
34
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
96 return "ErrorEllipse";
97}
98
99}
100
std::string getIdString() const override
void registerPlugin(PluginAPI &plugin_api) override
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
static StaticPlugin< ErrorEllipsePlugin > error_ellipse_plugin