SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
CoreThresholdPartitionPlugin.h
Go to the documentation of this file.
1
23
24#ifndef _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDPLUGIN_H_
25#define _SEIMPLEMENTATION_PLUGIN_CORETHRESHOLDPLUGIN_H_
26
28#include "NCorePixel.h"
30
31namespace SourceXtractor {
33public:
34 virtual ~CoreThresholdPartitionPlugin() = default;
35 virtual void registerPlugin(PluginAPI& plugin_api) {
38 "n_core_pixel",
39 [](const NCorePixel& prop){
40 return prop.getNCorePixel();
41 },
42 "pixel",
43 "Number of core pixels used for partitioning"
44 );
45 plugin_api.getOutputRegistry().enableOutput<NCorePixel>("NCorePixel");
46 }
47 virtual std::string getIdString() const {
48 return "n_core_pixel";
49 }
50private:
51}; // end of CoreThresholdPartitionPlugin class
52} // namespace SExtractor
53#endif /* _SEIMPLEMENTATION_PLUGIN_SNRLEVELPLUGIN_H_ */
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)
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Plugins must implement this interface.
Definition Plugin.h:38