24 #if !defined(LSST_DETECTION_FOOTPRINT_SET_H) 25 #define LSST_DETECTION_FOOTPRINT_SET_H 66 template <
typename ImagePixelT>
68 bool const setPeaks =
true);
77 template <
typename MaskPixelT>
98 template <
typename ImagePixelT,
typename MaskPixelT>
100 std::string
const& planeName =
"",
int const npixMin = 1,
bool const setPeaks =
true);
147 swap(*_footprints, rhs);
158 void setFootprints(std::shared_ptr<FootprintList> footprints) { _footprints = footprints; }
163 std::shared_ptr<FootprintList const>
const getFootprints()
const {
return _footprints; }
195 std::shared_ptr<image::Image<FootprintIdPixel>>
insertIntoImage(
const bool relativeIDs)
const;
197 template <
typename MaskPixelT>
199 std::string
const& planeName
201 for (
auto const& foot : *_footprints) {
206 template <
typename MaskPixelT>
208 std::string
const& planeName
221 void merge(
FootprintSet const& rhs,
int tGrow = 0,
int rGrow = 0,
bool isotropic =
true);
229 template <
typename ImagePixelT,
typename MaskPixelT>
234 std::shared_ptr<FootprintList> _footprints;
void swap(ImageBase< PixelT > &a, ImageBase< PixelT > &b)
A Threshold is used to pass a threshold value to detection algorithms.
An integer coordinate rectangle.
A base class for image defects.
Represent a 2-dimensional array of bitmask pixels.
A class to manipulate images, masks, and variance as a single object.
A class to represent a 2-dimensional array of pixels.
std::uint64_t FootprintIdPixel
Pixel type for FootprintSet::insertIntoImage()