Template Function lsst::afw::image::for_each_pixel(Image<LhsT>&, Image<RhsT> const&, pixelOp2XY<LhsT, RhsT> const&)

Function Documentation

template<typename LhsT, typename RhsT>
void lsst::afw::image::for_each_pixel(Image<LhsT> &lhs, Image<RhsT> const &rhs, pixelOp2XY<LhsT, RhsT> const &func)

Parameters
  • lhs: Image to set

  • rhs: other Image to pass to func

  • func: functor to call

Set each pixel in an Image<LhsT> to func(x, y, lhs, rhs), getting the rhs from an Image<RhsT>

(x, y) allow for lhs.getXY0()