|
lsst.afw
13.0-94-ga1c444047
|
A circularly symmetric Gaussian Psf class with no spatial variation, intended mostly for testing purposes. More...
#include <GaussianPsf.h>
Public Member Functions | |
| GaussianPsf (int width, int height, double sigma) | |
| Constructor for a GaussianPsf. More... | |
| GaussianPsf (geom::Extent2I const &dimensions, double sigma) | |
| Constructor for a GaussianPsf. More... | |
| virtual std::shared_ptr< afw::detection::Psf > | clone () const |
| Polymorphic deep copy; should usually be unnecessary because Psfs are immutable. More... | |
| virtual std::shared_ptr< afw::detection::Psf > | resized (int width, int height) const |
| Return a clone with specified kernel dimensions. More... | |
| geom::Extent2I | getDimensions () const |
| Return the dimensions of the images returned by computeImage() More... | |
| double | getSigma () const |
| Return the radius of the Gaussian. More... | |
| virtual bool | isPersistable () const |
| Whether the Psf is persistable; always true. More... | |
Public Member Functions inherited from lsst::afw::detection::Psf | |
| virtual | ~Psf () |
| std::shared_ptr< Image > | computeImage (geom::Point2D position=makeNullPoint(), image::Color color=image::Color(), ImageOwnerEnum owner=COPY) const |
| Return an Image of the PSF, in a form that can be compared directly with star images. More... | |
| std::shared_ptr< Image > | computeKernelImage (geom::Point2D position=makeNullPoint(), image::Color color=image::Color(), ImageOwnerEnum owner=COPY) const |
| Return an Image of the PSF, in a form suitable for convolution. More... | |
| double | computePeak (geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
| Return the peak value of the PSF image. More... | |
| double | computeApertureFlux (double radius, geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
| Compute the "flux" of the Psf model within a circular aperture of the given radius. More... | |
| geom::ellipses::Quadrupole | computeShape (geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
| Compute the ellipse corresponding to the second moments of the Psf. More... | |
| std::shared_ptr< math::Kernel const > | getLocalKernel (geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
| Return a FixedKernel corresponding to the Psf image at the given point. More... | |
| image::Color | getAverageColor () const |
| Return the average Color of the stars used to construct the Psf. More... | |
| virtual geom::Point2D | getAveragePosition () const |
| Return the average position of the stars used to construct the Psf. More... | |
| geom::Box2I | computeBBox (geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
| Return the bounding box of the image returned by computeKernelImage() More... | |
Public Member Functions inherited from lsst::afw::table::io::Persistable | |
| void | writeFits (std::string const &fileName, std::string const &mode="w") const |
| Write the object to a regular FITS file. More... | |
| void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
| Write the object to a FITS image in memory. More... | |
| void | writeFits (fits::Fits &fitsfile) const |
| Write the object to an already-open FITS object. More... | |
| virtual | ~Persistable () |
Protected Member Functions | |
| virtual std::string | getPersistenceName () const |
| Return the unique name used to persist this object and look up its factory. More... | |
| virtual std::string | getPythonModule () const |
| Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More... | |
| virtual void | write (OutputArchiveHandle &handle) const |
| Write the object to one or more catalogs. More... | |
Protected Member Functions inherited from lsst::afw::detection::Psf | |
| Psf (bool isFixed=false) | |
| Main constructor for subclasses. More... | |
Protected Member Functions inherited from lsst::afw::table::io::Persistable | |
| Persistable () | |
| Persistable (Persistable const &other) | |
| void | operator= (Persistable const &other) |
Additional Inherited Members | |
Public Types inherited from lsst::afw::detection::Psf | |
| enum | ImageOwnerEnum { COPY = 0, INTERNAL = 1 } |
| Enum passed to computeImage and computeKernelImage to determine image ownership. More... | |
| typedef math::Kernel::Pixel | Pixel |
| Pixel type of Image returned by computeImage. More... | |
| typedef image::Image< Pixel > | Image |
| Image type returned by computeImage. More... | |
Static Public Member Functions inherited from lsst::afw::table::io::PersistableFacade< GaussianPsf > | |
| static std::shared_ptr< GaussianPsf > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
| static std::shared_ptr< GaussianPsf > | readFits (std::string const &fileName, int hdu=INT_MIN) |
| Read an object from a regular FITS file. More... | |
| static std::shared_ptr< GaussianPsf > | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| Read an object from a FITS file in memory. More... | |
Static Public Member Functions inherited from lsst::afw::detection::Psf | |
| static std::shared_ptr< Image > | recenterKernelImage (std::shared_ptr< Image > im, geom::Point2D const &position, std::string const &warpAlgorithm="lanczos5", unsigned int warpBuffer=5) |
| Helper function for Psf::doComputeImage(): converts a kernel image (centered at (0,0) when xy0 is taken into account) to an image centered at position when xy0 is taken into account. More... | |
Static Public Member Functions inherited from lsst::afw::table::io::PersistableFacade< Psf > | |
| static std::shared_ptr< Psf > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
| static std::shared_ptr< Psf > | readFits (std::string const &fileName, int hdu=INT_MIN) |
| Read an object from a regular FITS file. More... | |
| static std::shared_ptr< Psf > | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| Read an object from a FITS file in memory. More... | |
Protected Types inherited from lsst::afw::table::io::Persistable | |
| typedef io::OutputArchiveHandle | OutputArchiveHandle |
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.
Definition at line 43 of file GaussianPsf.h.
| lsst::afw::detection::GaussianPsf::GaussianPsf | ( | int | width, |
| int | height, | ||
| double | sigma | ||
| ) |
Constructor for a GaussianPsf.
| [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. |
Definition at line 96 of file GaussianPsf.cc.
| lsst::afw::detection::GaussianPsf::GaussianPsf | ( | geom::Extent2I const & | dimensions, |
| double | sigma | ||
| ) |
Constructor for a GaussianPsf.
| [in] | dimensions | Number of columns, rows in realizations of the PSF at a point. |
| [in] | sigma | Radius of the Gaussian. |
Definition at line 101 of file GaussianPsf.cc.
|
virtual |
Polymorphic deep copy; should usually be unnecessary because Psfs are immutable.
Implements lsst::afw::detection::Psf.
Definition at line 106 of file GaussianPsf.cc.
|
inline |
Return the dimensions of the images returned by computeImage()
Definition at line 69 of file GaussianPsf.h.
|
protectedvirtual |
Return the unique name used to persist this object and look up its factory.
Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 114 of file GaussianPsf.cc.
|
protectedvirtual |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 116 of file GaussianPsf.cc.
|
inline |
Return the radius of the Gaussian.
Definition at line 72 of file GaussianPsf.h.
|
inlinevirtual |
Whether the Psf is persistable; always true.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 75 of file GaussianPsf.h.
|
virtual |
Return a clone with specified kernel dimensions.
Implements lsst::afw::detection::Psf.
Definition at line 110 of file GaussianPsf.cc.
|
protectedvirtual |
Write the object to one or more catalogs.
The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 118 of file GaussianPsf.cc.
1.8.13