lsst.afw
20.0.0-4-gde602ef96
|
Go to the documentation of this file.
23 #ifndef LSST_AFW_DETECTION_Psf_h_INCLUDED
24 #define LSST_AFW_DETECTION_Psf_h_INCLUDED
269 unsigned int warpBuffer = 5);
329 #endif // !LSST_AFW_DETECTION_Psf_h_INCLUDED
math::Kernel::Pixel Pixel
Pixel type of Image returned by computeImage.
Psf & operator=(Psf const &)=delete
virtual lsst::geom::Point2D getAveragePosition() const
Return the average position of the stars used to construct the Psf.
geom::ellipses::Quadrupole computeShape(lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const
Compute the ellipse corresponding to the second moments of the Psf.
@ INTERNAL
An internal image will be returned without copying.
double computePeak(lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const
Return the peak value of the PSF image.
virtual std::shared_ptr< Psf > clone() const =0
Polymorphic deep-copy.
Interface supporting iteration over heterogenous containers.
Point< double, 2 > Point2D
void setCacheCapacity(std::size_t capacity)
Set the capacity of the caches.
std::shared_ptr< typehandling::Storable > cloneStorable() const override
Polymorphic deep-copy.
std::size_t getCacheCapacity() const
Return the capacity of the caches.
Psf & operator=(Psf &&)=delete
virtual std::shared_ptr< Psf > resized(int width, int height) const =0
Return clone with specified kernel dimensions.
image::Image< Pixel > Image
Image type returned by computeImage.
std::shared_ptr< Image > computeImage(lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color(), ImageOwnerEnum owner=COPY) const
Return an Image of the PSF, in a form that can be compared directly with star images.
@ COPY
The image will be copied before returning; caller will own it.
A base class for image defects.
An ellipse core with quadrupole moments as parameters.
image::Color getAverageColor() const
Return the average Color of the stars used to construct the Psf.
ImageOwnerEnum
Enum passed to computeImage and computeKernelImage to determine image ownership.
lsst::geom::Box2I computeBBox(lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const
Return the bounding box of the image returned by computeKernelImage()
A CRTP facade class for subclasses of Persistable.
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,...
A polymorphic base class for representing an image's Point Spread Function.
std::shared_ptr< math::Kernel const > getLocalKernel(lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color()) const
Return a FixedKernel corresponding to the Psf image at the given point.
double computeApertureFlux(double radius, lsst::geom::Point2D position=makeNullPoint(), 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 > computeKernelImage(lsst::geom::Point2D position=makeNullPoint(), image::Color color=image::Color(), ImageOwnerEnum owner=COPY) const
Return an Image of the PSF, in a form suitable for convolution.
virtual std::shared_ptr< Image > doComputeImage(lsst::geom::Point2D const &position, image::Color const &color) const
This virtual member is protected (rather than private) so that python-implemented derived classes may...
Describe the colour of a source.