lsst.afw gba399f52f3+9b61cfce8e
Loading...
Searching...
No Matches
lsst::afw::detection Namespace Reference

Namespaces

namespace  _footprintContinued
namespace  _footprintMerge
namespace  _heavyFootprintContinued
namespace  _peak
namespace  detail
namespace  multiband
namespace  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  FootprintFactory
class  FootprintMerge
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  HeavyFootprintCtrl
 A control object for HeavyFootprints. More...
class  PeakRecord
 Record class that represents a peak in a Footprint. More...
class  PeakTable
 Table class for Peaks in Footprints. More...
class  Psf
 An exception thrown when we have an invalid PSF. More...
class  PsfTrampoline
 "Trampoline" for Psf to let it be used as a base class in Python. More...
class  Threshold
 A Threshold is used to pass a threshold value to detection algorithms. More...

Typedefs

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

Functions

std::ostream & operator<< (std::ostream &os, Footprint const &rhs)
 Print a Footprint to the stream.
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.
std::vector< lsst::geom::Box2I > footprintToBBoxList (Footprint const &footprint)
 Return a list of BBoxs, whose union contains exactly the pixels in the footprint, neither more nor less.
std::ostream & operator<< (std::ostream &os, FootprintSet const &rhs)
 Print a FootprintSet to the stream.
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=nullptr)
 Create a HeavyFootprint with footprint defined by the given Footprint and pixel values from the given MaskedImage.
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.
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.

Typedef Documentation

◆ ConstPeakCatalog

◆ FootprintIdPixel

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 50 of file FootprintSet.h.

◆ PeakCatalog

◆ PeakColumnView

Function Documentation

◆ createThreshold()

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.

◆ footprintToBBoxList()

std::vector< lsst::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 366 of file Footprint.cc.

◆ makeHeavyFootprint()

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 = nullptr )

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

Definition at line 148 of file HeavyFootprint.h.

◆ mergeFootprints()

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 lsst::geom::Box2I object.

Definition at line 341 of file Footprint.cc.

◆ mergeHeavyFootprints()

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 128 of file HeavyFootprint.cc.

◆ operator<<() [1/3]

std::ostream & lsst::afw::detection::operator<< ( std::ostream & os,
Footprint const & rhs )

Print a Footprint to the stream.

Parameters
osStream to print to.
rhsFootprint to print.

Definition at line 443 of file Footprint.cc.

◆ operator<<() [2/3]

std::ostream & lsst::afw::detection::operator<< ( std::ostream & os,
FootprintSet const & rhs )

Print a FootprintSet to the stream.

Parameters
osStream to print to.
rhsFootprintSet to print.

◆ operator<<() [3/3]

std::ostream & lsst::afw::detection::operator<< ( std::ostream & os,
PeakRecord const & record )

Definition at line 91 of file Peak.cc.