Class GaussianPsf

Inheritance Relationships

Base Types

Class Documentation

class GaussianPsf : public lsst::afw::table::io::PersistableFacade<GaussianPsf>, public lsst::afw::detection::Psf

A circularly symmetric Gaussian Psf class with no spatial variation, intended mostly for testing purposes.

This class is essentially an alternate implementation of meas::algorithms::SingleGaussianPsf; While SingleGaussianPsf inherits from ImagePsf and KernelPsf, and hence delegates to those various operations relating to the PSF model image (e.g. computeShape()), GaussianPsf computes these analytically.

Public Functions

GaussianPsf(int width, int height, double sigma)

Constructor for a GaussianPsf

Parameters
  • [in] width: Number of columns in realizations of the PSF at a point.

  • [in] height: Number of rows in realizations of the PSF at a point.

  • [in] sigma: Radius of the Gaussian.

GaussianPsf(lsst::geom::Extent2I const &dimensions, double sigma)

Constructor for a GaussianPsf

Parameters
  • [in] dimensions: Number of columns, rows in realizations of the PSF at a point.

  • [in] sigma: Radius of the Gaussian.

~GaussianPsf()
GaussianPsf(GaussianPsf const&)
GaussianPsf(GaussianPsf&&)
GaussianPsf &operator=(GaussianPsf const&)
GaussianPsf &operator=(GaussianPsf&&)
std::shared_ptr<afw::detection::Psf> clone() const

Polymorphic deep copy; should usually be unnecessary because Psfs are immutable.

std::shared_ptr<afw::detection::Psf> resized(int width, int height) const

Return a clone with specified kernel dimensions.

lsst::geom::Extent2I getDimensions() const

Return the dimensions of the images returned by computeImage()

double getSigma() const

Return the radius of the Gaussian.

bool isPersistable() const

Whether the Psf is persistable; always true.

Protected Functions

std::string getPersistenceName() const
std::string getPythonModule() const
void write(OutputArchiveHandle &handle) const