|
LSST Applications g00d0e8bbd7+8c5ae1fdc5,g013ef56533+603670b062,g083dd6704c+2e189452a7,g199a45376c+0ba108daf9,g1c5cce2383+bc9f6103a4,g1fd858c14a+cd69ed4fc1,g210f2d0738+c4742f2e9e,g262e1987ae+612fa42d85,g29ae962dfc+83d129e820,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+5eaa884f2a,g47891489e3+e32160a944,g53246c7159+8c5ae1fdc5,g5b326b94bb+dcc56af22d,g64539dfbff+c4742f2e9e,g67b6fd64d1+e32160a944,g74acd417e5+c122e1277d,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g88cb488625+47d24e4084,g89139ef638+e32160a944,g8d7436a09f+d14b4ff40a,g8ea07a8fe4+b212507b11,g90f42f885a+e1755607f3,g97be763408+34be90ab8c,g98df359435+ec1fa61bf1,ga2180abaac+8c5ae1fdc5,ga9e74d7ce9+43ac651df0,gbf99507273+8c5ae1fdc5,gc2a301910b+c4742f2e9e,gca7fc764a6+e32160a944,gd7ef33dd92+e32160a944,gdab6d2f7ff+c122e1277d,gdb1e2cdc75+1b18322db8,ge410e46f29+e32160a944,ge41e95a9f2+c4742f2e9e,geaed405ab2+0d91c11c6d,w.2025.44
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.