SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
DetectionFrameGroupStamp
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
24
#include "
SEFramework/Plugin/StaticPlugin.h
"
25
26
#include "
SEImplementation/Plugin/DetectionFrameGroupStamp/DetectionFrameGroupStamp.h
"
27
#include "
SEImplementation/Plugin/DetectionFrameGroupStamp/DetectionFrameGroupStampTaskFactory.h
"
28
#include "
SEImplementation/Plugin/DetectionFrameGroupStamp/DetectionFrameGroupStampPlugin.h
"
29
#include "
SEImplementation/Image/ImageInterfaceTraits.h
"
30
31
namespace
SourceXtractor
{
32
33
static
StaticPlugin<DetectionFrameGroupStampPlugin>
detection_frame_group_stamp_plugin
;
34
35
void
DetectionFrameGroupStampPlugin::registerPlugin
(
PluginAPI
&
plugin_api
) {
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
73
std::string
DetectionFrameGroupStampPlugin::getIdString
()
const
{
74
return
"DetectionFrameGroupStamp"
;
75
}
76
77
}
78
79
DetectionFrameGroupStampPlugin.h
DetectionFrameGroupStampTaskFactory.h
DetectionFrameGroupStamp.h
ImageInterfaceTraits.h
StaticPlugin.h
std::string
SourceXtractor::DetectionFrameGroupStampPlugin::getIdString
std::string getIdString() const override
Definition
DetectionFrameGroupStampPlugin.cpp:73
SourceXtractor::DetectionFrameGroupStampPlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition
DetectionFrameGroupStampPlugin.cpp:35
SourceXtractor::DetectionFrameGroupStampTaskFactory
Produces DetectionFrameGroupStampTask.
Definition
DetectionFrameGroupStampTaskFactory.h:39
SourceXtractor::DetectionFrameGroupStamp
Definition
DetectionFrameGroupStamp.h:33
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition
PluginAPI.h:40
std::function
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::detection_frame_group_stamp_plugin
static StaticPlugin< DetectionFrameGroupStampPlugin > detection_frame_group_stamp_plugin
Definition
DetectionFrameGroupStampPlugin.cpp:33
Generated by
1.10.0