SourceXtractorPlusPlus
0.10
Please provide a description of the project.
|
#include <TransformModelComponent.h>
Public Member Functions | |
TransformModelComponent (std::unique_ptr< ModelComponent > component, std::tuple< double, double, double, double > transform) | |
TransformModelComponent (TransformModelComponent &&other) | |
virtual | ~TransformModelComponent () |
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 |
double | m_transform [4] |
double | m_inv_transform [4] |
Additional Inherited Members | |
![]() | |
using | ModelSample = std::tuple< double, double, double > |
Decorates a model component, transforming the axes by the given transformation matrix
Definition at line 39 of file TransformModelComponent.h.
ModelFitting::TransformModelComponent::TransformModelComponent | ( | std::unique_ptr< ModelComponent > | component, |
std::tuple< double, double, double, double > | transform | ||
) |
Constructor
component | The component to be decorated. The ownership is acquired by the new object. |
transform | The transformation matrix (column major order!) |
Definition at line 30 of file TransformModelComponent.cpp.
References e, m_inv_transform, m_transform, std::move(), and SourceXtractor::transform().
ModelFitting::TransformModelComponent::TransformModelComponent | ( | TransformModelComponent && | other | ) |
Definition at line 49 of file TransformModelComponent.cpp.
References m_inv_transform, and m_transform.
|
virtual |
Definition at line 56 of file TransformModelComponent.cpp.
|
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 75 of file TransformModelComponent.cpp.
References m_component, and m_transform.
|
overridevirtual |
Returns the value of the point value of the model at the given coordinates.
Implements ModelFitting::ModelComponent.
Definition at line 59 of file TransformModelComponent.cpp.
References std::fabs(), m_component, m_inv_transform, and m_transform.
|
overridevirtual |
Returns true if the coordinates fall inside the sharp region
Implements ModelFitting::ModelComponent.
Definition at line 86 of file TransformModelComponent.cpp.
References m_component, and m_inv_transform.
|
overridevirtual |
scale | |
r_max |
Implements ModelFitting::ModelComponent.
Definition at line 67 of file TransformModelComponent.cpp.
References m_component, m_transform, std::min(), std::sqrt(), ModelFitting::x_scale, and ModelFitting::y_scale.
|
private |
Definition at line 66 of file TransformModelComponent.h.
Referenced by getSharpSampling(), getValue(), insideSharpRegion(), and updateRasterizationInfo().
|
private |
Definition at line 69 of file TransformModelComponent.h.
Referenced by getValue(), insideSharpRegion(), and TransformModelComponent().
|
private |
Definition at line 68 of file TransformModelComponent.h.
Referenced by getSharpSampling(), getValue(), TransformModelComponent(), and updateRasterizationInfo().