|
lsst.meas.algorithms
19.0.0-13-gc12c6924
|
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 |
Public Member Functions | |
| WarpedPsf (boost::shared_ptr< afw::detection::Psf const > undistortedPsf, boost::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > distortion, boost::shared_ptr< afw::math::WarpingControl const > control) | |
| Construct WarpedPsf from unwarped psf and distortion. More... | |
| WarpedPsf (boost::shared_ptr< afw::detection::Psf const > undistortedPsf, boost::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > distortion, std::string const &kernelName="lanczos3", unsigned int cache=10000) | |
| virtual geom::Point2D | getAveragePosition () const |
| Return the average of the positions of the stars that went into this Psf. More... | |
| virtual boost::shared_ptr< afw::detection::Psf > | clone () const |
| Polymorphic deep copy. Usually unnecessary, as Psfs are immutable. More... | |
| virtual boost::shared_ptr< afw::detection::Psf > | resized (int width, int height) const |
| Return a clone with specified kernel dimensions. More... | |
| std::shared_ptr< typehandling::Storable > | cloneStorable () const override final |
| 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) |
| 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< 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< ImagePsf > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
| static std::shared_ptr< Psf > | 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 | |
| virtual boost::shared_ptr< afw::detection::Psf::Image > | doComputeKernelImage (geom::Point2D const &position, afw::image::Color const &color) 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 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) |
Protected Attributes | |
| boost::shared_ptr< afw::detection::Psf const > | _undistortedPsf |
| boost::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | _distortion |
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 50 of file WarpedPsf.h.
| lsst::meas::algorithms::WarpedPsf::WarpedPsf | ( | boost::shared_ptr< afw::detection::Psf const > | undistortedPsf, |
| boost::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | distortion, | ||
| boost::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 138 of file WarpedPsf.cc.
| lsst::meas::algorithms::WarpedPsf::WarpedPsf | ( | boost::shared_ptr< afw::detection::Psf const > | undistortedPsf, |
| boost::shared_ptr< afw::geom::TransformPoint2ToPoint2 const > | distortion, | ||
| std::string const & | kernelName = "lanczos3", |
||
| unsigned int | cache = 10000 |
||
| ) |
Definition at line 148 of file WarpedPsf.cc.
|
virtual |
Polymorphic deep copy. Usually unnecessary, as Psfs are immutable.
Implements lsst::afw::detection::Psf.
Definition at line 176 of file WarpedPsf.cc.
|
protectedvirtualinherited |
Definition at line 45 of file ImagePsf.cc.
|
protectedvirtual |
Definition at line 188 of file WarpedPsf.cc.
|
protectedvirtualinherited |
Definition at line 56 of file ImagePsf.cc.
|
virtual |
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 172 of file WarpedPsf.cc.
|
virtual |
Return a clone with specified kernel dimensions.
Implements lsst::afw::detection::Psf.
Definition at line 180 of file WarpedPsf.cc.
|
protected |
Definition at line 84 of file WarpedPsf.h.
|
protected |
Definition at line 83 of file WarpedPsf.h.
1.8.13