SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <ScaledModelComponent.h>
Public Member Functions | |
ScaledModelComponent (std::unique_ptr< ModelComponent > component, std::shared_ptr< BasicParameter > x_scale, std::shared_ptr< BasicParameter > y_scale) | |
ScaledModelComponent (ScaledModelComponent &&other) | |
virtual | ~ScaledModelComponent () |
double | getValue (double x, double y) override |
void | updateRasterizationInfo (double scale, double r_max) override |
std::vector< ModelSample > | getSharpSampling () override |
bool | insideSharpRegion (double x, double y) override |
![]() | |
virtual | ~ModelComponent ()=default |
Private Attributes | |
std::unique_ptr< ModelComponent > | m_component |
std::shared_ptr< BasicParameter > | m_x_scale |
std::shared_ptr< BasicParameter > | m_y_scale |
Additional Inherited Members | |
![]() | |
using | ModelSample = std::tuple< double, double, double > |
Decorates a model component, scaling the axes by the given parameters.
For instance, for a model scaled by 2 in each axes, a call to getValue(1,1) is equivalent to a getValue(0.5, 0.5) to the underlying function.
Definition at line 41 of file ScaledModelComponent.h.
ModelFitting::ScaledModelComponent::ScaledModelComponent | ( | std::unique_ptr< ModelComponent > | component, |
std::shared_ptr< BasicParameter > | x_scale, | ||
std::shared_ptr< BasicParameter > | y_scale | ||
) |
Constructor
component | The component to be decorated. The ownership is acquired by the new object. |
x_scale | Scale for the X axis |
y_scale | Scale for the Y axis |
Definition at line 28 of file ScaledModelComponent.cpp.
References std::move().
ModelFitting::ScaledModelComponent::ScaledModelComponent | ( | ScaledModelComponent && | other | ) |
Definition at line 34 of file ScaledModelComponent.cpp.
References std::move().
|
virtualdefault |
|
overridevirtual |
Returns the samples computed only for the sharp area, if any.
The returned value is the integrated value of the function for the area corresponding to the sample, not the value of the function. A pixel may be computed adding up the samples that fall within.
Implements ModelFitting::ModelComponent.
Definition at line 51 of file ScaledModelComponent.cpp.
References ModelFitting::m_x_scale(), and ModelFitting::m_y_scale().
|
overridevirtual |
Returns the value of the point value of the model at the given coordinates.
Implements ModelFitting::ModelComponent.
Definition at line 41 of file ScaledModelComponent.cpp.
References m_component, m_x_scale, and m_y_scale.
|
overridevirtual |
Returns true if the coordinates fall inside the sharp region
Implements ModelFitting::ModelComponent.
Definition at line 62 of file ScaledModelComponent.cpp.
References m_component, m_x_scale, and m_y_scale.
|
overridevirtual |
scale | |
r_max |
Implements ModelFitting::ModelComponent.
Definition at line 45 of file ScaledModelComponent.cpp.
References m_component, m_x_scale, m_y_scale, and std::min().
|
private |
Definition at line 71 of file ScaledModelComponent.h.
Referenced by getValue(), insideSharpRegion(), and updateRasterizationInfo().
|
private |
Definition at line 73 of file ScaledModelComponent.h.
Referenced by getValue(), insideSharpRegion(), and updateRasterizationInfo().
|
private |
Definition at line 74 of file ScaledModelComponent.h.
Referenced by getValue(), insideSharpRegion(), and updateRasterizationInfo().