12 #ifndef LSST_IP_DIFFIM_KERNELCANDIDATE_H
13 #define LSST_IP_DIFFIM_KERNELCANDIDATE_H
15 #include "boost/shared_ptr.hpp"
37 template <
typename _PixelT>
48 typedef boost::shared_ptr<KernelCandidate>
Ptr;
50 typedef boost::shared_ptr<afw::image::Image<afw::image::VariancePixel> >
VariancePtr;
51 typedef boost::shared_ptr<afw::table::SourceRecord>
SourcePtr;
128 afw::math::Kernel::
Ptr kernel,
186 boost::shared_ptr<Eigen::MatrixXd> hMat
207 boost::shared_ptr<Eigen::MatrixXd> hMat);
222 template <
typename PixelT>
223 boost::shared_ptr<KernelCandidate<PixelT> >
247 template <
typename PixelT>
248 boost::shared_ptr<KernelCandidate<PixelT> >
An include file to include the public header files for lsst::afw::math.
boost::shared_ptr< ImageT const > getImage() const
Return the Candidate's Image.
bool _isInitialized
Has the kernel been built.
boost::shared_ptr< StaticKernelSolution< PixelT > > _kernelSolutionOrig
Original basis solution.
MaskedImagePtr _scienceMaskedImage
Subimage around which you build kernel.
Class stored in SpatialCells for spatial Kernel fitting.
void _buildKernelSolution(afw::math::KernelList const &basisList, boost::shared_ptr< Eigen::MatrixXd > hMat)
boost::shared_ptr< afw::table::SourceRecord > SourcePtr
a container for holding hierarchical configuration data in memory.
afw::image::MaskedImage< PixelT > getDifferenceImage(CandidateSwitch cand)
Calculate associated difference image using internal solutions.
void build(afw::math::KernelList const &basisList)
Core functionality of KernelCandidate, to build and fill a KernelSolution.
afw::math::Kernel::Ptr getKernel(CandidateSwitch cand) const
Return results of kernel solution.
boost::shared_ptr< Kernel > Ptr
Declaration of classes to store the solution for convolution kernels.
table::Key< table::Array< Kernel::Pixel > > image
bool isInitialized() const
An include file to include the header files for lsst::afw::image.
boost::shared_ptr< KernelCandidate > Ptr
pex::policy::Policy _policy
Policy.
MaskedImagePtr getTemplateMaskedImage()
Return pointers to the image pixels used in kernel determination.
afw::image::Image< afw::math::Kernel::Pixel > ImageT
virtual ~KernelCandidate()
Destructor.
MaskedImagePtr getScienceMaskedImage()
double getKsum(CandidateSwitch cand) const
A class to manipulate images, masks, and variance as a single object.
VariancePtr _varianceEstimate
Estimate of the local variance.
boost::shared_ptr< KernelCandidate< PixelT > > makeKernelCandidate(float const xCenter, float const yCenter, boost::shared_ptr< afw::image::MaskedImage< PixelT > > const &templateMaskedImage, boost::shared_ptr< afw::image::MaskedImage< PixelT > > const &scienceMaskedImage, pex::policy::Policy const &policy)
Return a KernelCandidate pointer of the right sort.
boost::shared_ptr< StaticKernelSolution< PixelT > > getKernelSolution(CandidateSwitch cand) const
double _coreFlux
Mean S/N in the science image.
boost::shared_ptr< afw::image::MaskedImage< PixelT > > MaskedImagePtr
MaskedImagePtr _templateMaskedImage
Subimage around which you build kernel.
bool _useRegularization
Use regularization?
double getBackground(CandidateSwitch cand) const
boost::shared_ptr< StaticKernelSolution< PixelT > > _kernelSolutionPca
Most recent solution.
double getCandidateRating() const
Return Candidate rating.
boost::shared_ptr< ImageT > getKernelImage(CandidateSwitch cand) const
KernelCandidate(float const xCenter, float const yCenter, MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage, pex::policy::Policy const &policy)
Constructor.
std::vector< boost::shared_ptr< Kernel > > KernelList
SourcePtr getSource() const
Return the original source.
A class to represent a 2-dimensional array of pixels.
boost::shared_ptr< afw::image::Image< afw::image::VariancePixel > > VariancePtr