lsst.afw  13.0-91-g2a3e2ee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Classes | Typedefs | Functions
lsst::afw::detection Namespace Reference

Namespaces

 detectionLib
 
 footprintMerge
 
 peak
 
 utils
 

Classes

class  Footprint
 Class to describe the properties of a detected object from an image. More...
 
class  FootprintControl
 A Control Object for Footprints, controlling e.g. More...
 
class  HeavyFootprintCtrl
 A control object for HeavyFootprints. More...
 
class  FootprintMergeList
 List of Merged Footprints. More...
 
class  FootprintSet
 A set of Footprints, associated with a MaskedImage. More...
 
class  GaussianPsf
 A circularly symmetric Gaussian Psf class with no spatial variation, intended mostly for testing purposes. More...
 
class  HeavyFootprint
 A set of pixels in an Image, including those pixels' actual values. More...
 
class  PeakRecord
 Record class that represents a peak in a Footprint. More...
 
class  PeakTable
 Table class for Peaks in Footprints. More...
 
class  Psf
 A polymorphic base class for representing an image's Point Spread Function. More...
 
class  PsfFormatter
 Formatter for persistence of Psf instances. More...
 
class  Threshold
 A Threshold is used to pass a threshold value to detection algorithms. More...
 
class  FootprintFactory
 
class  FootprintMerge
 

Typedefs

typedef std::uint64_t FootprintIdPixel
 Pixel type for FootprintSet::insertIntoImage() More...
 
typedef
afw::table::ColumnViewT
< PeakRecord > 
PeakColumnView
 
typedef afw::table::CatalogT
< PeakRecord > 
PeakCatalog
 
typedef afw::table::CatalogT
< PeakRecord const > 
ConstPeakCatalog
 

Functions

std::shared_ptr< Footprint > mergeFootprints (Footprint const &footprint1, Footprint const &footprint2)
 Merges two Footprints – appends their peaks, and unions their spans, returning a new Footprint. More...
 
std::vector
< lsst::afw::geom::Box2I > 
footprintToBBoxList (Footprint const &footprint)
 Return a list of BBoxs, whose union contains exactly the pixels in the footprint, neither more nor less. More...
 
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
HeavyFootprint< ImagePixelT,
MaskPixelT, VariancePixelT > 
makeHeavyFootprint (Footprint const &foot, lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &img, HeavyFootprintCtrl const *ctrl=NULL)
 Create a HeavyFootprint with footprint defined by the given Footprint and pixel values from the given MaskedImage. More...
 
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
std::shared_ptr
< HeavyFootprint< ImagePixelT,
MaskPixelT, VariancePixelT > > 
mergeHeavyFootprints (HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT > const &h1, HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT > const &h2)
 Sum the two given HeavyFootprints h1 and h2, returning a HeavyFootprint with the union footprint, and summed pixels where they overlap. More...
 
std::ostream & operator<< (std::ostream &os, PeakRecord const &record)
 
Threshold createThreshold (const double value, const std::string type="value", const bool polarity=true)
 Factory method for creating Threshold objects. More...
 
 PYBIND11_PLUGIN (_footprint)
 
 PYBIND11_PLUGIN (_footprintCtrl)
 
 PYBIND11_PLUGIN (_footprintMerge)
 
 PYBIND11_PLUGIN (_footprintSet)
 
 PYBIND11_PLUGIN (_gaussianPsf)
 
 PYBIND11_PLUGIN (_heavyFootprint)
 
 PYBIND11_PLUGIN (_peak)
 
 PYBIND11_PLUGIN (_psf)
 
 PYBIND11_PLUGIN (_threshold)
 
template std::shared_ptr
< HeavyFootprint
< std::uint16_t > > 
mergeHeavyFootprints< std::uint16_t > (HeavyFootprint< std::uint16_t > const &, HeavyFootprint< std::uint16_t > const &)
 
template std::shared_ptr
< HeavyFootprint< double > > 
mergeHeavyFootprints< double > (HeavyFootprint< double > const &, HeavyFootprint< double > const &)
 
template std::shared_ptr
< HeavyFootprint< float > > 
mergeHeavyFootprints< float > (HeavyFootprint< float > const &, HeavyFootprint< float > const &)
 
template std::shared_ptr
< HeavyFootprint< int > > 
mergeHeavyFootprints< int > (HeavyFootprint< int > const &, HeavyFootprint< int > const &)
 

Typedef Documentation

Definition at line 224 of file Peak.h.

Pixel type for FootprintSet::insertIntoImage()

This is independent of the template parameters for FootprintSet, and including it within FootprintSet makes it difficult for SWIG to interpret the type.

Definition at line 48 of file FootprintSet.h.

Definition at line 223 of file Peak.h.

Definition at line 222 of file Peak.h.

Function Documentation

Threshold lsst::afw::detection::createThreshold ( const double  value,
const std::string  type = "value",
const bool  polarity = true 
)

Factory method for creating Threshold objects.

Parameters
valuevalue of threshold
typestring representation of a ThresholdType. This parameter is optional. Allowed values are: "variance", "value", "stdev", "pixel_stdev"
polarityIf true detect positive objects, false for negative
Returns
desired Threshold

Definition at line 109 of file Threshold.cc.

std::vector< geom::Box2I > lsst::afw::detection::footprintToBBoxList ( Footprint const &  footprint)

Return a list of BBoxs, whose union contains exactly the pixels in the footprint, neither more nor less.

Useful in generating sets of meas::algorithms::Defects for the ISR

Parameters
footprintFootprint to turn into bounding box list

Definition at line 346 of file Footprint.cc.

template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
HeavyFootprint<ImagePixelT, MaskPixelT, VariancePixelT> lsst::afw::detection::makeHeavyFootprint ( Footprint const &  foot,
lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  img,
HeavyFootprintCtrl const *  ctrl = NULL 
)

Create a HeavyFootprint with footprint defined by the given Footprint and pixel values from the given MaskedImage.

Definition at line 147 of file HeavyFootprint.h.

std::shared_ptr< Footprint > lsst::afw::detection::mergeFootprints ( Footprint const &  footprint1,
Footprint const &  footprint2 
)

Merges two Footprints – appends their peaks, and unions their spans, returning a new Footprint.

Region is not preserved, and is set to an empty Box2I object.

Definition at line 321 of file Footprint.cc.

template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
std::shared_ptr< HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT > > lsst::afw::detection::mergeHeavyFootprints ( HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT > const &  h1,
HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT > const &  h2 
)

Sum the two given HeavyFootprints h1 and h2, returning a HeavyFootprint with the union footprint, and summed pixels where they overlap.

The peak list is the union of the two inputs.

Definition at line 131 of file HeavyFootprint.cc.

template std::shared_ptr<HeavyFootprint< double > > lsst::afw::detection::mergeHeavyFootprints< double > ( HeavyFootprint< double > const &  ,
HeavyFootprint< double > const &   
)
template std::shared_ptr<HeavyFootprint< float > > lsst::afw::detection::mergeHeavyFootprints< float > ( HeavyFootprint< float > const &  ,
HeavyFootprint< float > const &   
)
template std::shared_ptr<HeavyFootprint< int > > lsst::afw::detection::mergeHeavyFootprints< int > ( HeavyFootprint< int > const &  ,
HeavyFootprint< int > const &   
)
template std::shared_ptr<HeavyFootprint< std::uint16_t > > lsst::afw::detection::mergeHeavyFootprints< std::uint16_t > ( HeavyFootprint< std::uint16_t > const &  ,
HeavyFootprint< std::uint16_t > const &   
)
std::ostream & lsst::afw::detection::operator<< ( std::ostream &  os,
PeakRecord const &  record 
)

Definition at line 95 of file Peak.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _threshold  )

Definition at line 35 of file threshold.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _footprintMerge  )

Definition at line 36 of file footprintMerge.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _footprintCtrl  )

Definition at line 37 of file footprintCtrl.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _gaussianPsf  )

Definition at line 37 of file gaussianPsf.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _psf  )

Definition at line 47 of file psf.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _footprint  )

Definition at line 71 of file footprint.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _footprintSet  )

Definition at line 79 of file footprintSet.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _heavyFootprint  )

Definition at line 86 of file heavyFootprint.cc.

lsst::afw::detection::PYBIND11_PLUGIN ( _peak  )

Definition at line 105 of file peak.cc.