SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ModelFitting::OnlySmooth Class Reference

#include <OnlySmooth.h>

Inheritance diagram for ModelFitting::OnlySmooth:
Collaboration diagram for ModelFitting::OnlySmooth:

Public Member Functions

virtual ~OnlySmooth ()
void updateRasterizationInfo (double, double, Profile) override
bool insideSharpRegion (double) override
std::pair< double, int > nextRadiusAndAngleNo (double) override
Public Member Functions inherited from ModelFitting::SharpRegionManager
virtual ~SharpRegionManager ()=default

Additional Inherited Members

Public Types inherited from ModelFitting::SharpRegionManager
using Profile = std::function<double(double)>

Detailed Description

Definition at line 30 of file OnlySmooth.h.

Constructor & Destructor Documentation

◆ ~OnlySmooth()

ModelFitting::OnlySmooth::~OnlySmooth ( )
virtualdefault

Member Function Documentation

◆ insideSharpRegion()

bool ModelFitting::OnlySmooth::insideSharpRegion ( double r)
overridevirtual
Parameters
rDistance to the origin of the function
Returns
True if the distance falls within the sharp region

Implements ModelFitting::SharpRegionManager.

Definition at line 33 of file OnlySmooth.cpp.

◆ nextRadiusAndAngleNo()

std::pair< double, int > ModelFitting::OnlySmooth::nextRadiusAndAngleNo ( double prev_r)
overridevirtual

Computes the next sampling distance, and how many points around the circumference must be sampled at this distance.

Parameters
prev_rPrevious sampling distance. 0 for the first call.
Returns
A pair, where the first element is the distance from the center (radius), and the second is the number of sample points are to be taken: if, for instance, it were 4, then four samples must be taken at angles 0, pi/4, pi and pi*3/4

Implements ModelFitting::SharpRegionManager.

Definition at line 37 of file OnlySmooth.cpp.

References std::make_pair().

Here is the call graph for this function:

◆ updateRasterizationInfo()

void ModelFitting::OnlySmooth::updateRasterizationInfo ( double scale,
double r_max,
Profile profile )
overridevirtual

Allows the region manager to update whatever internal information it needs to decide on the sharp region that needs sampling.

Parameters
scalePixel scale
r_maxLimit the sampling region to this value
profileProfile to be oversampled. It can be used to adjust to the actual function.

Implements ModelFitting::SharpRegionManager.

Definition at line 29 of file OnlySmooth.cpp.


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