Template Function lsst::afw::math::scaledPlus¶
Function Documentation¶
-
template<typename
OutImageT
, typenameInImageT
>
voidlsst::afw::math
::
scaledPlus
(OutImageT &outImage, double c1, InImageT const &inImage1, double c2, InImageT const &inImage2)¶ Compute the scaled sum of two images
outImage = c1 inImage1 + c2 inImage2
For example to linearly interpolate between two images set: c1 = 1.0 - fracDist c2 = fracDist where fracDist is the fractional distance of outImage from inImage1: location of outImage - location of inImage1 fracDist = —————————————- location of inImage2 - location of inImage1
- Parameters
[out] outImage
: output image[in] c1
: coefficient for image 1[in] inImage1
: input image 1[in] c2
: coefficient for image 2[in] inImage2
: input image 2
- Exceptions
lsst::pex::exceptions::InvalidParameterError
: if outImage is not same dimensions as inImage1 and inImage2.