LSST Applications g070148d5b3+33e5256705,g0d53e28543+25c8b88941,g0da5cf3356+2dd1178308,g1081da9e2a+62d12e78cb,g17e5ecfddb+7e422d6136,g1c76d35bf8+ede3a706f7,g295839609d+225697d880,g2e2c1a68ba+cc1f6f037e,g2ffcdf413f+853cd4dcde,g38293774b4+62d12e78cb,g3b44f30a73+d953f1ac34,g48ccf36440+885b902d19,g4b2f1765b6+7dedbde6d2,g5320a0a9f6+0c5d6105b6,g56b687f8c9+ede3a706f7,g5c4744a4d9+ef6ac23297,g5ffd174ac0+0c5d6105b6,g6075d09f38+66af417445,g667d525e37+2ced63db88,g670421136f+2ced63db88,g71f27ac40c+2ced63db88,g774830318a+463cbe8d1f,g7876bc68e5+1d137996f1,g7985c39107+62d12e78cb,g7fdac2220c+0fd8241c05,g96f01af41f+368e6903a7,g9ca82378b8+2ced63db88,g9d27549199+ef6ac23297,gabe93b2c52+e3573e3735,gb065e2a02a+3dfbe639da,gbc3249ced9+0c5d6105b6,gbec6a3398f+0c5d6105b6,gc9534b9d65+35b9f25267,gd01420fc67+0c5d6105b6,geee7ff78d7+a14128c129,gf63283c776+ede3a706f7,gfed783d017+0c5d6105b6,w.2022.47
LSST Data Management Base Package
Loading...
Searching...
No Matches
KernelPca.h
Go to the documentation of this file.
1// -*- lsst-c++ -*-
12#ifndef LSST_IP_DIFFIM_KERNELPCA_H
13#define LSST_IP_DIFFIM_KERNELPCA_H
14
15#include "lsst/afw/image.h"
16#include "lsst/afw/math.h"
17
18namespace lsst {
19namespace ip {
20namespace diffim {
21namespace detail {
22
23 template <typename ImageT>
24 class KernelPca : public lsst::afw::image::ImagePca<ImageT> {
26 public:
31
33 explicit KernelPca(bool constantWeight=true) : Super(constantWeight) {}
34
36 virtual void analyze();
37 };
38
39 template<typename PixelT>
41 public:
44
46 virtual ~KernelPcaVisitor() {};
47
50 void subtractMean();
52 private:
55 };
56
57 template<typename PixelT>
61 };
62
63}}}} // end of namespace lsst::ip::diffim::detail
64
65#endif
A class to represent a 2-dimensional array of pixels.
Definition: Image.h:51
void addImage(std::shared_ptr< ImageT > img, double flux=0.0)
Add an image to the set to be analyzed.
Definition: ImagePca.cc:64
ImageList const & getEigenImages() const
Return Eigen images.
Definition: ImagePca.h:100
std::vector< double > const & getEigenValues() const
Return Eigen values.
Definition: ImagePca.h:98
Base class for candidate objects in a SpatialCell.
Definition: SpatialCell.h:70
Overrides the analyze method of base class afwImage::ImagePca.
Definition: KernelPca.h:24
KernelPca(bool constantWeight=true)
Ctor.
Definition: KernelPca.h:33
virtual void analyze()
Generate eigenimages that are normalised.
Definition: KernelPca.cc:163
std::shared_ptr< KernelPca< ImageT > > Ptr
Definition: KernelPca.h:27
A class to run a PCA on all candidate kernels (represented as Images).
Definition: KernelPca.h:40
std::shared_ptr< KernelPcaVisitor< PixelT > > Ptr
Definition: KernelPca.h:43
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
Definition: KernelPca.cc:89
std::shared_ptr< ImageT > returnMean()
Definition: KernelPca.h:51
lsst::afw::math::KernelList getEigenKernels()
Definition: KernelPca.cc:65
lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > ImageT
Definition: KernelPca.h:42
std::shared_ptr< KernelPcaVisitor< PixelT > > makeKernelPcaVisitor(std::shared_ptr< KernelPca< typename KernelPcaVisitor< PixelT >::ImageT > > imagePca)
Definition: KernelPca.h:59