LSSTApplications  11.0-13-gbb96280,12.1+18,12.1+7,12.1-1-g14f38d3+72,12.1-1-g16c0db7+5,12.1-1-g5961e7a+84,12.1-1-ge22e12b+23,12.1-11-g06625e2+4,12.1-11-g0d7f63b+4,12.1-19-gd507bfc,12.1-2-g7dda0ab+38,12.1-2-gc0bc6ab+81,12.1-21-g6ffe579+2,12.1-21-gbdb6c2a+4,12.1-24-g941c398+5,12.1-3-g57f6835+7,12.1-3-gf0736f3,12.1-37-g3ddd237,12.1-4-gf46015e+5,12.1-5-g06c326c+20,12.1-5-g648ee80+3,12.1-5-gc2189d7+4,12.1-6-ga608fc0+1,12.1-7-g3349e2a+5,12.1-7-gfd75620+9,12.1-9-g577b946+5,12.1-9-gc4df26a+10
LSSTDataManagementBasePackage
Classes | Namespaces | Functions
Footprint.h File Reference

Represent a set of pixels of an arbitrary shape and size. More...

#include <algorithm>
#include <list>
#include <set>
#include <cmath>
#include <cstdint>
#include <memory>
#include "ndarray.h"
#include "lsst/base.h"
#include "lsst/pex/policy/Policy.h"
#include "lsst/afw/image/MaskedImage.h"
#include "lsst/afw/image/Wcs.h"
#include "lsst/afw/detection/Peak.h"
#include "lsst/afw/geom.h"
#include "lsst/afw/geom/ellipses.h"
#include "lsst/afw/table/fwd.h"
#include "lsst/afw/table/io/Persistable.h"

Go to the source code of this file.

Classes

class  lsst::afw::detection::Footprint
 A set of pixels in an Image. More...
 

Namespaces

 lsst
 Remove all non-astronomical counts from the Chunk Exposure's pixels.
 
 lsst::afw
 
 lsst::afw::detection
 

Functions

void lsst::afw::detection::nearestFootprint (std::vector< boost::shared_ptr< Footprint >> const &foots, lsst::afw::image::Image< std::uint16_t >::Ptr argmin, lsst::afw::image::Image< std::uint16_t >::Ptr dist)
 Given a vector of Footprints, fills the output "argmin" and "dist" images to contain the Manhattan distance to the nearest footprint (in "dist") and the identity of the nearest footprint (in "argmin"). More...
 
boost::shared_ptr< Footprint > lsst::afw::detection::mergeFootprints (Footprint const &foot1, Footprint const &foot2)
 Merges two Footprints – appends their peaks, and unions their spans, returning a new Footprint. More...
 
boost::shared_ptr< Footprint > lsst::afw::detection::mergeFootprints (Footprint &foot1, Footprint &foot2)
 Merges two Footprints – appends their peaks, and unions their spans, returning a new Footprint. More...
 
boost::shared_ptr< Footprint > lsst::afw::detection::shrinkFootprint (Footprint const &foot, int nGrow, bool isotropic)
 Shrink a footprint isotropically by nGrow pixels, returning a new Footprint. More...
 
boost::shared_ptr< Footprint > lsst::afw::detection::growFootprint (Footprint const &foot, int nGrow, bool isotropic=true)
 Grow a Footprint by nGrow pixels, returning a new Footprint. More...
 
boost::shared_ptr< Footprint > lsst::afw::detection::growFootprint (boost::shared_ptr< Footprint > const &foot, int nGrow, bool isotropic=true)
 
boost::shared_ptr< Footprint > lsst::afw::detection::growFootprint (Footprint const &foot, int nGrow, bool left, bool right, bool up, bool down)
 Grow a Footprint in at least one of the cardinal directions, returning a new Footprint. More...
 
std::vector
< lsst::afw::geom::Box2I
lsst::afw::detection::footprintToBBoxList (Footprint const &foot)
 Return a list of BBoxs, whose union contains exactly the pixels in foot, neither more nor less. More...
 
template<typename ImageT >
ImageT::Pixel lsst::afw::detection::setImageFromFootprint (ImageT *image, Footprint const &footprint, typename ImageT::Pixel const value)
 Set all image pixels in a Footprint to a given value. More...
 
template<typename ImageT >
ImageT::Pixel lsst::afw::detection::setImageFromFootprintList (ImageT *image, boost::shared_ptr< std::vector< boost::shared_ptr< Footprint >> const > footprints, typename ImageT::Pixel const value)
 Set all image pixels in a set of Footprints to a given value. More...
 
template<typename ImageT >
ImageT::Pixel lsst::afw::detection::setImageFromFootprintList (ImageT *image, std::vector< boost::shared_ptr< Footprint >> const &footprints, typename ImageT::Pixel const value)
 Set all image pixels in a set of Footprints to a given value. More...
 
template<typename MaskT >
MaskT lsst::afw::detection::setMaskFromFootprint (lsst::afw::image::Mask< MaskT > *mask, Footprint const &footprint, MaskT const bitmask)
 OR bitmask into all the Mask's pixels that are in the Footprint. More...
 
template<typename MaskT >
MaskT lsst::afw::detection::clearMaskFromFootprint (lsst::afw::image::Mask< MaskT > *mask, Footprint const &footprint, MaskT const bitmask)
 (AND ~bitmask) all the Mask's pixels that are in the Footprint; that is, set to zero in the Mask-intersecting-Footprint all bits that are 1 in then bitmask. More...
 
template<typename ImageOrMaskedImageT >
void lsst::afw::detection::copyWithinFootprint (Footprint const &foot, boost::shared_ptr< ImageOrMaskedImageT > const input, boost::shared_ptr< ImageOrMaskedImageT > output)
 Copies pixels from input image to output image within the Footprint's area. More...
 
template<typename MaskT >
MaskT lsst::afw::detection::setMaskFromFootprintList (lsst::afw::image::Mask< MaskT > *mask, std::vector< boost::shared_ptr< Footprint >> const &footprints, MaskT const bitmask)
 OR bitmask into all the Mask's pixels which are in the set of Footprints. More...
 
template<typename MaskT >
MaskT lsst::afw::detection::setMaskFromFootprintList (lsst::afw::image::Mask< MaskT > *mask, boost::shared_ptr< std::vector< boost::shared_ptr< Footprint >> const > const &footprints, MaskT const bitmask)
 OR bitmask into all the Mask's pixels which are in the set of Footprints. More...
 
template<typename MaskT >
boost::shared_ptr< Footprint > lsst::afw::detection::footprintAndMask (boost::shared_ptr< Footprint > const &foot, typename image::Mask< MaskT >::Ptr const &mask, MaskT const bitmask)
 Return a Footprint that's the intersection of a Footprint with a Mask. More...
 

Detailed Description

Represent a set of pixels of an arbitrary shape and size.

Footprint is fundamental in astronomical image processing, as it defines what is meant by a Source.

Definition in file Footprint.h.