lsst.ip.diffim
20.0.0-9-g4aef684+455f4955ec
|
Go to the documentation of this file.
55 template<
typename PixelT>
64 template<
typename PixelT>
69 int ncomp = eigenImages.
size();
77 for (
int i = 0; i < ncomp; i++) {
88 template<
typename PixelT>
92 if (kCandidate == NULL) {
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();
143 end = imageList.
end(); ptr !=
end; ++ptr) {
162 template <
typename ImageT>
168 typename Super::ImageList::const_iterator
iter = eImageList.
begin(),
end = eImageList.
end();
176 afwMath::Statistics stats = afwMath::makeStatistics(*eImage, (afwMath::MIN | afwMath::MAX));
181 if (extreme != 0.0) {
Overrides the analyze method of base class afwImage::ImagePca.
Class stored in SpatialCells for spatial Kernel fitting.
virtual void analyze()
Generate eigenimages that are normalised.
void processCandidate(lsst::afw::math::SpatialCellCandidate *candidate)
double getValue(Property const prop=NOTHING) const
A class to run a PCA on all candidate kernels (represented as Images).
KernelPcaVisitor(std::shared_ptr< KernelPca< ImageT > > imagePca)
lsst::afw::math::KernelList getEigenKernels()
#define LSST_EXCEPT(type,...)
std::shared_ptr< StaticKernelSolution< PixelT > > getKernelSolution(CandidateSwitch cand) const
Declaration of KernelPca and KernelPcaVisitor.
#define LOGL_DEBUG(logger, message...)
Class used by SpatialModelCell for spatial Kernel fitting.