lsst.afw
21.0.0-11-ga6ea59e8e+47cba9fc36
|
Go to the documentation of this file.
28 #ifndef LSST_AFW_IMAGE_IMAGEPCA_H
29 #define LSST_AFW_IMAGE_IMAGEPCA_H
35 #include "boost/mpl/bool.hpp"
45 template <
typename ImageT>
55 explicit ImagePca(
bool constantWeight =
true);
104 double getFlux(
int i)
const {
return _fluxList[i]; }
110 bool _constantWeight;
126 template <
typename Image1T,
typename Image2T>
127 double innerProduct(Image1T
const& lhs, Image2T
const& rhs,
int const border = 0);
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
std::vector< double > const & getEigenValues() const
Return Eigen values.
void addImage(std::shared_ptr< ImageT > img, double flux=0.0)
Add an image to the set to be analyzed.
std::shared_ptr< ImageT > getMean() const
Return the mean of the images in ImagePca's list.
double innerProduct(Image1T const &lhs, Image2T const &rhs, int const border=0)
Calculate the inner product of two images.
ImageList getImageList() const
Return the list of images being analyzed.
lsst::geom::Extent2I const getDimensions() const
Return the dimension of the images being analyzed.
virtual ~ImagePca()=default
A base class for image defects.
ImagePca & operator=(ImagePca &&)
ImagePca(bool constantWeight=true)
ctor
ImagePca(ImagePca const &)
ImagePca & operator=(ImagePca const &)
ImageList const & getEigenImages() const
Return Eigen images.
std::vector< std::shared_ptr< ImageT > > ImageList
virtual double updateBadPixels(unsigned long mask, int const ncomp)
Update the bad pixels (i.e.