LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
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.