SourceXtractorPlusPlus  0.15
Please provide a description of the project.
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 
32 namespace SourceXtractor {
33 
35 
39 
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 
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 
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 
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 
81  return "";
82 }
83 
84 }
85 
86 
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)
virtual std::string getIdString() const override
virtual 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:39
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Used to register compile-time (static) plugins with the PluginManager.
Definition: StaticPlugin.h:38
static StaticPlugin< ExternalFlagPlugin > pixel_boundaries_plugin