|
LSST Applications g00d0e8bbd7+edbf708997,g03191d30f7+9ce8016dbd,g1955dfad08+0bd186d245,g199a45376c+5137f08352,g1fd858c14a+a888a50aa2,g262e1987ae+45f9aba685,g29ae962dfc+1c7d47a24f,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+eed17d2c67,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+c4107e45b5,g67b6fd64d1+6dc8069a4c,g74acd417e5+f452e9c21a,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+2025e9ce17,g7cc15d900a+2d158402f9,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d4809ba88+c4107e45b5,g8d7436a09f+e96c132b44,g8ea07a8fe4+db21c37724,g98df359435+aae6d409c1,ga2180abaac+edbf708997,gac66b60396+966efe6077,gb632fb1845+88945a90f8,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gca7fc764a6+6dc8069a4c,gd7ef33dd92+6dc8069a4c,gda68eeecaf+7d1e613a8d,gdab6d2f7ff+f452e9c21a,gdbb4c4dda9+c4107e45b5,ge410e46f29+6dc8069a4c,ge41e95a9f2+c4107e45b5,geaed405ab2+e194be0d2b,w.2025.47
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.