LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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... | |
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) |
void | swapFootprintList (FootprintList &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 749 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 777 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 818 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 1302 of file FootprintSet.cc.
lsst.afw.detection::FootprintSet::FootprintSet | ( | FootprintSet const & | rhs | ) |
Copy constructor
rhs | the input FootprintSet |
Definition at line 1311 of file FootprintSet.cc.
lsst.afw.detection::FootprintSet::FootprintSet | ( | detection::FootprintSet const & | rhs, |
int | rGrow, | ||
detection::FootprintControl const & | ctrl | ||
) |
Definition at line 1394 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 1370 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 1418 of file FootprintSet.cc.
|
inline |
: Return the Footprints of detected objects
Definition at line 146 of file FootprintSet.h.
|
inline |
Retun the Footprints of detected objects
Definition at line 156 of file FootprintSet.h.
|
inline |
Return the corners of the MaskedImage
Definition at line 173 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 1438 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 1470 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 1487 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 1336 of file FootprintSet.cc.
detection::FootprintSet & lsst.afw.detection::FootprintSet::operator= | ( | FootprintSet const & | rhs | ) |
Assignment operator.
Definition at line 1326 of file FootprintSet.cc.
|
inline |
: Set the Footprints of detected objects
Definition at line 151 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 180 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 192 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 1352 of file FootprintSet.cc.
|
inline |
Definition at line 130 of file FootprintSet.h.
|
inline |
Definition at line 138 of file FootprintSet.h.
|
private |
the Footprints of detected objects
Definition at line 206 of file FootprintSet.h.
|
private |
The corners of the MaskedImage that the detections live in.
Definition at line 207 of file FootprintSet.h.