52 #ifndef __PCL_PSFEstimator_h
53 #define __PCL_PSFEstimator_h
113 return const_cast<const StarDetector&
>( m_starDetector );
127 return m_starDetector;
173 return m_psfCentroidTolerance;
182 PCL_PRECONDITION( t >= 0 )
183 m_psfCentroidTolerance =
Max( 0.0F, t );
201 return m_saturationThreshold;
211 PCL_PRECONDITION( t >= 0.1 && t <= 1.0 )
212 m_saturationThreshold =
Range( t, 0.1F, 1.0F );
224 return m_saturationRelative;
234 m_saturationRelative = enable;
244 EnableRelativeSaturation( !disable );
267 return m_rejectionLimit;
276 PCL_PRECONDITION( r >= 0.5 && r <= 1 )
277 m_rejectionLimit =
Range( r, 0.5F, 1.0F );
291 return m_growthForFlux;
301 PCL_PRECONDITION( k >= 0.5 && k <= 2.0 )
302 m_growthForFlux =
Range( k, 0.5F, 2.0F );
331 PCL_PRECONDITION( n >= 0 )
332 m_maxStars =
Max( 0, n );
363 EnablePSFWeighting( !disable );
383 psf_function m_psfType = PSFunction::Moffat4;
384 float m_psfCentroidTolerance = 1.5F;
385 float m_saturationThreshold = 0.75F;
386 bool m_saturationRelative =
true;
387 float m_rejectionLimit = 1.0F;
388 float m_growthForFlux = 1.0F;
390 bool m_weighted =
false;
Acts like a union for all types of images in PCL, with optional class-wide ownership of transported i...
Base class of estimators based on PSF photometry.
psf_function PSFType() const
void EnableRelativeSaturation(bool enable=true)
void SetPSFType(psf_function type)
PSFEstimator(const PSFEstimator &)=default
void SetRejectionLimit(float r)
Array< PSFData > FitStars(const ImageVariant &image) const
StarDetector & Detector()
void EnablePSFWeighting(bool enable=true)
void SetPSFCentroidTolerance(float t)
float PSFCentroidTolerance() const
void SetSaturationThreshold(float t)
void SetGrowthFactorForFluxMeasurement(float k)
float RejectionLimit() const
void DisablePSFWeighting(bool disable=true)
float SaturationThreshold() const
float GrowthFactorForFluxMeasurement() const
bool IsRelativeSaturationEnabled() const
const StarDetector & Detector() const
bool IsPSFWeightingEnabled() const
void DisableRelativeSaturation(bool disable=true)
A process using multiple concurrent execution threads.
Automatic star detection.
PSFFit::psf_function psf_function
constexpr const T & Range(const T &x, const T &a, const T &b) noexcept
constexpr const T & Max(const T &a, const T &b) noexcept