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;
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)
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.
A base class for image defects.
double getValue(const double param=-1) const
return value of threshold, to be interpreted via type
double getIncludeMultiplier() const
return includeMultiplier
bool getPolarity() const
return Threshold's polarity
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.
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.
ThresholdType getType() const
return type of threshold