|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
A set of Footprints, associated with a MaskedImage. More...
#include <FootprintSet.h>
Public Types | |
| typedef std::vector < Footprint::Ptr > | FootprintList |
| The FootprintSet's set of Footprints. More... | |
Public Types inherited from lsst.daf.base::Citizen | |
| enum | { magicSentinel = 0xdeadbeef } |
| typedef unsigned long | memId |
| Type of the block's ID. More... | |
| typedef memId(* | memNewCallback )(const memId cid) |
| A function used to register a callback. More... | |
| typedef memId(* | memCallback )(const Citizen *ptr) |
Public Member Functions | |
| template<typename ImagePixelT > | |
| FootprintSet (image::Image< ImagePixelT > const &img, Threshold const &threshold, int const npixMin=1, bool const setPeaks=true) | |
| template<typename MaskPixelT > | |
| FootprintSet (image::Mask< MaskPixelT > const &img, Threshold const &threshold, int const npixMin=1) | |
| 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. More... | |
| template<typename ImagePixelT , typename MaskPixelT > | |
| FootprintSet (image::MaskedImage< ImagePixelT, MaskPixelT > const &img, Threshold const &threshold, int x, int y, std::vector< boost::shared_ptr< Peak >> const *peaks=NULL) | |
| FootprintSet (geom::Box2I region) | |
| FootprintSet (FootprintSet const &) | |
| FootprintSet (FootprintSet const &set, int rGrow, FootprintControl const &ctrl) | |
| FootprintSet (FootprintSet const &set, int rGrow, bool isotropic=true) | |
| FootprintSet (FootprintSet const &footprints1, FootprintSet const &footprints2, bool const includePeaks) | |
| FootprintSet & | operator= (FootprintSet const &rhs) |
| Assignment operator. More... | |
| void | swap (FootprintSet &rhs) |
| boost::shared_ptr< FootprintList > | getFootprints () |
| void | setFootprints (boost::shared_ptr< FootprintList > footprints) |
| boost::shared_ptr < FootprintList const > const | getFootprints () const |
| void | makeSources (afw::table::SourceCatalog &catalog) const |
| Add a new record corresponding to each footprint to a SourceCatalog. More... | |
| void | setRegion (geom::Box2I const ®ion) |
| geom::Box2I const | getRegion () const |
| boost::shared_ptr < image::Image < FootprintIdPixel > > | insertIntoImage (const bool relativeIDs) const |
| template<typename MaskPixelT > | |
| void | setMask (image::Mask< MaskPixelT > *mask, std::string const &planeName) |
| template<typename MaskPixelT > | |
| void | setMask (boost::shared_ptr< image::Mask< MaskPixelT > > mask, std::string const &planeName) |
| void | merge (FootprintSet const &rhs, int tGrow=0, int rGrow=0, bool isotropic=true) |
| template<typename ImagePixelT , typename MaskPixelT > | |
| void | makeHeavy (image::MaskedImage< ImagePixelT, MaskPixelT > const &mimg, HeavyFootprintCtrl const *ctrl=NULL) |
Public Member Functions inherited from lsst.daf.base::Citizen | |
| Citizen (const std::type_info &) | |
| Citizen (Citizen const &) | |
| ~Citizen () | |
| Citizen & | operator= (Citizen const &) |
| std::string | repr () const |
| Return a string representation of a Citizen. More... | |
| void | markPersistent (void) |
| Mark a Citizen as persistent and not destroyed until process end. More... | |
| memId | getId () const |
| Return the Citizen's ID. More... | |
Private Attributes | |
| boost::shared_ptr< FootprintList > | _footprints |
| the Footprints of detected objects More... | |
| geom::Box2I | _region |
| The corners of the MaskedImage that the detections live in. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from lsst.daf.base::Citizen | |
| static bool | hasBeenCorrupted () |
| Check all allocated blocks for corruption. More... | |
| static memId | getNextMemId () |
| Return the memId of the next object to be allocated. More... | |
| static int | init () |
| Called once when the memory system is being initialised. More... | |
| static int | census (int, memId startingMemId=0) |
| How many active Citizens are there? More... | |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| Print a list of all active Citizens to stream, sorted by ID. More... | |
| static const std::vector < const Citizen * > * | census () |
| Return a (newly allocated) std::vector of active Citizens sorted by ID. More... | |
| static memId | setNewCallbackId (memId id) |
| Call the NewCallback when block is allocated. More... | |
| static memId | setDeleteCallbackId (memId id) |
| Call the current DeleteCallback when block is deleted. More... | |
| static memNewCallback | setNewCallback (memNewCallback func) |
| Set the NewCallback function. More... | |
| static memCallback | setDeleteCallback (memCallback func) |
| Set the DeleteCallback function. More... | |
| static memCallback | setCorruptionCallback (memCallback func) |
| Set the CorruptionCallback function. More... | |
A set of Footprints, associated with a MaskedImage.
Definition at line 53 of file FootprintSet.h.
| typedef std::vector<Footprint::Ptr> lsst.afw.detection::FootprintSet::FootprintList |
The FootprintSet's set of Footprints.
Definition at line 57 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 |
||
| ) |
| 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? |
Definition at line 741 of file FootprintSet.cc.
| lsst.afw.detection::FootprintSet::FootprintSet | ( | image::Mask< MaskPixelT > const & | msk, |
| Threshold const & | threshold, | ||
| int const | npixMin = 1 |
||
| ) |
| msk | Image to search for objects |
| threshold | threshold to find objects |
| npixMin | minimum number of pixels in an object |
Definition at line 769 of file FootprintSet.cc.
| 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 as an array<Footprint::Ptr>
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? |
Definition at line 810 of file FootprintSet.cc.
| lsst.afw.detection::FootprintSet::FootprintSet | ( | image::MaskedImage< ImagePixelT, MaskPixelT > const & | img, |
| Threshold const & | threshold, | ||
| int | x, | ||
| int | y, | ||
| std::vector< boost::shared_ptr< Peak >> const * | peaks = NULL |
||
| ) |
Return a FootprintSet consisting a Footprint containing the point (x, y) (if above threshold)
| img | Image to search for objects |
| threshold | threshold to find objects |
| x | Footprint should include this pixel (column) |
| y | Footprint should include this pixel (row) |
| peaks | Footprint should include at most one of these peaks |
Definition at line 898 of file FootprintSet.cc.
| lsst.afw.detection::FootprintSet::FootprintSet | ( | geom::Box2I | region | ) |
Construct an empty FootprintSet given a region that its footprints would have lived in
| region | the desired region |
Definition at line 1315 of file FootprintSet.cc.
| lsst.afw.detection::FootprintSet::FootprintSet | ( | FootprintSet const & | rhs | ) |
Copy constructor
| rhs | the input FootprintSet |
Definition at line 1324 of file FootprintSet.cc.
| lsst.afw.detection::FootprintSet::FootprintSet | ( | detection::FootprintSet const & | rhs, |
| int | rGrow, | ||
| detection::FootprintControl const & | ctrl | ||
| ) |
Definition at line 1407 of file FootprintSet.cc.
| lsst.afw.detection::FootprintSet::FootprintSet | ( | FootprintSet const & | rhs, |
| int | r, | ||
| 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
| rhs | the input FootprintSet |
| r | Grow Footprints by r pixels |
| isotropic | Grow isotropically (as opposed to a Manhattan metric) |
Definition at line 1383 of file FootprintSet.cc.
| lsst.afw.detection::FootprintSet::FootprintSet | ( | FootprintSet const & | fs1, |
| FootprintSet const & | fs2, | ||
| bool const | includePeaks | ||
| ) |
Return the FootprintSet corresponding to the merge of two input FootprintSets
Definition at line 1431 of file FootprintSet.cc.
|
inline |
: Return the Footprints of detected objects
Definition at line 168 of file FootprintSet.h.
|
inline |
Retun the Footprints of detected objects
Definition at line 178 of file FootprintSet.h.
|
inline |
Return the corners of the MaskedImage
Definition at line 195 of file FootprintSet.h.
| boost::shared_ptr< image::Image< detection::FootprintIdPixel > > lsst.afw.detection::FootprintSet::insertIntoImage | ( | const bool | relativeIDs | ) | const |
Return an Image with pixels set to the Footprints in the FootprintSet
| relativeIDs | Use IDs starting at 0 (rather than the ones in the Footprints) |
Definition at line 1451 of file FootprintSet.cc.
| void lsst.afw.detection::FootprintSet::makeHeavy | ( | image::MaskedImage< ImagePixelT, MaskPixelT > const & | mimg, |
| HeavyFootprintCtrl const * | ctrl = NULL |
||
| ) |
Convert all the Footprints in the FootprintSet to be HeavyFootprints
| mimg | the image providing pixel values |
| ctrl | Control how we manipulate HeavyFootprints |
Definition at line 1483 of file FootprintSet.cc.
| 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.
Definition at line 1500 of file FootprintSet.cc.
| void lsst.afw.detection::FootprintSet::merge | ( | detection::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 | Use (expensive) isotropic grow |
Definition at line 1349 of file FootprintSet.cc.
| detection::FootprintSet & lsst.afw.detection::FootprintSet::operator= | ( | FootprintSet const & | rhs | ) |
Assignment operator.
Definition at line 1339 of file FootprintSet.cc.
|
inline |
: Set the Footprints of detected objects
Definition at line 173 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 202 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 214 of file FootprintSet.h.
| void lsst.afw.detection::FootprintSet::setRegion | ( | geom::Box2I const & | region | ) |
Set the corners of the FootprintSet's MaskedImage to region
N.b. updates all the Footprints' regions too
| region | desired region |
Definition at line 1365 of file FootprintSet.cc.
|
inline |
Definition at line 157 of file FootprintSet.h.
|
private |
the Footprints of detected objects
Definition at line 228 of file FootprintSet.h.
|
private |
The corners of the MaskedImage that the detections live in.
Definition at line 229 of file FootprintSet.h.
1.8.5