lsst.afw
20.0.0-9-g61a2a9a3d+14f89e4eca
|
Go to the documentation of this file.
30 #include "boost/format.hpp"
42 double kSum = kernel.
computeImage(kImage, doNormalize, xPos, yPos);
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;
lsst::geom::Extent2I const getDimensions() const
Return the Kernel's dimensions (width, height)
x_iterator row_begin(int y) const
Return an x_iterator to the start of the y'th row.
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.
int getHeight() const
Return the number of rows in the image.
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.
x_iterator row_end(int y) const
Return an x_iterator to the end of the y'th row.
A base class for image defects.
Kernels are used for convolution with MaskedImages and (eventually) Images.
_const_view_t::x_iterator const_x_iterator
A const iterator for traversing the pixels in a row.