File TrapezoidalPacker.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
math
-
namespace
detail
-
struct
TrapezoidalPacker
¶ - #include <TrapezoidalPacker.h>
A helper class ChebyshevBoundedField, for mapping trapezoidal matrices to 1-d arrays.
This class is not Swigged, and should not be included by any other .h files (including lsst/afw/math/detail.h); it’s for internal use by ChebyshevBoundedField only, and it’s only in a header file instead of that .cc file only so it can be unit tested.
We characterize the matrices by their number of columns (nx) and rows (ny), and the number of complete rows minus one (m).
This splits up the matrix into a rectangular part, in which the number of columns is the same for each row, and a wide trapezoidal or triangular part, in which the number of columns decreases by one for each row.
Here are some examples of how this class handles different kinds of matrices:
A wide trapezoidal matrix with orderX=4, orderY=3: nx=5, ny=4, m=0
0 1 2 3 4 5 6 7 8 9 10 11 12 13
A tall trapezoidal matrix with orderX=2, orderY=4 nx=3, ny=5, m=2
0 1 2 3 4 5 6 7 8 9 10 11
A triangular matrix with orderX=3, orderY=3 nx=4, ny=5, m=0
0 1 2 3 4 5 6 7 8 9
A wide rectangular matrix with orderX=3, orderY=2 nx=4, ny=3, m=3
0 1 2 3 4 5 6 7 8 9 10 11
A tall rectangular matrix with orderX=2, orderY=3 nx=3, ny=4, m=4
0 1 2 3 4 5 6 7 8 9 10 11
Public Functions
-
TrapezoidalPacker
(ChebyshevBoundedFieldControl const &ctrl)¶
-
void
pack
(ndarray::Array<double, 1, 1> const &out, ndarray::Array<double const, 1, 1> const &tx, ndarray::Array<double const, 1, 1> const &ty) const¶
-
void
pack
(ndarray::Array<double, 1, 1> const &out, ndarray::Array<double const, 2, 2> const &unpacked) const¶
-
void
unpack
(ndarray::Array<double, 2, 2> const &out, ndarray::Array<double const, 1, 1> const &packed) const¶
-
ndarray::Array<double, 2, 2>
unpack
(ndarray::Array<double const, 1, 1> const &packed) const¶
-
-
struct
-
namespace
-
namespace