LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
2 #if !defined(LSST_MEAS_ALGORITHMS_SPATIALMODELPSF_H)
3 #define LSST_MEAS_ALGORITHMS_SPATIALMODELPSF_H
46 namespace algorithms {
48 template <
typename PixelT>
51 geom::Point2I const& xy0,
int const nEigenComponents,
int const spatialOrder,
52 int const ksize,
int const nStarPerCell = -1,
bool const constantWeight =
true,
53 int const border = 3);
55 template <
typename PixelT>
56 int countPsfCandidates(afw::math::SpatialCellSet
const& psfCells,
int const nStarPerCell = -1);
58 template <
typename PixelT>
60 afw::math::SpatialCellSet
const& psfCells,
61 int const nStarPerCell = -1,
62 double const tolerance = 1e-5,
63 double const lambda = 0.0);
64 template <
typename PixelT>
66 afw::math::Kernel* kernel, afw::math::SpatialCellSet
const& psfCells,
bool const doNonLinearFit,
67 int const nStarPerCell = -1,
double const tolerance = 1e-5,
double const lambda = 0.0);
69 template <
typename ImageT>
73 template <
typename Image>
77 template <
typename Image>
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
std::pair< std::shared_ptr< afw::math::LinearCombinationKernel >, std::vector< double > > createKernelFromPsfCandidates(afw::math::SpatialCellSet const &psfCells, geom::Extent2I const &dims, 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)
Return a Kernel pointer and a list of eigenvalues resulting from analysing the provided SpatialCellSe...
int countPsfCandidates(afw::math::SpatialCellSet const &psfCells, int const nStarPerCell=-1)
Count the number of candidates in use.
double subtractPsf(afw::detection::Psf const &psf, ImageT *data, double x, double y, double psfFlux=std::numeric_limits< double >::quiet_NaN())
std::pair< std::vector< double >, afw::math::KernelList > fitKernelParamsToImage(afw::math::LinearCombinationKernel const &kernel, Image const &image, geom::Point2D const &pos)
Fit a LinearCombinationKernel to an Image, allowing the coefficients of the components to vary.
A kernel that is a linear combination of fixed basis kernels.
A base class for image defects.
std::pair< bool, double > fitSpatialKernelFromPsfCandidates(afw::math::Kernel *kernel, afw::math::SpatialCellSet const &psfCells, int const nStarPerCell=-1, double const tolerance=1e-5, double const lambda=0.0)
Fit spatial kernel using full-nonlinear optimization to estimate candidate amplitudes.
A polymorphic base class for representing an image's Point Spread Function.
std::pair< std::shared_ptr< afw::math::Kernel >, std::pair< double, double > > fitKernelToImage(afw::math::LinearCombinationKernel const &kernel, Image const &image, geom::Point2D const &pos)
Fit a LinearCombinationKernel to an Image, allowing the coefficients of the components to vary.