LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
23 #if !defined(LSST_DETECTION_THRESHOLD_H)
24 #define LSST_DETECTION_THRESHOLD_H
59 bool const polarity =
true,
60 double const includeMultiplier = 1.0
62 : _value(value), _type(
type), _polarity(polarity), _includeMultiplier(includeMultiplier) {}
81 double getValue(
const double param = -1)
const;
88 template <
typename ImageT>
104 _includeMultiplier = includeMultiplier;
111 double _includeMultiplier;
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
@ PIXEL_STDEV
Use number of sigma given per-pixel s.d.
~Threshold() noexcept=default
@ STDEV
Use number of sigma given s.d.
static std::string getTypeString(ThresholdType const &type)
bool getPolarity() const noexcept
return Threshold's polarity
void setIncludeMultiplier(double const includeMultiplier)
set includeMultiplier
@ VARIANCE
Use number of sigma given variance.
A Threshold is used to pass a threshold value to detection algorithms.
@ BITMASK
Use (pixels & (given mask))
Threshold createThreshold(const double value, const std::string type="value", const bool polarity=true)
Factory method for creating Threshold objects.
double getIncludeMultiplier() const noexcept
return includeMultiplier
A base class for image defects.
ThresholdType getType() const noexcept
return type of threshold
double getValue(const double param=-1) const
return value of threshold, to be interpreted via type
Threshold(double const value, ThresholdType const type=VALUE, bool const polarity=true, double const includeMultiplier=1.0)
Threshold constructor.
void setPolarity(bool const polarity) noexcept
set Threshold's polarity
static ThresholdType parseTypeString(std::string const &typeStr)
ThresholdType
Types of threshold: