12 #ifndef LSST_IP_DIFFIM_KERNELCANDIDATE_H 13 #define LSST_IP_DIFFIM_KERNELCANDIDATE_H 38 template <
typename _PixelT>
66 MaskedImagePtr
const& templateMaskedImage,
67 MaskedImagePtr
const& scienceMaskedImage,
80 MaskedImagePtr
const& templateMaskedImage,
81 MaskedImagePtr
const& scienceMaskedImage,
182 Eigen::MatrixXd
const& hMat
186 MaskedImagePtr _templateMaskedImage;
187 MaskedImagePtr _scienceMaskedImage;
188 VariancePtr _varianceEstimate;
193 bool _useRegularization;
194 bool _fitForBackground;
203 Eigen::MatrixXd
const& hMat);
218 template <
typename PixelT>
243 template <
typename PixelT>
double getBackground(CandidateSwitch cand) const
Class stored in SpatialCells for spatial Kernel fitting.
double getCandidateRating() const
Return Candidate rating.
a container for holding hierarchical configuration data in memory.
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.
#define CONST_PTR(...)
A shared pointer to a const object.
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
A base class for image defects.
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
A class to manipulate images, masks, and variance as a single object.
const char * source()
Source function that allows astChannel to source from a Stream.
SourcePtr getSource() const
Return the original source.
boost::shared_ptr< ImageT const > getImage() const
Base class for candidate objects in a SpatialCell that are able to return an Image of some sort (e...
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
A class to represent a 2-dimensional array of pixels.
double getKsum(CandidateSwitch cand) const
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.