SourceXtractorPlusPlus  0.12
Please provide a description of the project.
ShapeParametersPlugin.cpp
Go to the documentation of this file.
1 
17 /*
18  * ShapeParametersPlugin.cpp
19  *
20  * Created on: Jan 27, 2017
21  * Author: mschefer
22  */
23 
25 
28 
30 
31 namespace SourceXtractor {
32 
34 
37 
39  "ellipse_a",
40  [](const ShapeParameters& prop){
41  return prop.getEllipseA();
42  },
43  "pixel",
44  "Profile RMS along major axis"
45  );
46 
48  "ellipse_b",
49  [](const ShapeParameters& prop){
50  return prop.getEllipseB();
51  },
52  "pixel",
53  "Profile RMS along minor axis"
54  );
55 
57  "ellipse_theta",
58  [](const ShapeParameters& prop){
59  return prop.getEllipseTheta() * 180.0 / M_PI;
60  },
61  "deg",
62  "Position angle (CCW/x)"
63  );
64 
66  "ellipse_cxx",
67  [](const ShapeParameters& prop){
68  return prop.getEllipseCxx();
69  },
70  "pixel^{-2}",
71  "Cxx object ellipse parameter"
72  );
73 
75  "ellipse_cyy",
76  [](const ShapeParameters& prop){
77  return prop.getEllipseCyy();
78  },
79  "pixel^{-2}",
80  "Cyy object ellipse parameter"
81  );
82 
84  "ellipse_cxy",
85  [](const ShapeParameters& prop){
86  return prop.getEllipseCxy();
87  },
88  "pixel^{-2}",
89  "Cxy object ellipse parameter"
90  );
91 
93  "area",
94  [](const ShapeParameters& prop){
95  return prop.getArea();
96  },
97  "pixel",
98  "Total number of detected pixels"
99  );
100 
102  "elongation",
103  [](const ShapeParameters& prop) {
104  return prop.getElongation();
105  },
106  "",
107  "The object elongation (a_image / b_image)"
108  );
109 
111  "ellipticity",
112  [](const ShapeParameters& prop) {
113  return prop.getEllipticity();
114  },
115  "",
116  "The object ellipticity"
117  );
118 
119  plugin_api.getOutputRegistry().enableOutput<ShapeParameters>("ShapeParameters");
120 }
121 
123  return "ShapeParameters";
124 }
125 
126 }
127 
static StaticPlugin< ShapeParametersPlugin > shape_parameters_plugin
void enableOutput(std::string alias_name, bool configurable_output=false)
virtual OutputRegistry & getOutputRegistry() const =0
virtual void registerPlugin(PluginAPI &plugin_api) override
virtual std::string getIdString() const override
STL class.
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")