2 #if !defined(LSST_MEAS_ALGORITHMS_SPATIALMODELPSF_H)
3 #define LSST_MEAS_ALGORITHMS_SPATIALMODELPSF_H
37 #include "boost/shared_ptr.hpp"
48 namespace algorithms {
50 template<
typename PixelT>
51 std::pair<lsst::afw::math::LinearCombinationKernel::Ptr, std::vector<double> >
55 int const nEigenComponents,
56 int const spatialOrder,
58 int const nStarPerCell=-1,
59 bool const constantWeight=
true,
63 template<
typename PixelT>
66 template<
typename PixelT>
67 std::pair<bool, double>
70 int const nStarPerCell = -1,
71 double const tolerance = 1e-5,
72 double const lambda = 0.0);
73 template<
typename PixelT>
74 std::pair<bool, double>
77 bool const doNonLinearFit,
78 int const nStarPerCell = -1,
79 double const tolerance = 1e-5,
80 double const lambda = 0.0);
82 template<
typename ImageT>
84 double psfFlux=std::numeric_limits<double>::quiet_NaN());
86 template<
typename Image>
91 template<
typename Image>
92 std::pair<lsst::afw::math::Kernel::Ptr, std::pair<double, double> >
Declare the Kernel class and subclasses.
int countPsfCandidates(lsst::afw::math::SpatialCellSet const &psfCells, int const nStarPerCell=-1)
double subtractPsf(lsst::afw::detection::Psf const &psf, ImageT *data, double x, double y, double psfFlux=std::numeric_limits< double >::quiet_NaN())
This include file includes the header files for all of lsst::afw.
std::pair< std::vector< double >, lsst::afw::math::KernelList > fitKernelParamsToImage(lsst::afw::math::LinearCombinationKernel const &kernel, Image const &image, lsst::afw::geom::Point2D const &pos)
table::Key< table::Array< Kernel::Pixel > > image
A collection of SpatialCells covering an entire image.
A kernel that is a linear combination of fixed basis kernels.
Class to ensure constraints for spatial modeling.
std::pair< lsst::afw::math::Kernel::Ptr, std::pair< double, double > > fitKernelToImage(lsst::afw::math::LinearCombinationKernel const &kernel, Image const &image, lsst::afw::geom::Point2D const &pos)
A polymorphic base class for representing an image's Point Spread Function.
std::pair< lsst::afw::math::LinearCombinationKernel::Ptr, std::vector< double > > createKernelFromPsfCandidates(lsst::afw::math::SpatialCellSet const &psfCells, lsst::afw::geom::Extent2I const &dims, lsst::afw::geom::Point2I const &xy0, int const nEigenComponents, int const spatialOrder, int const ksize, int const nStarPerCell=-1, bool const constantWeight=true, int const border=3)
A coordinate class intended to represent offsets and dimensions.
Kernels are used for convolution with MaskedImages and (eventually) Images.
std::pair< bool, double > fitSpatialKernelFromPsfCandidates(lsst::afw::math::Kernel *kernel, lsst::afw::math::SpatialCellSet const &psfCells, int const nStarPerCell=-1, double const tolerance=1e-5, double const lambda=0.0)
std::vector< boost::shared_ptr< Kernel > > KernelList