lsst.meas.algorithms
15.0-13-g0ee414d5+1
|
A Psf defined by a Kernel. More...
#include <KernelPsf.h>
Public Types | |
enum | ImageOwnerEnum |
typedef math::Kernel::Pixel | Pixel |
typedef image::Image< Pixel > | Image |
typedef unsigned long | memId |
typedef memId(* | memNewCallback) (const memId cid) |
typedef memId(* | memCallback) (const Citizen *ptr) |
typedef std::shared_ptr< Persistable > | Ptr |
Public Member Functions | |
KernelPsf (afw::math::Kernel const &kernel, geom::Point2D const &averagePosition=geom::Point2D()) | |
Construct a KernelPsf with a clone of the given kernel. More... | |
boost::shared_ptr< afw::math::Kernel const > | getKernel () const |
Return the Kernel used to define this Psf. More... | |
virtual geom::Point2D | getAveragePosition () const |
Return average position of stars; used as default position. More... | |
virtual boost::shared_ptr< afw::detection::Psf > | clone () const |
Polymorphic deep copy. More... | |
virtual boost::shared_ptr< afw::detection::Psf > | resized (int width, int height) const |
Return a clone with specified kernel dimensions. More... | |
virtual bool | isPersistable () const |
Whether this object is persistable; just delegates to the kernel. More... | |
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 |
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) |
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::string | repr () const |
void | markPersistent (void) |
memId | getId () const |
void | serialize (Archive &, unsigned int const) |
Static Public Member Functions | |
static std::shared_ptr< KernelPsf > | readFits (fits::Fits &fitsfile) |
static std::shared_ptr< KernelPsf > | readFits (std::string const &fileName, int hdu=fits::DEFAULT_HDU) |
static std::shared_ptr< KernelPsf > | readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU) |
static std::shared_ptr< ImagePsf > | readFits (fits::Fits &fitsfile) |
static std::shared_ptr< ImagePsf > | readFits (std::string const &fileName, int hdu=fits::DEFAULT_HDU) |
static std::shared_ptr< ImagePsf > | readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU) |
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< Image > | recenterKernelImage (std::shared_ptr< Image > im, lsst::geom::Point2D const &position, std::string const &warpAlgorithm="lanczos5", unsigned int warpBuffer=5) |
static bool | hasBeenCorrupted () |
static memId | getNextMemId () |
static int | init () |
static int | census (int, memId startingMemId=0) |
static void | census (std::ostream &stream, memId startingMemId=0) |
static const std::vector< const Citizen *> * | census () |
static int | census (int, memId startingMemId=0) |
static void | census (std::ostream &stream, memId startingMemId=0) |
static const std::vector< const Citizen *> * | census () |
static memId | setNewCallbackId (memId id) |
static memId | setNewCallbackId (memId id) |
static memId | setDeleteCallbackId (memId id) |
static memId | setDeleteCallbackId (memId id) |
static memNewCallback | setNewCallback (memNewCallback func) |
static memCallback | setDeleteCallback (memCallback func) |
static memCallback | setCorruptionCallback (memCallback func) |
Public Attributes | |
COPY | |
INTERNAL | |
magicSentinel | |
Protected Types | |
typedef io::OutputArchiveHandle | OutputArchiveHandle |
Protected Member Functions | |
KernelPsf (boost::shared_ptr< afw::math::Kernel > kernel, geom::Point2D const &averagePosition=geom::Point2D()) | |
Construct a KernelPsf with the given kernel; it should not be modified afterwards. More... | |
virtual std::string | getPersistenceName () const |
virtual std::string | getPythonModule () const |
virtual void | write (OutputArchiveHandle &handle) const |
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 void | write (OutputArchiveHandle &handle) const |
Friends | |
template<typename T , typename K > | |
class | KernelPsfFactory |
A Psf defined by a Kernel.
Definition at line 36 of file KernelPsf.h.
|
explicit |
Construct a KernelPsf with a clone of the given kernel.
We clone the Kernel in the public constructor to ensure the Psf is immutable after construction (we don't want someone with another copy of the Kernel to be able to modify the one held by the Psf).
Derived classes may use the protected constructor, which takes a shared_ptr to Kernel and does not copy it.
Definition at line 22 of file KernelPsf.cc.
|
explicitprotected |
Construct a KernelPsf with the given kernel; it should not be modified afterwards.
Definition at line 27 of file KernelPsf.cc.
|
virtual |
Polymorphic deep copy.
Implements lsst::afw::detection::Psf.
Reimplemented in lsst::meas::algorithms::SingleGaussianPsf, lsst::meas::algorithms::DoubleGaussianPsf, and lsst::meas::algorithms::PcaPsf.
Definition at line 30 of file KernelPsf.cc.
|
protectedvirtualinherited |
Definition at line 34 of file ImagePsf.cc.
|
protectedvirtualinherited |
Definition at line 45 of file ImagePsf.cc.
|
virtual |
Return average position of stars; used as default position.
Reimplemented from lsst::afw::detection::Psf.
Definition at line 36 of file KernelPsf.cc.
|
inline |
Return the Kernel used to define this Psf.
Definition at line 52 of file KernelPsf.h.
|
protectedvirtual |
Reimplemented from lsst::afw::detection::Psf.
Reimplemented in lsst::meas::algorithms::DoubleGaussianPsf, and lsst::meas::algorithms::SingleGaussianPsf.
Definition at line 59 of file KernelPsf.cc.
|
protectedvirtual |
Reimplemented from lsst::afw::detection::Psf.
Definition at line 61 of file KernelPsf.cc.
|
virtual |
Whether this object is persistable; just delegates to the kernel.
Reimplemented from lsst::afw::detection::Psf.
Reimplemented in lsst::meas::algorithms::DoubleGaussianPsf, and lsst::meas::algorithms::SingleGaussianPsf.
Definition at line 57 of file KernelPsf.cc.
|
virtual |
Return a clone with specified kernel dimensions.
Implements lsst::afw::detection::Psf.
Reimplemented in lsst::meas::algorithms::SingleGaussianPsf, lsst::meas::algorithms::DoubleGaussianPsf, and lsst::meas::algorithms::PcaPsf.
Definition at line 32 of file KernelPsf.cc.
|
protectedvirtual |
Reimplemented from lsst::afw::detection::Psf.
Reimplemented in lsst::meas::algorithms::DoubleGaussianPsf, and lsst::meas::algorithms::SingleGaussianPsf.
Definition at line 63 of file KernelPsf.cc.
|
friend |
Definition at line 81 of file KernelPsf.h.