lsst.afw
tickets.DM-23835-g31c64b24f1
|
Go to the documentation of this file.
30 #include "boost/format.hpp"
42 double kSum = kernel.
computeImage(kImage, doNormalize, xPos, yPos);
44 for (
int y = kImage.getHeight() - 1;
y >= 0; --
y) {
47 std::cout << boost::format(pixelFmt) % *ptr <<
" ";
52 if (doNormalize && std::abs(static_cast<double>(kSum) - 1.0) > 1.0e-5) {
53 std::cout << boost::format(
"Warning! Sum of all pixels = %9.5f != 1.0\n") % kSum;
double computeImage(lsst::afw::image::Image< Pixel > &image, bool doNormalize, double x=0.0, double y=0.0) const
Compute an image (pixellized representation of the kernel) in place.
void printKernel(lsst::afw::math::Kernel const &kernel, bool doNormalize, double x=0, double y=0, std::string pixelFmt="%7.3f")
Print the pixel values of a Kernel to std::cout.
A base class for image defects.
Kernels are used for convolution with MaskedImages and (eventually) Images.
const lsst::geom::Extent2I getDimensions() const
Return the Kernel's dimensions (width, height)
_const_view_t::x_iterator const_x_iterator
A const iterator for traversing the pixels in a row.