lsst.meas.algorithms
21.0.0-10-gbfb87ad6+9dea0fece6
|
An intermediate base class for Psfs that use an image representation. More...
#include <ImagePsf.h>
Public Types | |
enum | ImageOwnerEnum |
typedef math::Kernel::Pixel | Pixel |
typedef image::Image< Pixel > | Image |
Public Member Functions | |
virtual std::shared_ptr< Psf > | clone () const=0 |
std::shared_ptr< typehandling::Storable > | cloneStorable () const override |
virtual std::shared_ptr< Psf > | resized (int width, int height) const=0 |
std::shared_ptr< Image > | computeImage (lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color(), ImageOwnerEnum owner=COPY) const |
std::shared_ptr< Image > | computeKernelImage (lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color(), ImageOwnerEnum owner=COPY) const |
double | computePeak (lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
double | computeApertureFlux (double radius, lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
geom::ellipses::Quadrupole | computeShape (lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
std::shared_ptr< math::Kernel const > | getLocalKernel (lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const |
image::Color | getAverageColor () const |
virtual lsst::geom::Point2D | getAveragePosition () const |
lsst::geom::Box2I | computeBBox (lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) 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 |
virtual bool | isPersistable () const noexcept |
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 > | readFits (fits::Fits &fitsfile) |
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 | |
ImagePsf (bool isFixed=false) | |
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 std::shared_ptr< Image > | doComputeImage (lsst::geom::Point2D const &position, image::Color const &color) const |
virtual std::string | getPersistenceName () const |
virtual std::string | getPythonModule () const |
virtual void | write (OutputArchiveHandle &handle) 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) |
An intermediate base class for Psfs that use an image representation.
ImagePsf exists only to provide implementations of doComputeApertureFlux and doComputeShape for its derived classes. These implementations use the SincFlux and SdssShape algorithms defined in meas_algorithms, and hence could not be included with the Psf base class in afw.
Definition at line 40 of file ImagePsf.h.
|
inlineexplicitprotected |
Definition at line 42 of file ImagePsf.h.
|
protectedvirtual |
Implements lsst::afw::detection::Psf.
Definition at line 45 of file ImagePsf.cc.
|
protectedvirtual |
Implements lsst::afw::detection::Psf.
Definition at line 56 of file ImagePsf.cc.