SourceXtractorPlusPlus  0.10
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ModelFitting::OnlySmooth Class Reference

#include <OnlySmooth.h>

Inheritance diagram for ModelFitting::OnlySmooth:
[legend]
Collaboration diagram for ModelFitting::OnlySmooth:
[legend]

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

ModelFitting::OnlySmooth::~OnlySmooth ( )
virtualdefault

Member Function Documentation

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.

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:

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: