LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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
 < multiple inclusion guard macro
 
 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
Examples:
testSpatialCell.h.

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.