SourceXtractorPlusPlus 0.19
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
31namespace 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
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
void enableOutput(std::string alias_name, bool configurable_output=false)
void registerPlugin(PluginAPI &plugin_api) override
std::string getIdString() const override
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values.
Definition: PixelCentroid.h:37
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:40
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
static StaticPlugin< PixelCentroidPlugin > pixel_centroid_plugin