SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
VignetPlugin.h
Go to the documentation of this file.
1
25#ifndef _SEIMPLEMENTATION_PLUGIN_VIGNETPLUGIN_H_
26#define _SEIMPLEMENTATION_PLUGIN_VIGNETPLUGIN_H_
27
28#include <NdArray/NdArray.h>
31#include "Vignet.h"
32#include "VignetArray.h"
33
34namespace SourceXtractor {
35
36template<typename T>
38
39class VignetPlugin : public Plugin {
40public:
41 virtual ~VignetPlugin() = default;
42
44 plugin_api.getTaskFactoryRegistry().registerTaskFactory<VignetTaskFactory, Vignet, VignetArray>();
45 plugin_api.getOutputRegistry().registerColumnConverter<VignetArray, NdArray<DetectionImage::PixelType >>(
46 "vignet",
47 [](const VignetArray& prop) {
48 return prop.getVignets();
49 },
50 "count",
51 "The object vignet data"
52 );
53 plugin_api.getOutputRegistry().enableOutput<VignetArray>("Vignet");
54 }
55
56 virtual std::string getIdString() const {
57 return "Vignet";
58 }
59
60private:
61}; // end of VignetPlugin class
62
63} // namespace SourceXtractor
64#endif /* _SEIMPLEMENTATION_PLUGIN_VIGNETPLUGIN_H_ */
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
Plugins must implement this interface.
Definition Plugin.h:38
virtual ~VignetPlugin()=default
virtual std::string getIdString() const
virtual void registerPlugin(PluginAPI &plugin_api)