File transformFactory.h¶
-
namespace
lsst
Class for a simple mapping implementing a generic AstrometryTransform.
Remove all non-astronomical counts from the Chunk Exposure’s pixels.
Forward declarations for lsst::utils::Cache
For details on the Cache class, see the Cache.h file.
It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.
A base class for image defects
Numeric constants used by the Integrate.h integrator routines.
Compute Image Statistics
- Note
Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.
- Note
The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.
-
namespace
afw
-
namespace
geom
Functions
-
lsst::geom::AffineTransform
linearizeTransform
(TransformPoint2ToPoint2 const &original, lsst::geom::Point2D const &inPoint)¶ Approximate a Transform by its local linearization.
- Return
an lsst::geom::AffineTransform whose value and Jacobian at
inPoint
match those oforiginal
. It may be invertible; in general, linearizations are invertible if the Jacobian atinPoint
is invertible.- Template Parameters
FromEndpointToEndpoint
: The endpoints of the transform.
- Parameters
original
: the Transform to linearizeinPoint
: the point at which a linear approximation is desired
- Exceptions
pex::exceptions::InvalidParameterError
: Thrown iforiginal
does not have a well-defined value and Jacobian atinPoint
Not exception safe.
-
std::shared_ptr<TransformPoint2ToPoint2>
makeTransform
(lsst::geom::AffineTransform const &affine)¶ Wrap an lsst::geom::AffineTransform as a Transform.
Provides basic exception safety.
- Return
a Transform that that maps any lsst::geom::Point2D
x
toaffine(x)
. It shall be invertible iffaffine
is invertible.- Parameters
affine
: The lsst::geom::AffineTransform to wrap.
-
std::shared_ptr<TransformPoint2ToPoint2>
makeRadialTransform
(std::vector<double> const &coeffs)¶ A purely radial polynomial distortion.
The Transform transforms an input \(x\) to
\[ \frac{x}{r} \sum_{i=1}^{N} \mathrm{coeffs[i]} \ r^i \]where \(r\) is the magnitude of \(x\).- Return
the radial distortion represented by
coeffs
. The Transform shall have an inverse, which may be approximate.- Parameters
coeffs
: radial polynomial coefficients. May be an empty vector to represent the identity transformation; otherwise must havesize
> 1,coeffs[0]
= 0, andcoeffs[1]
0.
- Exceptions
pex::exceptions::InvalidParameterError
: Thrown ifcoeffs
does not have the required format. Provides basic exception safety.
-
std::shared_ptr<TransformPoint2ToPoint2>
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.
-
lsst::geom::AffineTransform
-
namespace