SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
VariablePsf.h
Go to the documentation of this file.
1
17/*
18 * VariablePsf.h
19 *
20 * Created on: Jun 25, 2018
21 * Author: Alejandro Álvarez Ayllón
22 */
23
24#ifndef _SEIMPLEMENTATION_PSF_VARIABLEPSF_H_
25#define _SEIMPLEMENTATION_PSF_VARIABLEPSF_H_
26
28#include "SEFramework/Psf/Psf.h"
29
30namespace SourceXtractor {
31
48class VariablePsf final : public Psf {
49public:
56 struct Component {
59 double offset, scale;
60 };
61
74 VariablePsf(double pixel_sampling, const std::vector<Component>& components, const std::vector<int>& group_degrees,
76
81 VariablePsf(double pixel_sampling, const std::shared_ptr<VectorImage<SeFloat>>& constant);
82
86 virtual ~VariablePsf() = default;
87
91 int getWidth() const override;
92
96 int getHeight() const override;
97
101 double getPixelSampling() const override;
102
106 const std::vector<std::string>& getComponents() const override;
107
119
120private:
127
129 void selfTest();
130
133
147 void calculateExponents();
148};
149
150} // namespace SourceXtractor
151
152#endif //_SEIMPLEMENTATION_PSF_VARIABLEPSF_H_
std::shared_ptr< VectorImage< SeFloat > > getPsf(const std::vector< double > &values) const override
int getHeight() const override
std::vector< std::string > m_component_names
double getPixelSampling() const override
virtual ~VariablePsf()=default
std::vector< double > scaleProperties(const std::vector< double > &values) const
Normalizes the values.
std::vector< std::vector< int > > m_exponents
std::vector< std::shared_ptr< VectorImage< SeFloat > > > m_coefficients
int getWidth() const override
std::vector< Component > m_components
const std::vector< std::string > & getComponents() const override
std::vector< int > m_group_degrees
VariablePsf(double pixel_sampling, const std::vector< Component > &components, const std::vector< int > &group_degrees, const std::vector< std::shared_ptr< VectorImage< SeFloat > > > &coefficients)
void selfTest()
Verify that the preconditions of getPsf are met at construction time.
Image implementation which keeps the pixel values in memory.
Definition VectorImage.h:52