SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
PixelBoundariesPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * PixelBoundariesPlugin.cpp
19 *
20 * Created on: Aug 5, 2016
21 * Author: mschefer
22 */
23
24
26
29
31
32namespace SourceXtractor {
33
35
37 plugin_api.getTaskFactoryRegistry().registerTaskFactory<PixelBoundariesTaskFactory, PixelBoundaries>();
38 plugin_api.getTaskFactoryRegistry().registerTaskFactory<PixelBoundariesTaskFactory, PixelBoundariesHalfMaximum>();
39
40 plugin_api.getOutputRegistry().registerColumnConverter<PixelBoundaries, int>(
41 "pixel_boundaries_min_x",
42 [](const PixelBoundaries& prop){
43 return prop.getMin().m_x;
44 },
45 "pixel",
46 "Minimum x-coordinate of the detection area"
47 );
48
49 plugin_api.getOutputRegistry().registerColumnConverter<PixelBoundaries, int>(
50 "pixel_boundaries_min_y",
51 [](const PixelBoundaries& prop){
52 return prop.getMin().m_y;
53 },
54 "pixel",
55 "Minimum y-coordinate of the detection area"
56 );
57
58 plugin_api.getOutputRegistry().registerColumnConverter<PixelBoundaries, int>(
59 "pixel_boundaries_max_x",
60 [](const PixelBoundaries& prop){
61 return prop.getMax().m_x;
62 },
63 "pixel",
64 "Maximum x-coordinate of the detection area"
65 );
66
67 plugin_api.getOutputRegistry().registerColumnConverter<PixelBoundaries, int>(
68 "pixel_boundaries_max_y",
69 [](const PixelBoundaries& prop){
70 return prop.getMax().m_y;
71 },
72 "pixel",
73 "Maximum y-coordinate of the detection area"
74 );
75
76 plugin_api.getOutputRegistry().enableOutput<PixelBoundaries>("PixelBoundaries");
77
78}
79
83
84}
85
86
void registerPlugin(PluginAPI &plugin_api) override
The bounding box of all the pixels in the source. Both min and max coordinate are inclusive.
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
static StaticPlugin< ExternalFlagPlugin > pixel_boundaries_plugin