SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourcePsfTask.h
Go to the documentation of this file.
1
17
18#ifndef _SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
19#define _SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
20
22#include "SEFramework/Psf/Psf.h"
23
24namespace SourceXtractor {
25
27public:
28 virtual ~SourcePsfTask() = default;
29
30 SourcePsfTask(unsigned instance, const std::shared_ptr<Psf>& vpsf, bool normalize_psf = true)
31 : m_instance(instance), m_vpsf(vpsf), m_normalize_psf(normalize_psf) {
32 }
33
34 void computeProperties(SourceInterface& source) const override;
35
36 typedef std::function<double(SourceXtractor::SourceInterface &group, unsigned instance)> ValueGetter;
38
39private:
40 unsigned m_instance;
42 bool m_normalize_psf { true };
43};
44
45} // end SourceXtractor
46
47#endif //_SEIMPLEMENTATION_PLUGIN_SOURCEPSF_SOURCEPSFTASK_H_
The SourceInterface is an abstract "source" that has properties attached to it.
std::function< double(SourceXtractor::SourceInterface &group, unsigned instance)> ValueGetter
virtual ~SourcePsfTask()=default
static std::map< std::string, ValueGetter > component_value_getters
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
SourcePsfTask(unsigned instance, const std::shared_ptr< Psf > &vpsf, bool normalize_psf=true)
std::shared_ptr< Psf > m_vpsf
A Task that acts on a Source to compute one or more properties.
Definition SourceTask.h:36