Template Function lsst::afw::math::warpImage(DestImageT&, SrcImageT const&, geom::TransformPoint2ToPoint2 const&, WarpingControl const&, typename DestImageT::SinglePixel)¶
Function Documentation¶
- 
template<typename DestImageT, typenameSrcImageT>
 intlsst::afw::math::warpImage(DestImageT &destImage, SrcImageT const &srcImage, geom::TransformPoint2ToPoint2 const &srcToDest, WarpingControl const &control, typename DestImageT::SinglePixel padValue = lsst::afw::math::edgePixel<DestImageT>(typename lsst::afw::image::detail::image_traits<DestImageT>::image_category()))
- A variant of warpImage that uses a Transform<Point2Endpoint, Point2Endpoint> instead of a pair of WCS to describe the transformation. - Return
- the number of good pixels 
- Parameters
- [inout] destImage: Destination image; all pixels are set
- [in] srcImage: Source image
- [in] srcToDest: Transformation from source to destination pixels, in parent coordinates; the inverse must be defined (and is the only direction used). makeWcsPairTransform(srcWcs, destWcs) is one way to compute this transform.
- [in] control: Warning control parameters
- [in] padValue: Value used for pixels in the destination image that are outside the region of pixels that can be computed from the source image