LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Classes | Namespaces | Functions
SpatialModelPsf.cc File Reference

Implementation of code to determine spatial model of PSF. More...

#include <numeric>
#include "Eigen/Core"
#include "Eigen/Cholesky"
#include "Eigen/SVD"
#include "lsst/afw/detection/Footprint.h"
#include "lsst/afw/math/SpatialCell.h"
#include "lsst/afw/math/FunctionLibrary.h"
#include "lsst/afw/geom/Point.h"
#include "lsst/afw/geom/Box.h"
#include "lsst/meas/algorithms/ImagePca.h"
#include "lsst/meas/algorithms/SpatialModelPsf.h"
#include "lsst/meas/algorithms/PsfCandidate.h"

Go to the source code of this file.

Classes

class  lsst::meas::algorithms::evalChi2Visitor< PixelT >
 A class to pass around to all our PsfCandidates to evaluate the PSF fit's X^2. More...
 
class  lsst::meas::algorithms::MinimizeChi2< PixelT >
 

Namespaces

 lsst
 Estimate image backgrounds.
 
 lsst::meas
 
 lsst::meas::algorithms
 

Functions

template<typename PixelT >
std::pair
< afwMath::LinearCombinationKernel::Ptr,
std::vector< double > > 
lsst::meas::algorithms::createKernelFromPsfCandidates (afwMath::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, bool const constantWeight, int const border)
 
template<typename PixelT >
int lsst::meas::algorithms::countPsfCandidates (lsst::afw::math::SpatialCellSet const &psfCells, int const nStarPerCell=-1)
 
void lsst::meas::algorithms::setSpatialParameters (afwMath::Kernel *kernel, std::vector< double > const &coeffs)
 
void lsst::meas::algorithms::setSpatialParameters (afwMath::Kernel *kernel, Eigen::VectorXd const &vec)
 
template<typename PixelT >
std::pair< bool, double > lsst::meas::algorithms::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)
 
template<typename PixelT >
std::pair< bool, double > lsst::meas::algorithms::fitSpatialKernelFromPsfCandidates (lsst::afw::math::Kernel *kernel, lsst::afw::math::SpatialCellSet const &psfCells, bool const doNonLinearFit, int const nStarPerCell=-1, double const tolerance=1e-5, double const lambda=0.0)
 
template<typename MaskedImageT >
double lsst::meas::algorithms::subtractPsf (afwDetection::Psf const &psf, MaskedImageT *data, double x, double y, double psfFlux)
 
template<typename Image >
std::pair< std::vector< double >
, afwMath::KernelList
lsst::meas::algorithms::fitKernelParamsToImage (afwMath::LinearCombinationKernel const &kernel, Image const &image, afwGeom::Point2D const &pos)
 
template<typename Image >
std::pair
< afwMath::Kernel::Ptr,
std::pair< double, double > > 
lsst::meas::algorithms::fitKernelToImage (afwMath::LinearCombinationKernel const &kernel, Image const &image, afwGeom::Point2D const &pos)
 

Detailed Description

Implementation of code to determine spatial model of PSF.

Definition in file SpatialModelPsf.cc.

Variable Documentation

Eigen::MatrixXd _A

Definition at line 880 of file SpatialModelPsf.cc.

Eigen::VectorXd _b

Definition at line 881 of file SpatialModelPsf.cc.

Eigen::MatrixXd _basisDotBasis

Definition at line 882 of file SpatialModelPsf.cc.

std::vector<typename KImage::Ptr> _basisImgs

Definition at line 879 of file SpatialModelPsf.cc.

PsfImagePca<MaskedImageT>* _imagePca

Definition at line 127 of file SpatialModelPsf.cc.

Definition at line 875 of file SpatialModelPsf.cc.

int _n
mutable

Definition at line 164 of file SpatialModelPsf.cc.

int const _nComponents

Definition at line 878 of file SpatialModelPsf.cc.

int const _nSpatialParams

Definition at line 877 of file SpatialModelPsf.cc.

double _tau2

Definition at line 876 of file SpatialModelPsf.cc.