|
lsst.meas.algorithms g1581cd22ba+2a89f360ba
|
A Psf class that maps an arbitrary Psf through a coordinate transformation. More...
#include <WarpedPsf.h>
Public Types | |
| enum | ImageOwnerEnum |
| typedef math::Kernel::Pixel | Pixel |
| typedef image::Image< Pixel > | Image |
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< 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< 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< T > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
| static std::shared_ptr< Psf > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
| 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) |
Public Attributes | |
| COPY | |
| INTERNAL | |
Protected Types | |
| typedef io::OutputArchiveHandle | OutputArchiveHandle |
Protected Member Functions | |
| std::shared_ptr< afw::detection::Psf::Image > | doComputeKernelImage (geom::Point2D const &position, afw::image::Color const &color) const override |
| std::string | getPersistenceName () const override |
| std::string | getPythonModule () const override |
| void | write (OutputArchiveHandle &handle) const override |
| 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 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) |
Protected Attributes | |
| std::shared_ptr< afw::detection::Psf const > | _undistortedPsf |
| std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | _distortion |
Private Member Functions | |
| geom::Box2I | doComputeBBox (geom::Point2D const &position, afw::image::Color const &color) const override |
A Psf class that maps an arbitrary Psf through a coordinate transformation.
If K_0(x,x') is the unwarped PSF, and f is the coordinate transform, then the warped PSF is defined by
K(f(x),f(x')) = K_0(x,x') (*)
We linearize the coordinate transform in the vicinity of the point where the PSF is computed. The definition (*) does not include the Jacobian of the transformation, since the afw convention is that PSF's are normalized to have integral 1 anyway.
Definition at line 52 of file WarpedPsf.h.
| lsst::meas::algorithms::WarpedPsf::WarpedPsf | ( | std::shared_ptr< afw::detection::Psf const > | undistortedPsf, |
| std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | distortion, | ||
| std::shared_ptr< afw::math::WarpingControl const > | control ) |
Construct WarpedPsf from unwarped psf and distortion.
If p is the nominal pixel position, and p' is the true position on the sky, then our convention for the transform is that p' = distortion.applyForward(p)
Definition at line 186 of file WarpedPsf.cc.
| lsst::meas::algorithms::WarpedPsf::WarpedPsf | ( | std::shared_ptr< afw::detection::Psf const > | undistortedPsf, |
| std::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | distortion, | ||
| std::string const & | kernelName = "lanczos3", | ||
| unsigned int | cache = 10000 ) |
Definition at line 196 of file WarpedPsf.cc.
|
overridevirtual |
Polymorphic deep copy. Usually unnecessary, as Psfs are immutable.
Implements lsst::afw::detection::Psf.
Definition at line 224 of file WarpedPsf.cc.
|
protectedvirtualinherited |
Implements lsst::afw::detection::Psf.
Definition at line 45 of file ImagePsf.cc.
|
overrideprivatevirtual |
Implements lsst::afw::detection::Psf.
Definition at line 264 of file WarpedPsf.cc.
|
overrideprotectedvirtual |
Implements lsst::afw::detection::Psf.
Definition at line 235 of file WarpedPsf.cc.
|
protectedvirtualinherited |
Implements lsst::afw::detection::Psf.
Definition at line 65 of file ImagePsf.cc.
|
overridevirtual |
Return the average of the positions of the stars that went into this Psf.
For WarpedPsf, this is just the transform of the undistorted Psf's average position.
Reimplemented from lsst::afw::detection::Psf.
Definition at line 220 of file WarpedPsf.cc.
|
overrideprotectedvirtual |
Reimplemented from lsst::afw::detection::Psf.
Definition at line 315 of file WarpedPsf.cc.
|
overrideprotectedvirtual |
Reimplemented from lsst::afw::detection::Psf.
Definition at line 316 of file WarpedPsf.cc.
|
inlineoverridevirtualnoexcept |
Reimplemented from lsst::afw::detection::Psf.
Definition at line 80 of file WarpedPsf.h.
|
overridevirtual |
Return a clone with specified kernel dimensions.
Implements lsst::afw::detection::Psf.
Definition at line 228 of file WarpedPsf.cc.
|
overrideprotectedvirtual |
Reimplemented from lsst::afw::detection::Psf.
Definition at line 318 of file WarpedPsf.cc.
|
protected |
Definition at line 94 of file WarpedPsf.h.
|
protected |
Definition at line 93 of file WarpedPsf.h.