lsst.meas.algorithms  13.0-24-g22030a45+3
Public Member Functions | Protected Member Functions | Friends | List of all members
lsst::meas::algorithms::DoubleGaussianPsf Class Reference

Represent a Psf as a circularly symmetrical double Gaussian. More...

#include <DoubleGaussianPsf.h>

Inheritance diagram for lsst::meas::algorithms::DoubleGaussianPsf:
lsst::meas::algorithms::KernelPsf lsst::meas::algorithms::ImagePsf

Public Member Functions

 DoubleGaussianPsf (int width, int height, double sigma1, double sigma2=0.0, double b=0.0)
 Constructor for a DoubleGaussianPsf. More...
 
virtual boost::shared_ptr< afw::detection::Psf > clone () const
 Polymorphic deep copy. Usually unnecessary, as Psfs are immutable. More...
 
virtual boost::shared_ptr< afw::detection::Psf > resized (int width, int height) const
 Return a clone with specified kernel dimensions. More...
 
double getSigma1 () const
 Return the radius of the inner Gaussian. More...
 
double getSigma2 () const
 Return the radius of the outer Gaussian. More...
 
double getB () const
 Return the ratio of Gaussian peak amplitudes: outer/inner. More...
 
virtual bool isPersistable () const
 Whether this Psf is persistable (always true for DoubleGaussianPsf). More...
 
boost::shared_ptr< afw::math::Kernel const > getKernel () const
 Return the Kernel used to define this Psf. More...
 
virtual afw::geom::Point2D getAveragePosition () const
 Return average position of stars; used as default position. More...
 

Protected Member Functions

virtual std::string getPersistenceName () const
 
virtual void write (OutputArchiveHandle &handle) const
 
virtual std::string getPythonModule () const
 
virtual double doComputeApertureFlux (double radius, afw::geom::Point2D const &position, afw::image::Color const &color) const
 
virtual afw::geom::ellipses::Quadrupole doComputeShape (afw::geom::Point2D const &position, afw::image::Color const &color) const
 

Friends

class boost::serialization::access
 

Detailed Description

Represent a Psf as a circularly symmetrical double Gaussian.

Definition at line 35 of file DoubleGaussianPsf.h.

Constructor & Destructor Documentation

◆ DoubleGaussianPsf()

lsst::meas::algorithms::DoubleGaussianPsf::DoubleGaussianPsf ( int  width,
int  height,
double  sigma1,
double  sigma2 = 0.0,
double  b = 0.0 
)

Constructor for a DoubleGaussianPsf.

Parameters
[in]widthNumber of columns in realisations of Psf
[in]heightNumber of rows in realisations of Psf
[in]sigma1Radius of inner Gaussian
[in]sigma2Radius of outer Gaussian
[in]bRatio of Gaussian peak amplitudes: outer/inner

Definition at line 123 of file DoubleGaussianPsf.cc.

Member Function Documentation

◆ clone()

boost::shared_ptr< afw::detection::Psf > lsst::meas::algorithms::DoubleGaussianPsf::clone ( ) const
virtual

Polymorphic deep copy. Usually unnecessary, as Psfs are immutable.

Reimplemented from lsst::meas::algorithms::KernelPsf.

Definition at line 128 of file DoubleGaussianPsf.cc.

◆ doComputeApertureFlux()

double lsst::meas::algorithms::ImagePsf::doComputeApertureFlux ( double  radius,
afw::geom::Point2D const &  position,
afw::image::Color const &  color 
) const
protectedvirtualinherited

Definition at line 31 of file ImagePsf.cc.

◆ doComputeShape()

afw::geom::ellipses::Quadrupole lsst::meas::algorithms::ImagePsf::doComputeShape ( afw::geom::Point2D const &  position,
afw::image::Color const &  color 
) const
protectedvirtualinherited

Definition at line 46 of file ImagePsf.cc.

◆ getAveragePosition()

afw::geom::Point2D lsst::meas::algorithms::KernelPsf::getAveragePosition ( ) const
virtualinherited

Return average position of stars; used as default position.

Definition at line 33 of file KernelPsf.cc.

◆ getB()

double lsst::meas::algorithms::DoubleGaussianPsf::getB ( ) const
inline

Return the ratio of Gaussian peak amplitudes: outer/inner.

Definition at line 62 of file DoubleGaussianPsf.h.

◆ getKernel()

boost::shared_ptr< afw::math::Kernel const > lsst::meas::algorithms::KernelPsf::getKernel ( ) const
inlineinherited

Return the Kernel used to define this Psf.

Definition at line 52 of file KernelPsf.h.

◆ getPersistenceName()

std::string lsst::meas::algorithms::DoubleGaussianPsf::getPersistenceName ( ) const
protectedvirtual

Reimplemented from lsst::meas::algorithms::KernelPsf.

Definition at line 143 of file DoubleGaussianPsf.cc.

◆ getPythonModule()

std::string lsst::meas::algorithms::KernelPsf::getPythonModule ( ) const
protectedvirtualinherited

Definition at line 60 of file KernelPsf.cc.

◆ getSigma1()

double lsst::meas::algorithms::DoubleGaussianPsf::getSigma1 ( ) const
inline

Return the radius of the inner Gaussian.

Definition at line 56 of file DoubleGaussianPsf.h.

◆ getSigma2()

double lsst::meas::algorithms::DoubleGaussianPsf::getSigma2 ( ) const
inline

Return the radius of the outer Gaussian.

Definition at line 59 of file DoubleGaussianPsf.h.

◆ isPersistable()

virtual bool lsst::meas::algorithms::DoubleGaussianPsf::isPersistable ( ) const
inlinevirtual

Whether this Psf is persistable (always true for DoubleGaussianPsf).

Reimplemented from lsst::meas::algorithms::KernelPsf.

Definition at line 65 of file DoubleGaussianPsf.h.

◆ resized()

boost::shared_ptr< afw::detection::Psf > lsst::meas::algorithms::DoubleGaussianPsf::resized ( int  width,
int  height 
) const
virtual

Return a clone with specified kernel dimensions.

Reimplemented from lsst::meas::algorithms::KernelPsf.

Definition at line 136 of file DoubleGaussianPsf.cc.

◆ write()

void lsst::meas::algorithms::DoubleGaussianPsf::write ( OutputArchiveHandle &  handle) const
protectedvirtual

Reimplemented from lsst::meas::algorithms::KernelPsf.

Definition at line 145 of file DoubleGaussianPsf.cc.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 78 of file DoubleGaussianPsf.h.


The documentation for this class was generated from the following files: