SourceXtractorPlusPlus  0.12
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
ModelFitting::CircularlySymmetricModelComponent< Profile > Class Template Reference

#include <CircularlySymmetricModelComponent.h>

Inheritance diagram for ModelFitting::CircularlySymmetricModelComponent< Profile >:
[legend]
Collaboration diagram for ModelFitting::CircularlySymmetricModelComponent< Profile >:
[legend]

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< ModelSamplegetSharpSampling ()
 
virtual bool insideSharpRegion (double x, double y)
 
- Public Member Functions inherited from ModelFitting::ModelComponent
virtual ~ModelComponent ()=default
 

Private Attributes

std::unique_ptr< SharpRegionManagerm_sharp_manager
 
Profile m_profile
 

Additional Inherited Members

- Public Types inherited from ModelFitting::ModelComponent
using ModelSample = std::tuple< double, double, double >
 

Detailed Description

template<typename Profile>
class ModelFitting::CircularlySymmetricModelComponent< Profile >

A model component that uses a 1D function - or profile - to build a circular and symmetric 2D model.

See also
SersicProfile as an example of such a profile

Definition at line 39 of file CircularlySymmetricModelComponent.h.

Constructor & Destructor Documentation

◆ CircularlySymmetricModelComponent()

template<typename Profile >
template<typename... ProfileParameters>
ModelFitting::CircularlySymmetricModelComponent< Profile >::CircularlySymmetricModelComponent ( std::unique_ptr< SharpRegionManager sharp_manager,
ProfileParameters &&...  proj_parameters 
)

Constructor

Parameters
sharp_managerThe 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_parametersParameters that are forwarded to the profile

◆ ~CircularlySymmetricModelComponent()

template<typename Profile >
virtual ModelFitting::CircularlySymmetricModelComponent< Profile >::~CircularlySymmetricModelComponent ( )
virtual

Member Function Documentation

◆ getSharpSampling()

template<typename Profile >
virtual std::vector<ModelSample> ModelFitting::CircularlySymmetricModelComponent< Profile >::getSharpSampling ( )
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.

◆ getValue()

template<typename Profile >
virtual double ModelFitting::CircularlySymmetricModelComponent< Profile >::getValue ( double  x,
double  y 
)
virtual

Returns the value of the point value of the model at the given coordinates.

Implements ModelFitting::ModelComponent.

◆ insideSharpRegion()

template<typename Profile >
virtual bool ModelFitting::CircularlySymmetricModelComponent< Profile >::insideSharpRegion ( double  x,
double  y 
)
virtual

Returns true if the coordinates fall inside the sharp region

Implements ModelFitting::ModelComponent.

◆ updateRasterizationInfo()

template<typename Profile >
virtual void ModelFitting::CircularlySymmetricModelComponent< Profile >::updateRasterizationInfo ( double  scale,
double  r_max 
)
virtual
Parameters
scale
r_max

Implements ModelFitting::ModelComponent.

Member Data Documentation

◆ m_profile

template<typename Profile >
Profile ModelFitting::CircularlySymmetricModelComponent< Profile >::m_profile
private

Definition at line 69 of file CircularlySymmetricModelComponent.h.

◆ m_sharp_manager

template<typename Profile >
std::unique_ptr<SharpRegionManager> ModelFitting::CircularlySymmetricModelComponent< Profile >::m_sharp_manager
private

Definition at line 68 of file CircularlySymmetricModelComponent.h.


The documentation for this class was generated from the following file: