SourceXtractorPlusPlus
0.12
Please provide a description of the project.
|
#include <SharpRegionManager.h>
Public Types | |
using | Profile = std::function< double(double)> |
Public Member Functions | |
virtual | ~SharpRegionManager ()=default |
virtual void | updateRasterizationInfo (double scale, double r_max, Profile profile)=0 |
virtual bool | insideSharpRegion (double r)=0 |
virtual std::pair< double, int > | nextRadiusAndAngleNo (double prev_r)=0 |
Interface for sampling strategies.
For relatively flat portions of a function, just getting the value of the function at the center of a pixel and multiplying by its area can be a good enough estimation, but for sharp "peaky" areas this approach is not good, as we may be over or under estimating the integrated value for the area of that pixel.
Definition at line 44 of file SharpRegionManager.h.
using ModelFitting::SharpRegionManager::Profile = std::function<double(double)> |
Profile of the sampled function.
Definition at line 51 of file SharpRegionManager.h.
|
virtualdefault |
Destructor
|
pure virtual |
r | Distance to the origin of the function |
Implemented in ModelFitting::AutoSharp, ModelFitting::OldSharp, and ModelFitting::OnlySmooth.
|
pure virtual |
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. |
Implemented in ModelFitting::AutoSharp, ModelFitting::OldSharp, and ModelFitting::OnlySmooth.
|
pure virtual |
Allows the region manager to update whatever internal information it needs to decide on the sharp region that needs sampling.
scale | Pixel scale |
r_max | Limit the sampling region to this value |
profile | Profile to be oversampled. It can be used to adjust to the actual function. |
Implemented in ModelFitting::AutoSharp, ModelFitting::OldSharp, and ModelFitting::OnlySmooth.