SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
PeakValuePlugin.cpp
Go to the documentation of this file.
1
17/*
18 * PeakValuePlugin.cpp
19 *
20 * Created on: Feb 9, 2017
21 * Author: mschefer
22 */
23
25
28
30
31namespace SourceXtractor {
32
34
37
39 "peak_value",
40 [](const PeakValue& prop){
41 return prop.getMaxValue();
42 },
43 "count",
44 "Highest pixel value in the detection image"
45 );
47 "peak_value_x",
48 [](const PeakValue& prop){
49 return prop.getMaxValueX()+1.0; // add one to use FITS standard coordinates
50 },
51 "pix",
52 "X-coordinate of highest pixel value"
53 );
55 "peak_value_y",
56 [](const PeakValue& prop){
57 return prop.getMaxValueY()+1.0; // add one to use FITS standard coordinates
58 },
59 "pix",
60 "Y-coordinate of highest pixel value"
61 );
62
63 plugin_api.getOutputRegistry().enableOutput<PeakValue>("PeakValue");
64}
65
67 return "PeakValue";
68}
69
70}
71
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)
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
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Used to register compile-time (static) plugins with the PluginManager.
static StaticPlugin< PeakValuePlugin > peak_value_plugin