|
LSST Applications g00274db5b6+edbf708997,g00d0e8bbd7+edbf708997,g199a45376c+5137f08352,g1fd858c14a+1d4b6db739,g262e1987ae+f4d9505c4f,g29ae962dfc+7156fb1a53,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3e17d7035e+5b3adc59f5,g3fd5ace14f+852fa6fbcb,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+9f17e571f4,g67b6fd64d1+6dc8069a4c,g74acd417e5+ae494d68d9,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+536efcc10a,g7cc15d900a+d121454f8d,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d7436a09f+28c28d8d6d,g8ea07a8fe4+db21c37724,g92c671f44c+9f17e571f4,g98df359435+b2e6376b13,g99af87f6a8+b0f4ad7b8d,gac66b60396+966efe6077,gb88ae4c679+7dec8f19df,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gc24b5d6ed1+9f17e571f4,gca7fc764a6+6dc8069a4c,gcc769fe2a4+97d0256649,gd7ef33dd92+6dc8069a4c,gdab6d2f7ff+ae494d68d9,gdbb4c4dda9+9f17e571f4,ge410e46f29+6dc8069a4c,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
#include <ImagePca.h>
Public Types | |
| using | ImageList = std::vector<std::shared_ptr<ImageT>> |
Public Member Functions | |
| ImagePca (bool constantWeight=true) | |
| ctor | |
| virtual | ~ImagePca ()=default |
| ImagePca (ImagePca const &) | |
| ImagePca (ImagePca &&) | |
| ImagePca & | operator= (ImagePca const &) |
| ImagePca & | operator= (ImagePca &&) |
| void | addImage (std::shared_ptr< ImageT > img, double flux=0.0) |
| Add an image to the set to be analyzed. | |
| ImageList | getImageList () const |
| Return the list of images being analyzed. | |
| lsst::geom::Extent2I const | getDimensions () const |
| Return the dimension of the images being analyzed. | |
| std::shared_ptr< ImageT > | getMean () const |
| Return the mean of the images in ImagePca's list. | |
| virtual void | analyze () |
| virtual double | updateBadPixels (unsigned long mask, int const ncomp) |
| Update the bad pixels (i.e. | |
| std::vector< double > const & | getEigenValues () const |
| Return Eigen values. | |
| ImageList const & | getEigenImages () const |
| Return Eigen images. | |
Definition at line 45 of file ImagePca.h.
| using lsst::afw::image::ImagePca< ImageT >::ImageList = std::vector<std::shared_ptr<ImageT>> |
Definition at line 47 of file ImagePca.h.
|
explicit |
ctor
| constantWeight | Should all stars be weighted equally? |
Definition at line 46 of file ImagePca.cc.
|
virtualdefault |
|
default |
|
default |
| void lsst::afw::image::ImagePca< ImageT >::addImage | ( | std::shared_ptr< ImageT > | img, |
| double | flux = 0.0 ) |
Add an image to the set to be analyzed.
| lsst::pex::exceptions::LengthError | if all the images aren't the same size |
Definition at line 64 of file ImagePca.cc.
|
virtual |
Reimplemented in lsst::ip::diffim::detail::KernelPca< ImageT >, lsst::ip::diffim::detail::KernelPca< lsst::afw::image::Image< lsst::afw::math::Kernel::Pixel > >, and lsst::meas::algorithms::PsfImagePca< ImageT >.
Definition at line 122 of file ImagePca.cc.
|
inline |
Return the dimension of the images being analyzed.
Definition at line 75 of file ImagePca.h.
|
inline |
|
inline |
| ImagePca< ImageT >::ImageList lsst::afw::image::ImagePca< ImageT >::getImageList | ( | ) | const |
Return the list of images being analyzed.
Definition at line 85 of file ImagePca.cc.
| std::shared_ptr< ImageT > lsst::afw::image::ImagePca< ImageT >::getMean | ( | ) | const |
Return the mean of the images in ImagePca's list.
Definition at line 90 of file ImagePca.cc.
|
default |
|
default |
|
virtual |
Update the bad pixels (i.e.
those for which (value & mask) != 0) based on the current PCA decomposition; if none is available, use the mean of the good pixels
| mask | Mask defining bad pixels |
| ncomp | Number of components to use in estimate |
N.b. the work is actually done in do_updateBadPixels as the code only makes sense and compiles when we are doing a PCA on a set of MaskedImages
Definition at line 385 of file ImagePca.cc.