LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
|
A set of Footprints, associated with a MaskedImage. More...
#include <FootprintSet.h>
Public Types | |
using | FootprintList = std::vector<std::shared_ptr<Footprint>> |
The FootprintSet's set of Footprints. | |
Public Member Functions | |
template<typename ImagePixelT > | |
FootprintSet (image::Image< ImagePixelT > const &img, Threshold const &threshold, int const npixMin=1, bool const setPeaks=true, table::Schema const &peakSchema=PeakTable::makeMinimalSchema()) | |
Find a FootprintSet given an Image and a threshold. | |
template<typename MaskPixelT > | |
FootprintSet (image::Mask< MaskPixelT > const &img, Threshold const &threshold, int const npixMin=1) | |
Find a FootprintSet given a Mask and a threshold. | |
template<typename ImagePixelT , typename MaskPixelT > | |
FootprintSet (image::MaskedImage< ImagePixelT, MaskPixelT > const &img, Threshold const &threshold, std::string const &planeName="", int const npixMin=1, bool const setPeaks=true) | |
Find a FootprintSet given a MaskedImage and a threshold. | |
FootprintSet (lsst::geom::Box2I region) | |
Construct an empty FootprintSet given a region that its footprints would have lived in. | |
FootprintSet (FootprintSet const &rhs) | |
Copy constructor. | |
FootprintSet (FootprintSet const &set, int rGrow, FootprintControl const &ctrl) | |
FootprintSet (FootprintSet &&rhs) | |
~FootprintSet () | |
FootprintSet (FootprintSet const &set, int rGrow, bool isotropic=true) | |
Grow all the Footprints in the input FootprintSet, returning a new FootprintSet. | |
FootprintSet (FootprintSet const &footprints1, FootprintSet const &footprints2, bool const includePeaks) | |
Return the FootprintSet corresponding to the merge of two input FootprintSets. | |
FootprintSet & | operator= (FootprintSet const &rhs) |
Assignment operator. | |
FootprintSet & | operator= (FootprintSet &&rhs) |
void | swap (FootprintSet &rhs) noexcept |
void | swapFootprintList (FootprintList &rhs) noexcept |
std::shared_ptr< FootprintList > | getFootprints () |
: Return the Footprints of detected objects | |
void | setFootprints (std::shared_ptr< FootprintList > footprints) |
: Set the Footprints of detected objects | |
std::shared_ptr< FootprintList const > const | getFootprints () const |
Retun the Footprints of detected objects. | |
void | makeSources (afw::table::SourceCatalog &catalog) const |
Add a new record corresponding to each footprint to a SourceCatalog. | |
void | setRegion (lsst::geom::Box2I const ®ion) |
Set the corners of the FootprintSet's MaskedImage to region. | |
lsst::geom::Box2I const | getRegion () const |
Return the corners of the MaskedImage. | |
std::shared_ptr< image::Image< FootprintIdPixel > > | insertIntoImage () const |
Return an Image with pixels set to the Footprints in the FootprintSet. | |
template<typename MaskPixelT > | |
void | setMask (image::Mask< MaskPixelT > *mask, std::string const &planeName) |
template<typename MaskPixelT > | |
void | setMask (std::shared_ptr< image::Mask< MaskPixelT > > mask, std::string const &planeName) |
void | merge (FootprintSet const &rhs, int tGrow=0, int rGrow=0, bool isotropic=true) |
Merge a FootprintSet into *this. | |
template<typename ImagePixelT , typename MaskPixelT > | |
void | makeHeavy (image::MaskedImage< ImagePixelT, MaskPixelT > const &mimg, HeavyFootprintCtrl const *ctrl=nullptr) |
Convert all the Footprints in the FootprintSet to be HeavyFootprints. | |
A set of Footprints, associated with a MaskedImage.
Definition at line 55 of file FootprintSet.h.
The FootprintSet's set of Footprints.
Definition at line 58 of file FootprintSet.h.
lsst::afw::detection::FootprintSet::FootprintSet | ( | image::Image< ImagePixelT > const & | img, |
Threshold const & | threshold, | ||
int const | npixMin = 1, | ||
bool const | setPeaks = true, | ||
table::Schema const & | peakSchema = PeakTable::makeMinimalSchema() ) |
Find a FootprintSet given an Image and a threshold.
peakSchema
is used to preserving the input peak schema when merging FootprintSets.
img | Image to search for objects |
threshold | threshold to find objects |
npixMin | minimum number of pixels in an object |
setPeaks | should I set the Peaks list? |
peakSchema | Schema for peak records, even if we don't measure them here. |
lsst::afw::detection::FootprintSet::FootprintSet | ( | image::Mask< MaskPixelT > const & | img, |
Threshold const & | threshold, | ||
int const | npixMin = 1 ) |
Find a FootprintSet given a Mask and a threshold.
img | Image to search for objects |
threshold | threshold to find objects |
npixMin | minimum number of pixels in an object |
lsst::afw::detection::FootprintSet::FootprintSet | ( | image::MaskedImage< ImagePixelT, MaskPixelT > const & | img, |
Threshold const & | threshold, | ||
std::string const & | planeName = "", | ||
int const | npixMin = 1, | ||
bool const | setPeaks = true ) |
Find a FootprintSet given a MaskedImage and a threshold.
Go through an image, finding sets of connected pixels above threshold and assembling them into Footprints; the resulting set of objects is returned
If threshold.getPolarity() is true, pixels above the Threshold are assembled into Footprints; if it's false, then pixels below Threshold are processed (Threshold will probably have to be below the background level for this to make sense, e.g. for difference imaging)
img | MaskedImage to search for objects |
threshold | threshold for footprints (controls size) |
planeName | mask plane to set (if != "") |
npixMin | minimum number of pixels in an object |
setPeaks | should I set the Peaks list? |
lsst::afw::detection::FootprintSet::FootprintSet | ( | lsst::geom::Box2I | region | ) |
Construct an empty FootprintSet given a region that its footprints would have lived in.
region | the desired region |
lsst::afw::detection::FootprintSet::FootprintSet | ( | FootprintSet const & | rhs | ) |
Copy constructor.
rhs | the input FootprintSet |
lsst::afw::detection::FootprintSet::FootprintSet | ( | FootprintSet const & | set, |
int | rGrow, | ||
FootprintControl const & | ctrl ) |
lsst::afw::detection::FootprintSet::FootprintSet | ( | FootprintSet && | rhs | ) |
lsst::afw::detection::FootprintSet::~FootprintSet | ( | ) |
lsst::afw::detection::FootprintSet::FootprintSet | ( | FootprintSet const & | set, |
int | rGrow, | ||
bool | isotropic = true ) |
Grow all the Footprints in the input FootprintSet, returning a new FootprintSet.
The output FootprintSet may contain fewer Footprints, as some may well have been merged
set | the input FootprintSet |
rGrow | Grow Footprints by r pixels |
isotropic | Grow isotropically (as opposed to a Manhattan metric) |
lsst::afw::detection::FootprintSet::FootprintSet | ( | FootprintSet const & | footprints1, |
FootprintSet const & | footprints2, | ||
bool const | includePeaks ) |
Return the FootprintSet corresponding to the merge of two input FootprintSets.
|
inline |
: Return the Footprints of detected objects
Definition at line 162 of file FootprintSet.h.
|
inline |
Retun the Footprints of detected objects.
Definition at line 172 of file FootprintSet.h.
|
inline |
Return the corners of the MaskedImage.
Definition at line 196 of file FootprintSet.h.
std::shared_ptr< image::Image< FootprintIdPixel > > lsst::afw::detection::FootprintSet::insertIntoImage | ( | ) | const |
Return an Image with pixels set to the Footprints in the FootprintSet.
void lsst::afw::detection::FootprintSet::makeHeavy | ( | image::MaskedImage< ImagePixelT, MaskPixelT > const & | mimg, |
HeavyFootprintCtrl const * | ctrl = nullptr ) |
Convert all the Footprints in the FootprintSet to be HeavyFootprints.
mimg | the image providing pixel values |
ctrl | Control how we manipulate HeavyFootprints |
void lsst::afw::detection::FootprintSet::makeSources | ( | afw::table::SourceCatalog & | catalog | ) | const |
Add a new record corresponding to each footprint to a SourceCatalog.
[in,out] | catalog | Catalog to append new sources to. |
The new sources will have their footprints set to point to the footprints in the footprint set; they will not be deep-copied.
void lsst::afw::detection::FootprintSet::merge | ( | FootprintSet const & | rhs, |
int | tGrow = 0, | ||
int | rGrow = 0, | ||
bool | isotropic = true ) |
Merge a FootprintSet into *this.
rhs | the Footprints to merge |
tGrow | No. of pixels to grow this Footprints |
rGrow | No. of pixels to grow rhs Footprints |
isotropic | Grow isotropically (as opposed to a Manhattan metric) |
FootprintSet & lsst::afw::detection::FootprintSet::operator= | ( | FootprintSet && | rhs | ) |
FootprintSet & lsst::afw::detection::FootprintSet::operator= | ( | FootprintSet const & | rhs | ) |
Assignment operator.
|
inline |
: Set the Footprints of detected objects
Definition at line 167 of file FootprintSet.h.
|
inline |
mask | Set bits in the mask |
planeName | Here's the name of the mask plane to fit |
Definition at line 206 of file FootprintSet.h.
|
inline |
mask | Set bits in the mask |
planeName | Here's the name of the mask plane to fit |
Definition at line 215 of file FootprintSet.h.
void lsst::afw::detection::FootprintSet::setRegion | ( | lsst::geom::Box2I const & | region | ) |
Set the corners of the FootprintSet's MaskedImage to region.
region | desired region |
|
inlinenoexcept |
Definition at line 146 of file FootprintSet.h.
|
inlinenoexcept |
Definition at line 154 of file FootprintSet.h.