23 #if !defined(LSST_DETECTION_THRESHOLD_H)
24 #define LSST_DETECTION_THRESHOLD_H
61 bool const polarity =
true,
62 double const includeMultiplier = 1.0
84 template<
typename ImageT>
108 const std::string type =
"value",
109 const bool polarity =
true);
void setIncludeMultiplier(double const includeMultiplier)
set includeMultiplier
Use number of sigma given per-pixel s.d.
A Threshold is used to pass a threshold value to detection algorithms.
double _value
value of threshold, to be interpreted via _type
ThresholdType _type
type of threshold
bool _polarity
true for positive polarity, false for negative
table::Key< table::Array< Kernel::Pixel > > image
Use (pixels & (given mask))
static std::string getTypeString(ThresholdType const &type)
bool getPolarity() const
return Threshold's polarity
Use number of sigma given variance.
void setPolarity(bool const polarity)
set Threshold's polarity
Threshold createThreshold(const double value, const std::string type="value", const bool polarity=true)
Factory method for creating Threshold objects.
double getIncludeMultiplier() const
return includeMultiplier
double getValue(const double param=-1) const
ThresholdType
Types of threshold:
Threshold(double const value, ThresholdType const type=VALUE, bool const polarity=true, double const includeMultiplier=1.0)
Use number of sigma given s.d.
static ThresholdType parseTypeString(std::string const &typeStr)
ThresholdType getType() const
return type of threshold
double _includeMultiplier
multiplier for threshold needed for inclusion in FootprintSet