SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
GrowthCurve
GrowthCurvePlugin.cpp
Go to the documentation of this file.
1
18
#include <
SEFramework/Image/Image.h
>
19
#include "
SEFramework/Plugin/StaticPlugin.h
"
20
#include "
SEImplementation/Plugin/GrowthCurve/GrowthCurvePlugin.h
"
21
#include "
SEImplementation/Plugin/GrowthCurve/GrowthCurveTaskFactory.h
"
22
#include "
SEImplementation/Plugin/GrowthCurve/GrowthCurve.h
"
23
#include "
SEImplementation/Plugin/GrowthCurve/GrowthCurveResampled.h
"
24
25
template
<
typename
T>
26
using
NdArray
=
Euclid::NdArray::NdArray<T>
;
27
28
namespace
SourceXtractor
{
29
30
static
StaticPlugin<GrowthCurvePlugin>
growthcurve_plugin
;
31
32
33
std::string
SourceXtractor::GrowthCurvePlugin::getIdString
()
const
{
34
return
"GrowthCurvePlugin"
;
35
}
36
37
void
SourceXtractor::GrowthCurvePlugin::registerPlugin
(
PluginAPI
&
plugin_api
) {
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
GrowthCurvePlugin.h
GrowthCurveResampled.h
GrowthCurveTaskFactory.h
GrowthCurve.h
Image.h
StaticPlugin.h
std::string
Euclid::NdArray::NdArray
SourceXtractor::GrowthCurvePlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition
GrowthCurvePlugin.cpp:37
SourceXtractor::GrowthCurvePlugin::getIdString
std::string getIdString() const override
Definition
GrowthCurvePlugin.cpp:33
SourceXtractor::GrowthCurveResampled
Definition
GrowthCurveResampled.h:31
SourceXtractor::GrowthCurveTaskFactory
Definition
GrowthCurveTaskFactory.h:25
SourceXtractor::GrowthCurve
Definition
GrowthCurve.h:30
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition
PluginAPI.h:40
std::function
Euclid::NdArray
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::growthcurve_plugin
static StaticPlugin< GrowthCurvePlugin > growthcurve_plugin
Definition
GrowthCurvePlugin.cpp:30
Generated by
1.10.0