LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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.