SourceXtractorPlusPlus  0.10
Please provide a description of the project.
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 
std::string
STL class.
StaticPlugin.h
SourceXtractor::PixelCentroid
The centroid of all the pixels in the source, weighted by their DetectionImage pixel values.
Definition: PixelCentroid.h:37
PixelCentroidPlugin.h
SourceXtractor::PixelCentroidTaskFactory
Produces PixelCentroidTask.
Definition: PixelCentroidTaskFactory.h:35
PixelCentroidTaskFactory.h
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition: PluginAPI.h:39
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition: TaskFactoryRegistry.h:51
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name)
Definition: OutputRegistry.h:128
SourceXtractor::PixelCentroidPlugin::getIdString
virtual std::string getIdString() const override
Definition: PixelCentroidPlugin.cpp:59
SourceXtractor::PixelCentroidPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition: PixelCentroidPlugin.cpp:35
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::pixel_centroid_plugin
static StaticPlugin< PixelCentroidPlugin > pixel_centroid_plugin
Definition: PixelCentroidPlugin.cpp:33
SourceXtractor::OutputRegistry::registerColumnConverter
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
Definition: OutputRegistry.h:46
PixelCentroid.h