Function lsst::afw::geom::makeRadialTransform(std::vector<double> const&, std::vector<double> const&)¶
Function Documentation¶
-
std::shared_ptr<TransformPoint2ToPoint2>
lsst::afw::geom
::
makeRadialTransform
(std::vector<double> const &forwardCoeffs, std::vector<double> const &inverseCoeffs) A purely radial polynomial distortion.
Similar to makeRadialTransform(std::vector<double> const &), but allows the user to provide an inverse.
- Return
the radial distortion represented by
coeffs
. The Transform shall have an inverse, whose accuracy is determined by the relationship betweenforwardCoeffs
andinverseCoeffs
.- Parameters
forwardCoeffs
: radial polynomial coefficients. May be an empty vector to represent the identity transformation; otherwise must havesize
> 1,coeffs[0]
= 0, andcoeffs[1]
0.inverseCoeffs
: coefficients for the inverse transform, as above. Does not need to have the same degree asforwardCoeffs
, but either both must be empty or neither must be empty.
- Exceptions
pex::exceptions::InvalidParameterError
: Thrown ifforwardCoeffs
orinverseCoeffs
does not have the required format. Provides basic exception safety.