|
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
|
#include <ImagePca.h>
Public Types | |
| typedef boost::shared_ptr< ImageT > | Ptr |
| typedef boost::shared_ptr < const ImageT > | ConstPtr |
| typedef std::vector< typename ImageT::Ptr > | ImageList |
Public Member Functions | |
| ImagePca (bool constantWeight=true) | |
| ctor More... | |
| virtual | ~ImagePca () |
| void | addImage (typename ImageT::Ptr img, double flux=0.0) |
| ImageList | getImageList () const |
| Return the list of images being analyzed. More... | |
| geom::Extent2I const | getDimensions () const |
| Return the dimension of the images being analyzed. More... | |
| ImageT::Ptr | getMean () const |
| virtual void | analyze () |
| virtual double | updateBadPixels (unsigned long mask, int const ncomp) |
| std::vector< double > const & | getEigenValues () const |
| Return Eigen values. More... | |
| ImageList const & | getEigenImages () const |
| Return Eigen images. More... | |
Private Member Functions | |
| double | getFlux (int i) const |
Private Attributes | |
| ImageList | _imageList |
| std::vector< double > | _fluxList |
| geom::Extent2I | _dimensions |
| bool | _constantWeight |
| std::vector< double > | _eigenValues |
| ImageList | _eigenImages |
Definition at line 47 of file ImagePca.h.
| typedef boost::shared_ptr<const ImageT> lsst::afw::image::ImagePca< ImageT >::ConstPtr |
Definition at line 50 of file ImagePca.h.
| typedef std::vector<typename ImageT::Ptr> lsst::afw::image::ImagePca< ImageT >::ImageList |
Definition at line 52 of file ImagePca.h.
| typedef boost::shared_ptr<ImageT> lsst::afw::image::ImagePca< ImageT >::Ptr |
Definition at line 49 of file ImagePca.h.
|
explicit |
ctor
| constantWeight | Should all stars be weighted equally? |
Definition at line 49 of file ImagePca.cc.
|
inlinevirtual |
Definition at line 55 of file ImagePca.h.
| void lsst::afw::image::ImagePca< ImageT >::addImage | ( | typename ImageT::Ptr | 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 |
| img | Image to add to set |
| flux | Image's flux |
Definition at line 65 of file ImagePca.cc.
|
virtual |
Reimplemented in lsst::meas::algorithms::PsfImagePca< ImageT >, and lsst::ip::diffim::detail::KernelPca< ImageT >.
Definition at line 135 of file ImagePca.cc.
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Definition at line 73 of file ImagePca.h.
| ImagePca< ImageT >::ImageList lsst::afw::image::ImagePca< ImageT >::getImageList | ( | ) | const |
| ImageT::Ptr lsst::afw::image::ImagePca< ImageT >::getMean | ( | ) | const |
Return the mean of the images in ImagePca's list
Definition at line 101 of file ImagePca.cc.
|
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
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
| mask | Mask defining bad pixels |
| ncomp | Number of components to use in estimate |
Definition at line 417 of file ImagePca.cc.
|
private |
Definition at line 79 of file ImagePca.h.
|
private |
Definition at line 77 of file ImagePca.h.
|
private |
Definition at line 82 of file ImagePca.h.
|
private |
Definition at line 81 of file ImagePca.h.
|
private |
Definition at line 76 of file ImagePca.h.
|
private |
Definition at line 75 of file ImagePca.h.
1.8.5