55 template<
typename PixelT>
64 template<
typename PixelT>
88 template<
typename PixelT>
94 "Failed to cast SpatialCellCandidate to KernelCandidate");
96 LOGL_DEBUG(
"TRACE5.ip.diffim.SetPcaImageVisitor.processCandidate",
97 "Processing candidate %d",
kCandidate->getId());
106 _imagePca->addImage(
kImage, 1.0);
112 template<
typename PixelT>
137 LOGL_DEBUG(
"TRACE5.ip.diffim.KernelPcaVisitor.subtractMean",
138 "Subtracting mean feature before Pca");
140 _mean = _imagePca->getMean();
142 for (
typename KernelPca<ImageT>::ImageList::const_iterator ptr =
imageList.begin(),
162 template <
typename ImageT>
169 for (
size_t i = 0; iter !=
end; ++
i, ++iter) {
#define LSST_EXCEPT(type,...)
Class used by SpatialModelCell for spatial Kernel fitting.
Declaration of KernelPca and KernelPcaVisitor.
#define LOGL_DEBUG(logger, message...)
Class stored in SpatialCells for spatial Kernel fitting.
Asseses the quality of a candidate given a spatial kernel and background model.
AssessSpatialKernelVisitor(std::shared_ptr< lsst::afw::math::LinearCombinationKernel > spatialKernel, lsst::afw::math::Kernel::SpatialFunctionPtr spatialBackground, lsst::daf::base::PropertySet const &ps)
virtual void analyze()
Generate eigenimages that are normalised.
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
lsst::afw::math::KernelList getEigenKernels()
KernelPcaVisitor(std::shared_ptr< KernelPca< ImageT > > imagePca)
Statistics makeStatistics(lsst::afw::image::Image< Pixel > const &img, lsst::afw::image::Mask< image::MaskPixel > const &msk, int const flags, StatisticsControl const &sctrl=StatisticsControl())