LSST Applications
21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
LSST Data Management Base Package
|
Class stored in SpatialCells for spatial Kernel fitting. More...
#include <KernelCandidate.h>
Public Types | |
enum | CandidateSwitch { ORIG = 0 , PCA = 1 , RECENT = 2 } |
typedef afw::image::Image< afw::math::Kernel::Pixel > | ImageT |
typedef _PixelT | PixelT |
typedef std::shared_ptr< KernelCandidate > | Ptr |
typedef std::shared_ptr< afw::image::MaskedImage< PixelT > > | MaskedImagePtr |
typedef std::shared_ptr< afw::image::Image< afw::image::VariancePixel > > | VariancePtr |
typedef std::shared_ptr< afw::table::SourceRecord > | SourcePtr |
enum | Status { BAD = 0 , GOOD = 1 , UNKNOWN = 2 } |
Public Member Functions | |
KernelCandidate (float const xCenter, float const yCenter, MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage, daf::base::PropertySet const &ps) | |
Constructor. More... | |
KernelCandidate (SourcePtr const &source, MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage, daf::base::PropertySet const &ps) | |
Constructor. More... | |
virtual | ~KernelCandidate () |
Destructor. More... | |
double | getCandidateRating () const |
Return Candidate rating. More... | |
SourcePtr | getSource () const |
Return the original source. More... | |
MaskedImagePtr | getTemplateMaskedImage () |
Return pointers to the image pixels used in kernel determination. More... | |
MaskedImagePtr | getScienceMaskedImage () |
std::shared_ptr< afw::math::Kernel > | getKernel (CandidateSwitch cand) const |
Return results of kernel solution. More... | |
double | getBackground (CandidateSwitch cand) const |
double | getKsum (CandidateSwitch cand) const |
std::shared_ptr< ImageT > | getKernelImage (CandidateSwitch cand) const |
std::shared_ptr< ImageT const > | getImage () const |
std::shared_ptr< StaticKernelSolution< PixelT > > | getKernelSolution (CandidateSwitch cand) const |
afw::image::MaskedImage< PixelT > | getDifferenceImage (CandidateSwitch cand) |
Calculate associated difference image using internal solutions. More... | |
afw::image::MaskedImage< PixelT > | getDifferenceImage (std::shared_ptr< afw::math::Kernel > kernel, double background) |
Calculate associated difference image using input kernel and background. More... | |
bool | isInitialized () const |
void | build (afw::math::KernelList const &basisList) |
Core functionality of KernelCandidate, to build and fill a KernelSolution. More... | |
void | build (afw::math::KernelList const &basisList, Eigen::MatrixXd const &hMat) |
double | getChi2 () const |
Return the candidate's chi^2. More... | |
void | setChi2 (double chi2) |
Set the candidate's chi^2. More... | |
float | getXCenter () const |
Return the object's column-centre. More... | |
float | getYCenter () const |
Return the object's row-centre. More... | |
virtual bool | instantiate () |
Do anything needed to make this candidate usable. More... | |
virtual void | setCandidateRating (double) |
Set the candidate's rating. More... | |
int | getId () const |
Return the candidate's unique ID. More... | |
Status | getStatus () const |
Return the candidate's status. More... | |
void | setStatus (Status status) |
Set the candidate's status. More... | |
virtual bool | isBad () const |
Is this candidate unacceptable? More... | |
Static Public Member Functions | |
static void | setWidth (int width) |
Set the width of the image that getImage should return. More... | |
static int | getWidth () |
Return the width of the image that getImage should return. More... | |
static void | setHeight (int height) |
Set the height of the image that getImage should return. More... | |
static int | getHeight () |
Return the height of the image that getImage should return. More... | |
Class stored in SpatialCells for spatial Kernel fitting.
Definition at line 39 of file KernelCandidate.h.
typedef afw::image::Image<afw::math::Kernel::Pixel> lsst::ip::diffim::KernelCandidate< _PixelT >::ImageT |
Definition at line 41 of file KernelCandidate.h.
typedef std::shared_ptr<afw::image::MaskedImage<PixelT> > lsst::ip::diffim::KernelCandidate< _PixelT >::MaskedImagePtr |
Definition at line 45 of file KernelCandidate.h.
typedef _PixelT lsst::ip::diffim::KernelCandidate< _PixelT >::PixelT |
Definition at line 42 of file KernelCandidate.h.
typedef std::shared_ptr<KernelCandidate> lsst::ip::diffim::KernelCandidate< _PixelT >::Ptr |
Definition at line 44 of file KernelCandidate.h.
typedef std::shared_ptr<afw::table::SourceRecord> lsst::ip::diffim::KernelCandidate< _PixelT >::SourcePtr |
Definition at line 47 of file KernelCandidate.h.
typedef std::shared_ptr<afw::image::Image<afw::image::VariancePixel> > lsst::ip::diffim::KernelCandidate< _PixelT >::VariancePtr |
Definition at line 46 of file KernelCandidate.h.
enum lsst::ip::diffim::KernelCandidate::CandidateSwitch |
|
inherited |
lsst::ip::diffim::KernelCandidate< PixelT >::KernelCandidate | ( | float const | xCenter, |
float const | yCenter, | ||
MaskedImagePtr const & | templateMaskedImage, | ||
MaskedImagePtr const & | scienceMaskedImage, | ||
daf::base::PropertySet const & | ps | ||
) |
Constructor.
xCenter | Col position of object |
yCenter | Row position of object |
templateMaskedImage | Pointer to template image |
scienceMaskedImage | Pointer to science image |
ps | PropertySet |
Definition at line 33 of file KernelCandidate.cc.
lsst::ip::diffim::KernelCandidate< PixelT >::KernelCandidate | ( | SourcePtr const & | source, |
MaskedImagePtr const & | templateMaskedImage, | ||
MaskedImagePtr const & | scienceMaskedImage, | ||
daf::base::PropertySet const & | ps | ||
) |
Constructor.
source | Pointer to a source to use in constructing the candidate |
templateMaskedImage | Pointer to template image |
scienceMaskedImage | Pointer to science image |
ps | PropertySet |
Definition at line 67 of file KernelCandidate.cc.
|
inlinevirtual |
void lsst::ip::diffim::KernelCandidate< PixelT >::build | ( | afw::math::KernelList const & | basisList | ) |
Core functionality of KernelCandidate, to build and fill a KernelSolution.
o _isInitialized = false. This is a constructed but not initialized KernelCandidate. When build() is called, M and B are derived from the MaskedImages and the basisList. KernelCandidate owns the knowledge of how to fill this KernelSolution; the solution knows how to solve itself and how to turn that into an output kernel. This solution ends up being _kernelSolution0.
o _isInitialized = true. This is for when build() is re-called using a different basis list, e.g. one based on Pca. We need to use M and B for the spatial modeling, but do not want to override the original KernelSolution. This solution ends up as _kernelSolutionCurrent.
Build KernelSolution matrices for M x = B with regularization matrix H
Definition at line 87 of file KernelCandidate.cc.
void lsst::ip::diffim::KernelCandidate< PixelT >::build | ( | afw::math::KernelList const & | basisList, |
Eigen::MatrixXd const & | hMat | ||
) |
Definition at line 92 of file KernelCandidate.cc.
double lsst::ip::diffim::KernelCandidate< PixelT >::getBackground | ( | CandidateSwitch | cand | ) | const |
Definition at line 244 of file KernelCandidate.cc.
|
inlinevirtual |
Return Candidate rating.
Implements lsst::afw::math::SpatialCellCandidate.
Definition at line 91 of file KernelCandidate.h.
|
inlineinherited |
lsst::afw::image::MaskedImage< PixelT > lsst::ip::diffim::KernelCandidate< PixelT >::getDifferenceImage | ( | CandidateSwitch | cand | ) |
Calculate associated difference image using internal solutions.
Definition at line 347 of file KernelCandidate.cc.
lsst::afw::image::MaskedImage< PixelT > lsst::ip::diffim::KernelCandidate< PixelT >::getDifferenceImage | ( | std::shared_ptr< afw::math::Kernel > | kernel, |
double | background | ||
) |
Calculate associated difference image using input kernel and background.
Definition at line 371 of file KernelCandidate.cc.
|
inlinestaticinherited |
Return the height of the image that getImage should return.
Definition at line 143 of file SpatialCell.h.
|
inlineinherited |
std::shared_ptr< typename KernelCandidate< PixelT >::ImageT const > lsst::ip::diffim::KernelCandidate< PixelT >::getImage |
Definition at line 317 of file KernelCandidate.cc.
std::shared_ptr< lsst::afw::math::Kernel > lsst::ip::diffim::KernelCandidate< PixelT >::getKernel | ( | CandidateSwitch | cand | ) | const |
std::shared_ptr< typename KernelCandidate< PixelT >::ImageT > lsst::ip::diffim::KernelCandidate< PixelT >::getKernelImage | ( | CandidateSwitch | cand | ) | const |
Definition at line 292 of file KernelCandidate.cc.
std::shared_ptr< StaticKernelSolution< PixelT > > lsst::ip::diffim::KernelCandidate< PixelT >::getKernelSolution | ( | CandidateSwitch | cand | ) | const |
Definition at line 322 of file KernelCandidate.cc.
double lsst::ip::diffim::KernelCandidate< PixelT >::getKsum | ( | CandidateSwitch | cand | ) | const |
Definition at line 268 of file KernelCandidate.cc.
|
inline |
Definition at line 100 of file KernelCandidate.h.
|
inline |
|
inlineinherited |
Return the candidate's status.
Definition at line 104 of file SpatialCell.h.
|
inline |
Return pointers to the image pixels used in kernel determination.
Definition at line 99 of file KernelCandidate.h.
|
inlinestaticinherited |
Return the width of the image that getImage should return.
Definition at line 138 of file SpatialCell.h.
|
inlineinherited |
Return the object's column-centre.
Definition at line 88 of file SpatialCell.h.
|
inlineinherited |
Return the object's row-centre.
Definition at line 91 of file SpatialCell.h.
|
inlinevirtualinherited |
Do anything needed to make this candidate usable.
Definition at line 94 of file SpatialCell.h.
|
inlinevirtualinherited |
|
inline |
Definition at line 128 of file KernelCandidate.h.
|
inlinevirtualinherited |
|
inlineinherited |
|
inlinestaticinherited |
Set the height of the image that getImage should return.
Definition at line 141 of file SpatialCell.h.
|
inherited |
Set the candidate's status.
Definition at line 53 of file SpatialCell.cc.
|
inlinestaticinherited |
Set the width of the image that getImage should return.
Definition at line 136 of file SpatialCell.h.