12 #ifndef LSST_IP_DIFFIM_KERNELCANDIDATE_H 13 #define LSST_IP_DIFFIM_KERNELCANDIDATE_H 37 template <
typename _PixelT>
65 MaskedImagePtr
const& templateMaskedImage,
66 MaskedImagePtr
const& scienceMaskedImage,
79 MaskedImagePtr
const& templateMaskedImage,
80 MaskedImagePtr
const& scienceMaskedImage,
181 Eigen::MatrixXd
const& hMat
202 Eigen::MatrixXd
const& hMat);
217 template <
typename PixelT>
242 template <
typename PixelT>
bool _isInitialized
Has the kernel been built.
double getBackground(CandidateSwitch cand) const
MaskedImagePtr _scienceMaskedImage
Subimage around which you build kernel.
Class stored in SpatialCells for spatial Kernel fitting.
double getCandidateRating() const
Return Candidate rating.
std::shared_ptr< StaticKernelSolution< PixelT > > _kernelSolutionOrig
Original basis solution.
afw::image::MaskedImage< PixelT > getDifferenceImage(CandidateSwitch cand)
Calculate associated difference image using internal solutions.
std::shared_ptr< StaticKernelSolution< PixelT > > getKernelSolution(CandidateSwitch cand) const
std::shared_ptr< afw::math::Kernel > getKernel(CandidateSwitch cand) const
Return results of kernel solution.
void build(afw::math::KernelList const &basisList)
Core functionality of KernelCandidate, to build and fill a KernelSolution.
boost::shared_ptr< ImageT > getKernelImage(CandidateSwitch cand) const
bool isInitialized() const
Declaration of classes to store the solution for convolution kernels.
std::shared_ptr< afw::image::Image< afw::image::VariancePixel > > VariancePtr
std::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()
std::shared_ptr< afw::image::MaskedImage< PixelT > > MaskedImagePtr
VariancePtr _varianceEstimate
Estimate of the local variance.
SourcePtr getSource() const
Return the original source.
double _coreFlux
Mean S/N in the science image.
boost::shared_ptr< ImageT const > getImage() const
MaskedImagePtr _templateMaskedImage
Subimage around which you build kernel.
bool _useRegularization
Use regularization?
void _buildKernelSolution(afw::math::KernelList const &basisList, Eigen::MatrixXd const &hMat)
KernelCandidate(float const xCenter, float const yCenter, MaskedImagePtr const &templateMaskedImage, MaskedImagePtr const &scienceMaskedImage, pex::policy::Policy const &policy)
Constructor.
std::shared_ptr< afw::table::SourceRecord > SourcePtr
double getKsum(CandidateSwitch cand) const
std::shared_ptr< StaticKernelSolution< PixelT > > _kernelSolutionPca
Most recent solution.
std::shared_ptr< KernelCandidate< PixelT > > makeKernelCandidate(float const xCenter, float const yCenter, std::shared_ptr< afw::image::MaskedImage< PixelT > > const &templateMaskedImage, std::shared_ptr< afw::image::MaskedImage< PixelT > > const &scienceMaskedImage, pex::policy::Policy const &policy)
Return a KernelCandidate pointer of the right sort.