lsst.meas.extensions.psfex g0b6bd0c080+573c3bad9e
|
Represent a PSF as a linear combination of PSFEX (== Karhunen-Loeve) basis functions. More...
#include <PsfexPsf.h>
Public Types | |
enum | ImageOwnerEnum |
typedef math::Kernel::Pixel | Pixel |
typedef image::Image< Pixel > | Image |
Public Member Functions | |
PsfexPsf (lsst::meas::extensions::psfex::Psf const &psf, lsst::geom::Point2D const &averagePosition=lsst::geom::Point2D()) | |
Constructor for a PsfexPsf. More... | |
~PsfexPsf () override | |
std::shared_ptr< lsst::afw::detection::Psf > | clone () const override |
Polymorphic deep copy; should usually be unnecessary as Psfs are immutable.x. More... | |
std::shared_ptr< afw::detection::Psf > | resized (int width, int height) const override |
Return a clone with specified kernel dimensions. More... | |
lsst::geom::Point2D | getAveragePosition () const override |
Return average position of stars; used as default position. More... | |
std::shared_ptr< lsst::afw::math::LinearCombinationKernel const > | getKernel (lsst::geom::Point2D=lsst::geom::Point2D(std::numeric_limits< double >::quiet_NaN())) const |
Return the PSF's basis functions as a spatially-invariant LinearCombinationKernel with unit weights. More... | |
bool | isPersistable () const noexcept override |
Is this object persistable? More... | |
void | write (lsst::afw::table::io::OutputArchiveHandle &handle) const override |
std::shared_ptr< typehandling::Storable > | cloneStorable () const override |
std::shared_ptr< Image > | computeImage (lsst::geom::Point2D position, image::Color color=image::Color(), ImageOwnerEnum owner=COPY) const |
std::shared_ptr< Image > | computeImage () const |
std::shared_ptr< Image > | computeKernelImage (lsst::geom::Point2D position, image::Color color=image::Color(), ImageOwnerEnum owner=COPY) const |
std::shared_ptr< Image > | computeKernelImage () const |
double | computePeak (lsst::geom::Point2D position, image::Color color=image::Color()) const |
double | computePeak () const |
double | computeApertureFlux (double radius, lsst::geom::Point2D position, image::Color color=image::Color()) const |
double | computeApertureFlux (double radius) const |
geom::ellipses::Quadrupole | computeShape (lsst::geom::Point2D position, image::Color color=image::Color()) const |
geom::ellipses::Quadrupole | computeShape () const |
std::shared_ptr< math::Kernel const > | getLocalKernel (lsst::geom::Point2D position, image::Color color=image::Color()) const |
std::shared_ptr< math::Kernel const > | getLocalKernel () const |
image::Color | getAverageColor () const |
lsst::geom::Box2I | computeBBox (lsst::geom::Point2D position, image::Color color=image::Color()) const |
lsst::geom::Box2I | computeBBox () const |
lsst::geom::Box2I | computeImageBBox (lsst::geom::Point2D position, image::Color color=image::Color()) const |
lsst::geom::Box2I | computeImageBBox () const |
lsst::geom::Box2I | computeKernelBBox (lsst::geom::Point2D position, image::Color color=image::Color()) const |
lsst::geom::Box2I | computeKernelBBox () const |
std::size_t | getCacheCapacity () const |
void | setCacheCapacity (std::size_t capacity) |
virtual std::string | toString () const |
virtual std::size_t | hash_value () const |
virtual bool | equals (Storable const &other) const noexcept |
virtual bool | equals (Storable const &other) const noexcept |
void | writeFits (std::string const &fileName, std::string const &mode="w") const |
void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
void | writeFits (fits::Fits &fitsfile) const |
std::ostream & | operator<< (std::ostream &os, Storable const &storable) |
std::ostream & | operator<< (std::ostream &os, Storable const &storable) |
Static Public Member Functions | |
static std::shared_ptr< T > | readFits (fits::Fits &fitsfile) |
static std::shared_ptr< T > | readFits (std::string const &fileName, int hdu=fits::DEFAULT_HDU) |
static std::shared_ptr< T > | readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU) |
static std::shared_ptr< T > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
static std::shared_ptr< Image > | recenterKernelImage (std::shared_ptr< Image > im, lsst::geom::Point2D const &position, std::string const &warpAlgorithm="lanczos5", unsigned int warpBuffer=5) |
static std::shared_ptr< Psf > | readFits (fits::Fits &fitsfile) |
static std::shared_ptr< Psf > | readFits (std::string const &fileName, int hdu=fits::DEFAULT_HDU) |
static std::shared_ptr< Psf > | readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU) |
static std::shared_ptr< Psf > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
Public Attributes | |
COPY | |
INTERNAL | |
Protected Types | |
typedef io::OutputArchiveHandle | OutputArchiveHandle |
Protected Member Functions | |
virtual double | doComputeApertureFlux (double radius, geom::Point2D const &position, afw::image::Color const &color) const |
virtual afw::geom::ellipses::Quadrupole | doComputeShape (geom::Point2D const &position, afw::image::Color const &color) const |
virtual lsst::geom::Box2I | doComputeImageBBox (lsst::geom::Point2D const &position, image::Color const &color) const |
virtual void | write (OutputArchiveHandle &handle) const |
Static Protected Member Functions | |
static bool | singleClassEquals (T const &lhs, Storable const &rhs) |
static bool | singleClassEquals (T const &lhs, Storable const &rhs) |
Private Member Functions | |
virtual std::shared_ptr< lsst::afw::detection::Psf::Image > | _doComputeImage (lsst::geom::Point2D const &position, lsst::afw::image::Color const &color, lsst::geom::Point2D const ¢er) const |
Compute an image of the Psf at the specified position/colour, at pixel position in the output image. More... | |
Friends | |
class | detail::PsfexPsfFactory |
Represent a PSF as a linear combination of PSFEX (== Karhunen-Loeve) basis functions.
Definition at line 39 of file PsfexPsf.h.
|
explicit |
Constructor for a PsfexPsf.
[in] | psf | Psfex PSF model to be wrapped into an LSST Psf |
[in] | averagePosition | Average position of stars used to construct the Psf. |
Definition at line 64 of file PsfexPsf.cc.
|
override |
Definition at line 98 of file PsfexPsf.cc.
|
privatevirtual |
Compute an image of the Psf at the specified position/colour, at pixel position in the output image.
position | position within the chip |
color | colour of object |
center | position of center of image in the output image |
Definition at line 225 of file PsfexPsf.cc.
|
overridevirtual |
Polymorphic deep copy; should usually be unnecessary as Psfs are immutable.x.
Implements lsst::afw::detection::Psf.
Definition at line 104 of file PsfexPsf.cc.
|
inlineoverridevirtual |
Return average position of stars; used as default position.
Reimplemented from lsst::afw::detection::Psf.
Definition at line 60 of file PsfexPsf.h.
std::shared_ptr< afw::math::LinearCombinationKernel const > lsst::meas::extensions::psfex::PsfexPsf::getKernel | ( | lsst::geom::Point2D | position = lsst::geom::Point2D(std::numeric_limits<double>::quiet_NaN()) | ) | const |
Return the PSF's basis functions as a spatially-invariant LinearCombinationKernel with unit weights.
Definition at line 114 of file PsfexPsf.cc.
|
inlineoverridevirtualnoexcept |
Is this object persistable?
Reimplemented from lsst::afw::detection::Psf.
Definition at line 69 of file PsfexPsf.h.
|
overridevirtual |
Return a clone with specified kernel dimensions.
Implements lsst::afw::detection::Psf.
Definition at line 109 of file PsfexPsf.cc.
|
overridevirtual |
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 479 of file PsfexPsf.cc.
|
friend |
Definition at line 41 of file PsfexPsf.h.