File PsfCandidate.h

Class used by SpatialCell for spatial PSF fittig.

namespace lsst

Class for a simple mapping implementing a generic AstrometryTransform.

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace meas
namespace algorithms

Functions

template<typename PixelT>std::shared_ptr<PsfCandidate<PixelT> > lsst::meas::algorithms::makePsfCandidate(PTR( afw::table::SourceRecord ) const & source, PTR( afw::image::Exposure < PixelT >) image)

Parameters
  • source: The detected Source

  • image: The image wherein lies the object

Return a PsfCandidate of the right sort

Cf. std::make_pair

template<typename PixelT>
class PsfCandidate : public lsst::afw::math::SpatialCellImageCandidate
#include <PsfCandidate.h>

Class stored in SpatialCells for spatial Psf fitting.

PsfCandidate is a detection that may turn out to be a PSF. We’ll assign them to sets of SpatialCells; these sets will then be used to fit a spatial model to the PSF.

Public Types

typedef std::shared_ptr<PsfCandidate<PixelT>> Ptr
typedef std::shared_ptr<const PsfCandidate<PixelT>> ConstPtr
typedef std::vector<Ptr> PtrList
typedef afw::image::MaskedImage<PixelT> MaskedImageT

Public Functions

lsst::meas::algorithms::PsfCandidate::PsfCandidate(PTR ( afw::table::SourceRecord ) const & source, CONST_PTR( afw::image::Exposure < PixelT >) parentExposure)

Parameters
  • source: The detected Source

  • parentExposure: The image wherein lie the Sources

Construct a PsfCandidate from a specified source and image.

The x/yCenter is set to source.getX/YAstrom()

lsst::meas::algorithms::PsfCandidate::PsfCandidate(PTR ( afw::table::SourceRecord ) const & source, CONST_PTR( afw::image::Exposure < PixelT >) parentExposure, double xCenter, double yCenter)

Parameters
  • source: The detected Source

  • parentExposure: The image wherein lie the Sources

  • xCenter: the desired x center

  • yCenter: the desired y center

Construct a PsfCandidate from a specified source, image and xyCenter.

virtual ~PsfCandidate()

Destructor.

double getCandidateRating() const

Return Cell rating

Note

Required method for use by SpatialCell

PTR(afw::table::SourceRecord) const

Return the original Source.

double getAmplitude() const

Return the best-fit amplitude.

void setAmplitude(double amplitude)

Set the best-fit amplitude.

double getVar() const

Return the variance in use when fitting this object.

void setVar(double var)

Set the variance to use when fitting this object.

CONST_PTR(afw::image::MaskedImage<PixelT>) const
CONST_PTR(afw::image::MaskedImage<PixelT>)

Public Members

int height lsst::meas::algorithms::PsfCandidate::const

Public Static Functions

static void setBorderWidth(int border)

Set the number of pixels to ignore around the candidate image’s edge.

static void setPixelThreshold(float threshold)

Set threshold for rejecting pixels unconnected with the central footprint

A non-positive threshold means that no threshold will be applied.

static float getPixelThreshold()

Get threshold for rejecting pixels unconnected with the central footprint.

static void setMaskBlends(bool doMaskBlends)

Set whether blends are masked.

static bool getMaskBlends()

Get whether blends are masked.

Private Functions

CONST_PTR(afw::image::Exposure<PixelT>)
PTR (afw::image::MaskedImage<PixelT>) offsetImage(PTR(afw lsst::meas::algorithms::PsfCandidate::PTR(afw::image::MaskedImage < PixelT >)
PTR(afw::image::MaskedImage<PixelT>)
PTR(afw::table::SourceRecord)

Private Members

PTR (afw::image::MaskedImage<PixelT>) offsetImage(PTR(afw unsigned int height lsst::meas::algorithms::PsfCandidate::const
std::shared_ptr<afw::image::MaskedImage<PixelT>> _image
double _amplitude
double _var
geom::Point2D _xyCenter

Private Static Attributes

int _border
int _defaultWidth
float _pixelThreshold

Threshold for masking pixels unconnected with central footprint.

bool _doMaskBlends

Mask blends when extracting?