SourceXtractorPlusPlus  0.13
Please provide a description of the project.
ExtendedModel.h
Go to the documentation of this file.
1 
23 #ifndef MODELFITTING_EXTENDEDMODEL_H
24 #define MODELFITTING_EXTENDEDMODEL_H
25 
26 #include <vector>
27 #include <memory> // for std::unique_ptr
28 #include <numeric> // for std::accumulate
29 
35 
36 namespace ModelFitting {
37 
38 template <typename ImageType>
40 
41 public:
42 
45  std::shared_ptr<BasicParameter> rotation_angle, double width, double height,
47 
49 
50  virtual ~ExtendedModel() = default;
51 
52  virtual double getValue(double x, double y) const;
53 
54  virtual ImageType getRasterizedImage(double pixel_scale, std::size_t size_x, std::size_t size_y) const;
55 
56  double getWidth() const {
57  return m_width;
58  }
59 
60  double getHeight() const {
61  return m_height;
62  }
63 
64 protected:
66 
67 private:
68  double m_width;
69  double m_height;
70 
71 }; // end of class ExtendedModel
72 
73 } // end of namespace ModelFitting
74 
75 #include "_impl/ExtendedModel.icpp"
76 
77 #endif /* MODELFITTING_EXTENDEDMODEL_H */
78 
ModelFitting::ExtendedModel::m_width
double m_width
Definition: ExtendedModel.h:68
RotatedModelComponent.h
ModelFitting::ExtendedModel::~ExtendedModel
virtual ~ExtendedModel()=default
std::shared_ptr
STL class.
std::vector
STL class.
ModelFitting::ExtendedModel::getValue
virtual double getValue(double x, double y) const
ScaledModelComponent.h
ModelComponent.h
ModelFitting::ExtendedModel::m_component_list
std::vector< std::unique_ptr< ModelComponent > > m_component_list
Definition: ExtendedModel.h:65
ModelFitting::ExtendedModel::ExtendedModel
ExtendedModel(ExtendedModel &&)=default
ModelFitting::ExtendedModel::m_height
double m_height
Definition: ExtendedModel.h:69
pixel_scale
const double pixel_scale
Definition: TestImage.cpp:75
ModelFitting::ExtendedModel::getHeight
double getHeight() const
Definition: ExtendedModel.h:60
ExtendedModel.icpp
BasicParameter.h
ModelFitting::PositionedModel
Definition: PositionedModel.h:30
ModelFitting::ExtendedModel::getRasterizedImage
virtual ImageType getRasterizedImage(double pixel_scale, std::size_t size_x, std::size_t size_y) const
ModelFitting::ExtendedModel::ExtendedModel
ExtendedModel(std::vector< std::unique_ptr< ModelComponent >> &&component_list, std::shared_ptr< BasicParameter > x_scale, std::shared_ptr< BasicParameter > y_scale, std::shared_ptr< BasicParameter > rotation_angle, double width, double height, std::shared_ptr< BasicParameter > x, std::shared_ptr< BasicParameter > y)
x
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > x
Definition: MoffatModelFittingTask.cpp:94
ModelFitting::ExtendedModel
Definition: ExtendedModel.h:39
ModelFitting::ExtendedModel::getWidth
double getWidth() const
Definition: ExtendedModel.h:56
std::size_t
y
std::shared_ptr< DependentParameter< std::shared_ptr< EngineParameter > > > y
Definition: MoffatModelFittingTask.cpp:94
std::unique_ptr
STL class.
ModelFitting
Definition: AsinhChiSquareComparator.h:30
PositionedModel.h