SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ExternalFlagPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * ExternalFlag.cpp
19 *
20 * Created on: Aug 5, 2016
21 * Author: mschefer
22 */
23
25
28
30
31namespace SourceXtractor {
32
34
36 plugin_api.getTaskFactoryRegistry().registerTaskFactory<ExternalFlagTaskFactory, ExternalFlag>();
37
38 plugin_api.getOutputRegistry().registerColumnConverter<ExternalFlag, std::int64_t>(
39 "isophotal_image_flags",
40 [](const ExternalFlag& prop){
41 return prop.getFlag();
42 },
43 "",
44 "Flags for the isophotal magnitude"
45 );
46
47 plugin_api.getOutputRegistry().registerColumnConverter<ExternalFlag, int>(
48 "isophotal_image_flags_pixel_count",
49 [](const ExternalFlag& prop){
50 return prop.getCount();
51 },
52 "",
53 "Flags provided from input images"
54 );
55
56 plugin_api.getOutputRegistry().enableOutput<ExternalFlag>(ExternalFlagTaskFactory::propertyName);
57}
58
60 return "";
61}
62
63}
std::string getIdString() const override
void registerPlugin(PluginAPI &plugin_api) override
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