SourceXtractorPlusPlus
0.11
Please provide a description of the project.
|
#include <AutoSharp.h>
Public Member Functions | |
AutoSharp (double log_incr=1.122, double first_r=1E-4, double tolerance=0.05, double min_sampling_factor=5.) | |
virtual | ~AutoSharp () |
void | updateRasterizationInfo (double scale, double r_max, Profile profile) override |
bool | insideSharpRegion (double r) override |
std::pair< double, int > | nextRadiusAndAngleNo (double prev_r) override |
![]() | |
virtual | ~SharpRegionManager ()=default |
Private Attributes | |
double | m_r_sharp {0.} |
double | m_max_step {0.} |
double | m_first_pix_r {0.} |
double | m_log_incr |
double | m_first_r |
double | m_tolerance |
double | m_min_sampling_factor |
Additional Inherited Members | |
![]() | |
using | Profile = std::function< double(double)> |
AutoSharp decides the sharp region evaluating the function in steps until the relative error for the linear interpolation is below a given threshold
Definition at line 35 of file AutoSharp.h.
ModelFitting::AutoSharp::AutoSharp | ( | double | log_incr = 1.122 , |
double | first_r = 1E-4 , |
||
double | tolerance = 0.05 , |
||
double | min_sampling_factor = 5. |
||
) |
Constructor
log_incr | Increment multiplicative step |
first_r | First radius |
tolerance | The sharp region finishes when the relative error between the function and its linear interpolation is below this limit |
min_sampling_factor | Take at least this many samples |
Definition at line 29 of file AutoSharp.cpp.
|
virtualdefault |
|
overridevirtual |
r | Distance to the origin of the function |
Implements ModelFitting::SharpRegionManager.
Definition at line 52 of file AutoSharp.cpp.
References m_r_sharp.
|
overridevirtual |
Computes the next sampling distance, and how many points around the circumference must be sampled at this distance.
prev_r | Previous sampling distance. 0 for the first call. |
Implements ModelFitting::SharpRegionManager.
Definition at line 56 of file AutoSharp.cpp.
References std::ceil(), m_first_pix_r, m_first_r, m_log_incr, m_max_step, std::make_pair(), and std::min().
|
overridevirtual |
The profile is used to find the sharp region, but without going further than r_max.
Implements ModelFitting::SharpRegionManager.
Definition at line 36 of file AutoSharp.cpp.
References m_first_pix_r, m_max_step, m_min_sampling_factor, m_r_sharp, m_tolerance, std::max(), and std::min().
|
private |
Definition at line 72 of file AutoSharp.h.
Referenced by nextRadiusAndAngleNo(), and updateRasterizationInfo().
|
private |
Definition at line 74 of file AutoSharp.h.
Referenced by nextRadiusAndAngleNo().
|
private |
Definition at line 73 of file AutoSharp.h.
Referenced by nextRadiusAndAngleNo().
|
private |
Definition at line 71 of file AutoSharp.h.
Referenced by nextRadiusAndAngleNo(), and updateRasterizationInfo().
|
private |
Definition at line 76 of file AutoSharp.h.
Referenced by updateRasterizationInfo().
|
private |
Definition at line 70 of file AutoSharp.h.
Referenced by insideSharpRegion(), and updateRasterizationInfo().
|
private |
Definition at line 75 of file AutoSharp.h.
Referenced by updateRasterizationInfo().