|
lsst.ip.diffim
14.0-11-g7664582
|
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 |
Public Member Functions | |
| KernelCandidate (float const xCenter, float const yCenter, MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage, pex::policy::Policy const &policy) | |
| Constructor. More... | |
| KernelCandidate (SourcePtr const &source, MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage, pex::policy::Policy const &policy) | |
| 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 |
| boost::shared_ptr< ImageT > | getKernelImage (CandidateSwitch cand) const |
| boost::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 |
| void | setChi2 (double chi2) |
| float | getXCenter () const |
| float | getYCenter () const |
| virtual bool | instantiate () |
| virtual void | setCandidateRating (double) |
| int | getId () const |
| Status | getStatus () const |
| void | setStatus (Status status) |
| virtual bool | isBad () const |
Static Public Member Functions | |
| static void | setWidth (int width) |
| static int | getWidth () |
| static void | setHeight (int height) |
| static int | getHeight () |
Public Attributes | |
| BAD | |
| GOOD | |
| UNKNOWN | |
Class stored in SpatialCells for spatial Kernel fitting.
Definition at line 38 of file KernelCandidate.h.
| typedef afw::image::Image<afw::math::Kernel::Pixel> lsst::ip::diffim::KernelCandidate< _PixelT >::ImageT |
Definition at line 40 of file KernelCandidate.h.
| typedef std::shared_ptr<afw::image::MaskedImage<PixelT> > lsst::ip::diffim::KernelCandidate< _PixelT >::MaskedImagePtr |
Definition at line 44 of file KernelCandidate.h.
| typedef _PixelT lsst::ip::diffim::KernelCandidate< _PixelT >::PixelT |
Definition at line 41 of file KernelCandidate.h.
| typedef std::shared_ptr<KernelCandidate> lsst::ip::diffim::KernelCandidate< _PixelT >::Ptr |
Definition at line 43 of file KernelCandidate.h.
| typedef std::shared_ptr<afw::table::SourceRecord> lsst::ip::diffim::KernelCandidate< _PixelT >::SourcePtr |
Definition at line 46 of file KernelCandidate.h.
| typedef std::shared_ptr<afw::image::Image<afw::image::VariancePixel> > lsst::ip::diffim::KernelCandidate< _PixelT >::VariancePtr |
Definition at line 45 of file KernelCandidate.h.
| enum lsst::ip::diffim::KernelCandidate::CandidateSwitch |
| Enumerator | |
|---|---|
| ORIG | |
| PCA | |
| RECENT | |
Definition at line 48 of file KernelCandidate.h.
| lsst::ip::diffim::KernelCandidate< PixelT >::KernelCandidate | ( | float const | xCenter, |
| float const | yCenter, | ||
| MaskedImagePtr const & | templateMaskedImage, | ||
| MaskedImagePtr const & | scienceMaskedImage, | ||
| pex::policy::Policy const & | policy | ||
| ) |
Constructor.
| xCenter | Col position of object |
| yCenter | Row position of object |
| templateMaskedImage | Pointer to template image |
| scienceMaskedImage | Pointer to science image |
| policy | Policy file |
Definition at line 33 of file KernelCandidate.cc.
| lsst::ip::diffim::KernelCandidate< PixelT >::KernelCandidate | ( | SourcePtr const & | source, |
| MaskedImagePtr const & | templateMaskedImage, | ||
| MaskedImagePtr const & | scienceMaskedImage, | ||
| pex::policy::Policy const & | policy | ||
| ) |
Constructor.
| source | Pointer to a source to use in constructing the candidate |
| templateMaskedImage | Pointer to template image |
| scienceMaskedImage | Pointer to science image |
| policy | Policy file |
Definition at line 73 of file KernelCandidate.cc.
|
inlinevirtual |
Destructor.
Definition at line 83 of file KernelCandidate.h.
| 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 98 of file KernelCandidate.cc.
| void lsst::ip::diffim::KernelCandidate< PixelT >::build | ( | afw::math::KernelList const & | basisList, |
| Eigen::MatrixXd const & | hMat | ||
| ) |
Definition at line 105 of file KernelCandidate.cc.
| double lsst::ip::diffim::KernelCandidate< PixelT >::getBackground | ( | CandidateSwitch | cand | ) | const |
Definition at line 285 of file KernelCandidate.cc.
|
inlinevirtual |
Return Candidate rating.
Implements lsst::afw::math::SpatialCellImageCandidate.
Definition at line 90 of file KernelCandidate.h.
| lsst::afw::image::MaskedImage< PixelT > lsst::ip::diffim::KernelCandidate< PixelT >::getDifferenceImage | ( | CandidateSwitch | cand | ) |
Calculate associated difference image using internal solutions.
Definition at line 400 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 432 of file KernelCandidate.cc.
| std::shared_ptr< typename KernelCandidate< PixelT >::ImageT const > lsst::ip::diffim::KernelCandidate< PixelT >::getImage | ( | ) | const |
Definition at line 367 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 258 of file KernelCandidate.cc.
| std::shared_ptr< typename KernelCandidate< PixelT >::ImageT > lsst::ip::diffim::KernelCandidate< PixelT >::getKernelImage | ( | CandidateSwitch | cand | ) | const |
Definition at line 339 of file KernelCandidate.cc.
| std::shared_ptr< StaticKernelSolution< PixelT > > lsst::ip::diffim::KernelCandidate< PixelT >::getKernelSolution | ( | CandidateSwitch | cand | ) | const |
Definition at line 372 of file KernelCandidate.cc.
| double lsst::ip::diffim::KernelCandidate< PixelT >::getKsum | ( | CandidateSwitch | cand | ) | const |
Definition at line 312 of file KernelCandidate.cc.
|
inline |
Definition at line 99 of file KernelCandidate.h.
|
inline |
Return the original source.
Definition at line 94 of file KernelCandidate.h.
|
inline |
Return pointers to the image pixels used in kernel determination.
Definition at line 98 of file KernelCandidate.h.
|
inline |
Definition at line 127 of file KernelCandidate.h.
1.8.13