SourceXtractorPlusPlus
0.13
Please provide a description of the project.
|
#include <CircularlySymmetricModelComponent.h>
Public Member Functions | |
template<typename... ProfileParameters> | |
CircularlySymmetricModelComponent (std::unique_ptr< SharpRegionManager > sharp_manager, ProfileParameters &&...proj_parameters) | |
virtual | ~CircularlySymmetricModelComponent () |
virtual double | getValue (double x, double y) |
virtual void | updateRasterizationInfo (double scale, double r_max) |
virtual std::vector< ModelSample > | getSharpSampling () |
virtual bool | insideSharpRegion (double x, double y) |
![]() | |
virtual | ~ModelComponent ()=default |
Private Attributes | |
std::unique_ptr < SharpRegionManager > | m_sharp_manager |
Profile | m_profile |
Additional Inherited Members | |
![]() | |
using | ModelSample = std::tuple< double, double, double > |
A model component that uses a 1D function - or profile - to build a circular and symmetric 2D model.
Definition at line 39 of file CircularlySymmetricModelComponent.h.
ModelFitting::CircularlySymmetricModelComponent< Profile >::CircularlySymmetricModelComponent | ( | std::unique_ptr< SharpRegionManager > | sharp_manager, |
ProfileParameters &&... | proj_parameters | ||
) |
Constructor
sharp_manager | The model component delegates to this region manager the determination of the sharp area. Note that you may build two different components with the same profile but different strategies for the sharp region. |
proj_parameters | Parameters that are forwarded to the profile |
Definition at line 32 of file CircularlySymmetricModelComponent.icpp.
References std::move().
|
virtualdefault |
|
virtual |
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 54 of file CircularlySymmetricModelComponent.icpp.
References std::cos(), std::sin(), std::tie(), ModelFitting::x, and ModelFitting::y.
|
virtual |
Returns the value of the point value of the model at the given coordinates.
Implements ModelFitting::ModelComponent.
Definition at line 43 of file CircularlySymmetricModelComponent.icpp.
References std::sqrt().
|
virtual |
Returns true if the coordinates fall inside the sharp region
Implements ModelFitting::ModelComponent.
Definition at line 75 of file CircularlySymmetricModelComponent.icpp.
References std::sqrt().
|
virtual |
scale | |
r_max |
Implements ModelFitting::ModelComponent.
Definition at line 48 of file CircularlySymmetricModelComponent.icpp.
References std::ref().
|
private |
Definition at line 69 of file CircularlySymmetricModelComponent.h.
|
private |
Definition at line 68 of file CircularlySymmetricModelComponent.h.