LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
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 (afwMath::SpatialCellSet const &psfCells, int const nStarPerCell)
 
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 (afwMath::Kernel *kernel, afwMath::SpatialCellSet const &psfCells, int const nStarPerCell, double const tolerance, double const lambda)
 
template<typename PixelT >
std::pair< bool, double > lsst::meas::algorithms::fitSpatialKernelFromPsfCandidates (afwMath::Kernel *kernel, afwMath::SpatialCellSet const &psfCells, bool const doNonLinearFit, int const nStarPerCell, double const tolerance, double const lambda)
 
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.