25 #include "lsst/afw/geom/Point.h" 26 #include "lsst/afw/geom/Extent.h" 27 #include "lsst/afw/geom/XYTransform.h" 28 #include "lsst/afw/math/warpExposure.h" 31 #ifndef LSST_AFW_DETECTION_WARPEDPSF_H 32 #define LSST_AFW_DETECTION_WARPEDPSF_H 34 namespace lsst {
namespace meas {
namespace algorithms {
59 CONST_PTR(afw::detection::Psf) undistortedPsf,
60 CONST_PTR(afw::geom::XYTransform) distortion,
61 CONST_PTR(afw::math::WarpingControl) control
64 CONST_PTR(afw::detection::Psf) undistortedPsf,
65 CONST_PTR(afw::geom::XYTransform) distortion,
66 std::string
const& kernelName=
"lanczos3",
67 unsigned int cache=10000
78 virtual PTR(afw::detection::Psf)
clone()
const;
81 virtual PTR(afw::detection::Psf)
resized(
int width,
int height)
const;
86 afw::geom::Point2D
const & position, afw::image::Color
const & color
95 CONST_PTR(afw::math::WarpingControl) _warpingControl;
97 virtual afw::geom::Box2I doComputeBBox(
98 afw::geom::Point2D
const & position,
99 afw::image::Color
const & color
105 #endif // LSST_MEAS_ALGORITHMS_WARPEDPSF_H WarpedPsf(boost::shared_ptr< afw::detection::Psf const > undistortedPsf, boost::shared_ptr< afw::geom::XYTransform const > distortion, boost::shared_ptr< afw::math::WarpingControl const > control)
Construct WarpedPsf from unwarped psf and distortion.
virtual afw::geom::Point2D getAveragePosition() const
Return the average of the positions of the stars that went into this Psf.
virtual boost::shared_ptr< afw::detection::Psf::Image > doComputeKernelImage(afw::geom::Point2D const &position, afw::image::Color const &color) const
virtual boost::shared_ptr< afw::detection::Psf > resized(int width, int height) const
Return a clone with specified kernel dimensions.
virtual boost::shared_ptr< afw::detection::Psf > clone() const
Polymorphic deep copy. Usually unnecessary, as Psfs are immutable.
An intermediate base class for Psfs that use an image representation.
boost::shared_ptr< afw::detection::Psf const > _undistortedPsf
A Psf class that maps an arbitrary Psf through a coordinate transformation.
boost::shared_ptr< afw::geom::XYTransform const > _distortion