52 #ifndef __PCL_PSFScaleEstimator_h
53 #define __PCL_PSFScaleEstimator_h
98 operator double()
const
108 return count > 0 && 1 + scale != 1;
155 return m_psfSearchTolerance;
164 PCL_PRECONDITION( t >= 0 )
165 m_psfSearchTolerance =
Max( 0.0F, t );
183 return m_rejectionLimit;
192 PCL_PRECONDITION( r > 0 && r < 1 )
193 m_rejectionLimit =
Range( r, 0.0F, 1.0F );
219 return m_enableLocalModel;
227 m_enableLocalModel = enable;
235 EnableLocalModel( !disable );
267 return EstimateScale( image );
273 float m_psfSearchTolerance = 4.0F;
274 float m_rejectionLimit = 0.3F;
275 bool m_enableLocalModel =
false;
284 operator double()
const
295 using sample_vector = GenericVector<Sample>;
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.
StarDetector::psf_function psf_function
Estimation of relative image scale based on PSF photometry.
Estimates operator()(const ImageVariant &image) const
Estimates EstimateScale(const ImageVariant &image) const
int SetReference(const ImageVariant &image)
void SetRejectionLimit(float r)
void EnableLocalModel(bool enable=true)
void SetPSFSearchTolerance(float t)
float PSFSearchTolerance() const
bool IsLocalModelEnabled() const
~PSFScaleEstimator() override
PSFScaleEstimator(const PSFScaleEstimator &)=default
float RejectionLimit() const
void DisableLocalModel(bool disable=true)
PSFScaleEstimator()=default
bool operator<(const Array< T, A > &x1, const Array< T, A > &x2) noexcept
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
Structure to hold a PSF relative scale estimate.
local_model local
2-D model of local scale variations.