|
LSST Applications g00d0e8bbd7+edbf708997,g03191d30f7+9ce8016dbd,g1955dfad08+0bd186d245,g199a45376c+5137f08352,g1fd858c14a+a888a50aa2,g262e1987ae+45f9aba685,g29ae962dfc+1c7d47a24f,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+eed17d2c67,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+c4107e45b5,g67b6fd64d1+6dc8069a4c,g74acd417e5+f452e9c21a,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+2025e9ce17,g7cc15d900a+2d158402f9,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d4809ba88+c4107e45b5,g8d7436a09f+e96c132b44,g8ea07a8fe4+db21c37724,g98df359435+aae6d409c1,ga2180abaac+edbf708997,gac66b60396+966efe6077,gb632fb1845+88945a90f8,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gca7fc764a6+6dc8069a4c,gd7ef33dd92+6dc8069a4c,gda68eeecaf+7d1e613a8d,gdab6d2f7ff+f452e9c21a,gdbb4c4dda9+c4107e45b5,ge410e46f29+6dc8069a4c,ge41e95a9f2+c4107e45b5,geaed405ab2+e194be0d2b,w.2025.47
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. | |
| KernelCandidate (SourcePtr const &source, MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage, daf::base::PropertySet const &ps) | |
| Constructor. | |
| virtual | ~KernelCandidate () |
| Destructor. | |
| double | getCandidateRating () const |
| Return Candidate rating. | |
| SourcePtr | getSource () const |
| Return the original source. | |
| MaskedImagePtr | getTemplateMaskedImage () |
| Return pointers to the image pixels used in kernel determination. | |
| MaskedImagePtr | getScienceMaskedImage () |
| std::shared_ptr< afw::math::Kernel > | getKernel (CandidateSwitch cand) const |
| Return results of kernel solution. | |
| 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. | |
| afw::image::MaskedImage< PixelT > | getDifferenceImage (std::shared_ptr< afw::math::Kernel > kernel, double background) |
| Calculate associated difference image using input kernel and background. | |
| bool | isInitialized () const |
| void | build (afw::math::KernelList const &basisList) |
| Core functionality of KernelCandidate, to build and fill a KernelSolution. | |
| void | build (afw::math::KernelList const &basisList, Eigen::MatrixXd const &hMat) |
| double | getChi2 () const |
| Return the candidate's chi^2. | |
| void | setChi2 (double chi2) |
| Set the candidate's chi^2. | |
| float | getXCenter () const |
| Return the object's column-centre. | |
| float | getYCenter () const |
| Return the object's row-centre. | |
| virtual bool | instantiate () |
| Do anything needed to make this candidate usable. | |
| virtual void | setCandidateRating (double) |
| Set the candidate's rating. | |
| int | getId () const |
| Return the candidate's unique ID. | |
| Status | getStatus () const |
| Return the candidate's status. | |
| void | setStatus (Status status) |
| Set the candidate's status. | |
| virtual bool | isBad () const |
| Is this candidate unacceptable? | |
Static Public Member Functions | |
| static void | setWidth (int width) |
| Set the width of the image that getImage should return. | |
| static int | getWidth () |
| Return the width of the image that getImage should return. | |
| static void | setHeight (int height) |
| Set the height of the image that getImage should return. | |
| static int | getHeight () |
| Return the height of the image that getImage should return. | |
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 |
| Enumerator | |
|---|---|
| ORIG | |
| PCA | |
| RECENT | |
Definition at line 49 of file KernelCandidate.h.
|
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 32 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 66 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 86 of file KernelCandidate.cc.
| void lsst::ip::diffim::KernelCandidate< PixelT >::build | ( | afw::math::KernelList const & | basisList, |
| Eigen::MatrixXd const & | hMat ) |
Definition at line 91 of file KernelCandidate.cc.
| double lsst::ip::diffim::KernelCandidate< PixelT >::getBackground | ( | CandidateSwitch | cand | ) | const |
Definition at line 247 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 366 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 398 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 | ( | ) | const |
Definition at line 332 of file KernelCandidate.cc.
| std::shared_ptr< lsst::afw::math::Kernel > lsst::ip::diffim::KernelCandidate< PixelT >::getKernel | ( | CandidateSwitch | cand | ) | const |
Return results of kernel solution.
Definition at line 219 of file KernelCandidate.cc.
| std::shared_ptr< typename KernelCandidate< PixelT >::ImageT > lsst::ip::diffim::KernelCandidate< PixelT >::getKernelImage | ( | CandidateSwitch | cand | ) | const |
Definition at line 303 of file KernelCandidate.cc.
| std::shared_ptr< StaticKernelSolution< PixelT > > lsst::ip::diffim::KernelCandidate< PixelT >::getKernelSolution | ( | CandidateSwitch | cand | ) | const |
Definition at line 337 of file KernelCandidate.cc.
| double lsst::ip::diffim::KernelCandidate< PixelT >::getKsum | ( | CandidateSwitch | cand | ) | const |
Definition at line 275 of file KernelCandidate.cc.
|
inline |
Definition at line 100 of file KernelCandidate.h.
|
inline |
|
inlineinherited |
|
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 |
|
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 52 of file SpatialCell.cc.
|
inlinestaticinherited |
Set the width of the image that getImage should return.
Definition at line 136 of file SpatialCell.h.