23#ifndef LSST_AFW_DETECTION_Psf_h_INCLUDED
24#define LSST_AFW_DETECTION_Psf_h_INCLUDED
31#include "lsst/utils/CacheFwd.h"
154 "Default position argument overload is deprecated and will be removed "
155 "in version 24.0. Please use overload with explicit position."
186 "Default position argument overload is deprecated and will be removed "
187 "in version 24.0. Please use overload with explicit position."
206 "Default position argument overload is deprecated and will be removed "
207 "in version 24.0. Please use overload with explicit position."
226 "Default position argument overload is deprecated and will be removed "
227 "in version 24.0. Please use overload with explicit position."
245 "Default position argument overload is deprecated and will be removed "
246 "in version 24.0. Please use overload with explicit position."
264 "Default position argument overload is deprecated and will be removed "
265 "in version 24.0. Please use overload with explicit position."
294 "Default position argument overload is deprecated and will be removed "
295 "in version 24.0. Please use overload with explicit position."
310 "Default position argument overload is deprecated and will be removed "
311 "in version 24.0. Please use overload with explicit position."
329 "Default position argument overload is deprecated and will be removed "
330 "in version 24.0. Please use overload with explicit position."
357 unsigned int warpBuffer = 5);
416 using PsfCache = utils::Cache<detail::PsfCacheKey, std::shared_ptr<Image>>;
A polymorphic base class for representing an image's Point Spread Function.
Psf & operator=(Psf const &)=delete
std::shared_ptr< typehandling::Storable > cloneStorable() const override
Polymorphic deep-copy.
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)
Helper function for Psf::doComputeImage(): converts a kernel image (centered at (0,...
math::Kernel::Pixel Pixel
Pixel type of Image returned by computeImage.
lsst::geom::Box2I computeBBox() const
virtual std::shared_ptr< Image > doComputeImage(lsst::geom::Point2D const &position, image::Color const &color) const
These virtual members are protected (rather than private) so that python-implemented derived classes ...
lsst::geom::Box2I computeImageBBox() const
virtual std::shared_ptr< Image > doComputeKernelImage(lsst::geom::Point2D const &position, image::Color const &color) const =0
These virtual member functions are private, not protected, because we only want derived classes to im...
std::size_t getCacheCapacity() const
Return the capacity of the caches.
double computeApertureFlux(double radius, lsst::geom::Point2D position, image::Color color=image::Color()) const
Compute the "flux" of the Psf model within a circular aperture of the given radius.
std::shared_ptr< Image > computeImage() const
lsst::geom::Box2I computeKernelBBox() const
Psf & operator=(Psf &&)=delete
std::shared_ptr< Image > computeKernelImage() const
double computePeak() const
virtual std::shared_ptr< Psf > resized(int width, int height) const =0
Return clone with specified kernel dimensions.
image::Color getAverageColor() const
Return the average Color of the stars used to construct the Psf.
virtual std::shared_ptr< Psf > clone() const =0
Polymorphic deep-copy.
virtual lsst::geom::Box2I doComputeImageBBox(lsst::geom::Point2D const &position, image::Color const &color) const
ImageOwnerEnum
Enum passed to computeImage and computeKernelImage to determine image ownership.
@ COPY
The image will be copied before returning; caller will own it.
@ INTERNAL
An internal image will be returned without copying.
virtual lsst::geom::Box2I doComputeBBox(lsst::geom::Point2D const &position, image::Color const &color) const =0
void setCacheCapacity(std::size_t capacity)
Set the capacity of the caches.
geom::ellipses::Quadrupole computeShape() const
virtual double doComputeApertureFlux(double radius, lsst::geom::Point2D const &position, image::Color const &color) const =0
virtual lsst::geom::Point2D getAveragePosition() const
Return the average position of the stars used to construct the Psf.
lsst::geom::Box2I computeKernelBBox(lsst::geom::Point2D position, image::Color color=image::Color()) const
Return the bounding box of the image returned by computeImage()
virtual geom::ellipses::Quadrupole doComputeShape(lsst::geom::Point2D const &position, image::Color const &color) const =0
std::shared_ptr< math::Kernel const > getLocalKernel() const
An ellipse core with quadrupole moments as parameters.
Describe the colour of a source.
A class to represent a 2-dimensional array of pixels.
A CRTP facade class for subclasses of Persistable.
Interface supporting iteration over heterogenous containers.
Point< double, 2 > Point2D
A base class for image defects.