SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
DetectionFrameGroupStampPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * DetectionFrameGroupStampPlugin.cpp
19 *
20 * Created on: May 5, 2017
21 * Author: mschefer
22 */
23
25
30
31namespace SourceXtractor {
32
34
36 plugin_api.getTaskFactoryRegistry().registerTaskFactory<DetectionFrameGroupStampTaskFactory, DetectionFrameGroupStamp>();
37
38 plugin_api.getOutputRegistry().registerColumnConverter<DetectionFrameGroupStamp, int>(
39 "group_stamp_top",
40 [](const DetectionFrameGroupStamp &d) {
41 return d.getTopLeft().m_y;
42 },
43 "pixel",
44 "Maximum y-coordinate of the detection group"
45 );
46 plugin_api.getOutputRegistry().registerColumnConverter<DetectionFrameGroupStamp, int>(
47 "group_stamp_left",
48 [](const DetectionFrameGroupStamp &d) {
49 return d.getTopLeft().m_x;
50 },
51 "pixel",
52 "Minimum x-coordinate of the detection group"
53 );
54 plugin_api.getOutputRegistry().registerColumnConverter<DetectionFrameGroupStamp, int>(
55 "group_stamp_width",
56 [](const DetectionFrameGroupStamp &d) {
57 return d.getStamp().getWidth();
58 },
59 "pixel",
60 "Width of the detection group"
61 );
62 plugin_api.getOutputRegistry().registerColumnConverter<DetectionFrameGroupStamp, int>(
63 "group_stamp_height",
64 [](const DetectionFrameGroupStamp &d) {
65 return d.getStamp().getHeight();
66 },
67 "pixel",
68 "Height of the detection group"
69 );
70 plugin_api.getOutputRegistry().enableOutput<DetectionFrameGroupStamp>("GroupStamp");
71}
72
74 return "DetectionFrameGroupStamp";
75}
76
77}
78
79
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
static StaticPlugin< DetectionFrameGroupStampPlugin > detection_frame_group_stamp_plugin