|
LSSTApplications
1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
|
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 boost::shared_ptr < KernelCandidate > | Ptr |
| typedef boost::shared_ptr < afw::image::MaskedImage < PixelT > > | MaskedImagePtr |
| typedef boost::shared_ptr < afw::image::Image < afw::image::VariancePixel > > | VariancePtr |
| typedef boost::shared_ptr < afw::table::SourceRecord > | SourcePtr |
Public Types inherited from lsst.afw.math::SpatialCellImageCandidate< afw::math::Kernel::Pixel > | |
| typedef boost::shared_ptr < SpatialCellImageCandidate > | Ptr |
| typedef boost::shared_ptr < const SpatialCellImageCandidate > | ConstPtr |
Public Types inherited from lsst.afw.math::SpatialCellCandidate | |
| enum | Status { BAD = 0, GOOD = 1, UNKNOWN = 2 } |
| typedef boost::shared_ptr < SpatialCellCandidate > | Ptr |
| typedef boost::shared_ptr < const SpatialCellCandidate > | ConstPtr |
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 () |
| afw::math::Kernel::Ptr | 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 |
| Return the Candidate's Image. More... | |
| boost::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 (afw::math::Kernel::Ptr 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, boost::shared_ptr< Eigen::MatrixXd > hMat) |
Public Member Functions inherited from lsst.afw.math::SpatialCellImageCandidate< afw::math::Kernel::Pixel > | |
| SpatialCellImageCandidate (float const xCenter, float const yCenter) | |
| ctor More... | |
| virtual | ~SpatialCellImageCandidate () |
| double | getChi2 () const |
| Return the candidate's chi^2. More... | |
| void | setChi2 (double chi2) |
| Set the candidate's chi^2. More... | |
Public Member Functions inherited from lsst.afw.math::SpatialCellCandidate | |
| SpatialCellCandidate (float const xCenter, float const yCenter) | |
| virtual | ~SpatialCellCandidate () |
| 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... | |
Private Member Functions | |
| void | _buildKernelSolution (afw::math::KernelList const &basisList, boost::shared_ptr< Eigen::MatrixXd > hMat) |
Private Attributes | |
| MaskedImagePtr | _templateMaskedImage |
| Subimage around which you build kernel. More... | |
| MaskedImagePtr | _scienceMaskedImage |
| Subimage around which you build kernel. More... | |
| VariancePtr | _varianceEstimate |
| Estimate of the local variance. More... | |
| pex::policy::Policy | _policy |
| Policy. More... | |
| SourcePtr | _source |
| double | _coreFlux |
| Mean S/N in the science image. More... | |
| bool | _isInitialized |
| Has the kernel been built. More... | |
| bool | _useRegularization |
| Use regularization? More... | |
| bool | _fitForBackground |
| boost::shared_ptr < StaticKernelSolution< PixelT > > | _kernelSolutionOrig |
| Original basis solution. More... | |
| boost::shared_ptr < StaticKernelSolution< PixelT > > | _kernelSolutionPca |
| Most recent solution. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from lsst.afw.math::SpatialCellImageCandidate< afw::math::Kernel::Pixel > | |
| 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... | |
Protected Attributes inherited from lsst.afw.math::SpatialCellImageCandidate< afw::math::Kernel::Pixel > | |
| boost::shared_ptr < lsst::afw::image::Image < afw::math::Kernel::Pixel > > | _image |
| a pointer to the Image, for the use of the base class More... | |
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 41 of file KernelCandidate.h.
| typedef boost::shared_ptr<afw::image::MaskedImage<PixelT> > lsst::ip::diffim::KernelCandidate< _PixelT >::MaskedImagePtr |
Definition at line 49 of file KernelCandidate.h.
| typedef _PixelT lsst::ip::diffim::KernelCandidate< _PixelT >::PixelT |
Definition at line 42 of file KernelCandidate.h.
| typedef boost::shared_ptr<KernelCandidate> lsst::ip::diffim::KernelCandidate< _PixelT >::Ptr |
Definition at line 48 of file KernelCandidate.h.
| typedef boost::shared_ptr<afw::table::SourceRecord> lsst::ip::diffim::KernelCandidate< _PixelT >::SourcePtr |
Definition at line 51 of file KernelCandidate.h.
| typedef boost::shared_ptr<afw::image::Image<afw::image::VariancePixel> > lsst::ip::diffim::KernelCandidate< _PixelT >::VariancePtr |
Definition at line 50 of file KernelCandidate.h.
| enum lsst::ip::diffim::KernelCandidate::CandidateSwitch |
| 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 35 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 75 of file KernelCandidate.cc.
|
inlinevirtual |
|
private |
Definition at line 156 of file KernelCandidate.cc.
| 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 100 of file KernelCandidate.cc.
| void lsst::ip::diffim::KernelCandidate< PixelT >::build | ( | afw::math::KernelList const & | basisList, |
| boost::shared_ptr< Eigen::MatrixXd > | hMat | ||
| ) |
Definition at line 107 of file KernelCandidate.cc.
| double lsst::ip::diffim::KernelCandidate< PixelT >::getBackground | ( | CandidateSwitch | cand | ) | const |
Definition at line 287 of file KernelCandidate.cc.
|
inlinevirtual |
Return Candidate rating.
Implements lsst.afw.math::SpatialCellCandidate.
Definition at line 95 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 402 of file KernelCandidate.cc.
| lsst::afw::image::MaskedImage< PixelT > lsst::ip::diffim::KernelCandidate< PixelT >::getDifferenceImage | ( | afw::math::Kernel::Ptr | kernel, |
| double | background | ||
| ) |
Calculate associated difference image using input kernel and background.
Definition at line 434 of file KernelCandidate.cc.
|
virtual |
Return the Candidate's Image.
Implements lsst.afw.math::SpatialCellImageCandidate< afw::math::Kernel::Pixel >.
Definition at line 369 of file KernelCandidate.cc.
| lsst::afw::math::Kernel::Ptr lsst::ip::diffim::KernelCandidate< PixelT >::getKernel | ( | CandidateSwitch | cand | ) | const |
Return results of kernel solution.
Definition at line 260 of file KernelCandidate.cc.
| KernelCandidate< PixelT >::ImageT::Ptr lsst::ip::diffim::KernelCandidate< PixelT >::getKernelImage | ( | CandidateSwitch | cand | ) | const |
Definition at line 341 of file KernelCandidate.cc.
| boost::shared_ptr< StaticKernelSolution< PixelT > > lsst::ip::diffim::KernelCandidate< PixelT >::getKernelSolution | ( | CandidateSwitch | cand | ) | const |
Definition at line 374 of file KernelCandidate.cc.
| double lsst::ip::diffim::KernelCandidate< PixelT >::getKsum | ( | CandidateSwitch | cand | ) | const |
Definition at line 314 of file KernelCandidate.cc.
|
inline |
Definition at line 104 of file KernelCandidate.h.
|
inline |
|
inline |
Return pointers to the image pixels used in kernel determination.
Definition at line 103 of file KernelCandidate.h.
|
inline |
Definition at line 132 of file KernelCandidate.h.
|
private |
Mean S/N in the science image.
Definition at line 195 of file KernelCandidate.h.
|
private |
Definition at line 198 of file KernelCandidate.h.
|
private |
Has the kernel been built.
Definition at line 196 of file KernelCandidate.h.
|
private |
Original basis solution.
Definition at line 201 of file KernelCandidate.h.
|
private |
Most recent solution.
Definition at line 204 of file KernelCandidate.h.
|
private |
Policy.
Definition at line 193 of file KernelCandidate.h.
|
private |
Subimage around which you build kernel.
Definition at line 191 of file KernelCandidate.h.
|
private |
Definition at line 194 of file KernelCandidate.h.
|
private |
Subimage around which you build kernel.
Definition at line 190 of file KernelCandidate.h.
|
private |
Use regularization?
Definition at line 197 of file KernelCandidate.h.
|
private |
Estimate of the local variance.
Definition at line 192 of file KernelCandidate.h.
1.8.5