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) {}
75 double getValue(
const double param = -1)
const;
82 template <
typename ImageT>
98 _includeMultiplier = includeMultiplier;
105 double _includeMultiplier;
118 Threshold
createThreshold(
const double value,
const std::string type =
"value",
const bool polarity =
true);
Threshold(double const value, ThresholdType const type=VALUE, bool const polarity=true, double const includeMultiplier=1.0)
Threshold constructor.
static std::string getTypeString(ThresholdType const &type)
double getValue(const double param=-1) const
return value of threshold, to be interpreted via type
ThresholdType getType() const
return type of threshold
double getIncludeMultiplier() const
return includeMultiplier
void setIncludeMultiplier(double const includeMultiplier)
set includeMultiplier
Use (pixels & (given mask))
A Threshold is used to pass a threshold value to detection algorithms.
Use number of sigma given s.d.
Threshold createThreshold(const double value, const std::string type="value", const bool polarity=true)
Factory method for creating Threshold objects.
ThresholdType
Types of threshold:
Use number of sigma given variance.
bool getPolarity() const
return Threshold's polarity
void setPolarity(bool const polarity)
set Threshold's polarity
static ThresholdType parseTypeString(std::string const &typeStr)
Use number of sigma given per-pixel s.d.