11 imstats = diffimLib.ImageStatisticsF()
14 width, height = spatialKernel.getDimensions()
15 kImage = afwImage.ImageD(width, height)
17 kSums = afwMath.vectorD()
20 kSum = spatialKernel.computeImage(kImage,
False, x, y)
32 for cell
in kernelCellSet.getCellList():
33 for cand
in cell.begin(
False):
34 cand = diffimLib.cast_KernelCandidateF(cand)
35 if cand.getStatus() == afwMath.SpatialCellCandidate.GOOD:
39 xCand = int(cand.getXCenter())
40 yCand = int(cand.getYCenter())
43 kSum = spatialKernel.computeImage(kImage,
False, xCand, yCand)
45 background = spatialBg(xCand, yCand)
47 diffIm = cand.getDifferenceImage(kernel, background)
55 elif cand.getStatus() == afwMath.SpatialCellCandidate.BAD:
63 nKernelTerms = spatialKernel.getNSpatialParameters()
A kernel created from an Image.