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]; }
106 ImageList _imageList;
110 bool _constantWeight;
113 ImageList _eigenImages;
126 template <
typename Image1T,
typename Image2T>
127 double innerProduct(Image1T
const& lhs, Image2T
const& rhs,
int const border = 0);
std::vector< double > const & getEigenValues() const
Return Eigen values.
ImageList getImageList() const
Return the list of images being 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.
std::vector< std::shared_ptr< ImageT > > ImageList
ImagePca & operator=(ImagePca const &)
A base class for image defects.
virtual ~ImagePca()=default
ImagePca(bool constantWeight=true)
ctor
lsst::geom::Extent2I const getDimensions() const
Return the dimension of the images being analyzed.
void addImage(std::shared_ptr< ImageT > img, double flux=0.0)
Add an image to the set to be analyzed.
ImageList const & getEigenImages() const
Return Eigen images.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
virtual double updateBadPixels(unsigned long mask, int const ncomp)
Update the bad pixels (i.e.