SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
GrowthCurvePlugin.cpp
Go to the documentation of this file.
1
24
25template <typename T>
27
28namespace SourceXtractor {
29
31
32
34 return "GrowthCurvePlugin";
35}
36
38 plugin_api.getTaskFactoryRegistry().registerTaskFactory<GrowthCurveTaskFactory, GrowthCurve, GrowthCurveResampled>();
39
40 plugin_api.getOutputRegistry().registerColumnConverter<GrowthCurveResampled, std::vector<double>>(
41 "flux_growth_step",
42 [](const GrowthCurveResampled& prop){
43 return prop.getStepSize();
44 },
45 "pixel",
46 "Growth curve step size"
47 );
48 plugin_api.getOutputRegistry().registerColumnConverter<GrowthCurveResampled, NdArray<DetectionImage::PixelType>>(
49 "flux_growth",
50 [](const GrowthCurveResampled& prop) {
51 return prop.getSamples();
52 },
53 "count",
54 "Growth curve samples"
55 );
56
57 plugin_api.getOutputRegistry().enableOutput<GrowthCurveResampled>("GrowthCurve");
58}
59
60} // end of namespace SourceXtractor
void registerPlugin(PluginAPI &plugin_api) override
std::string getIdString() const override
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
static StaticPlugin< GrowthCurvePlugin > growthcurve_plugin