SourceXtractorPlusPlus  0.8
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PixelCentroidPlugin.cpp
Go to the documentation of this file.
1 
17 /*
18  * PixelCentroidPlugin.cpp
19  *
20  * Created on: Aug 5, 2016
21  * Author: mschefer
22  */
23 
25 
28 
30 
31 namespace SourceXtractor {
32 
34 
37 
39  "pixel_centroid_x",
40  [](const PixelCentroid& prop){
41  return prop.getCentroidX() + 1.0; // add one to use FITS standard coordinates
42  },
43  "[pixel]",
44  "X-position of the object in the detection image"
45  );
46 
48  "pixel_centroid_y",
49  [](const PixelCentroid& prop){
50  return prop.getCentroidY() + 1.0; // add one to use FITS standard coordinates
51  },
52  "[pixel]",
53  "Y-position of the object in the detection image"
54  );
55 
56  plugin_api.getOutputRegistry().enableOutput<PixelCentroid>("PixelCentroid");
57 }
58 
60  return "PixelCentroid";
61 }
62 
63 }
64 
65 
virtual OutputRegistry & getOutputRegistry() const =0
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values...
Definition: PixelCentroid.h:37
STL class.
virtual std::string getIdString() const override
virtual 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:39
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
void enableOutput(std::string alias_name)
static StaticPlugin< PixelCentroidPlugin > pixel_centroid_plugin
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")