Mapping implementation for a polynomial transformation.
More...
#include <SimpleAstrometryMapping.h>
Mapping implementation for a polynomial transformation.
Definition at line 147 of file SimpleAstrometryMapping.h.
◆ ~SimplePolyMapping()
lsst::jointcal::SimplePolyMapping::~SimplePolyMapping |
( |
| ) |
|
|
inline |
◆ SimplePolyMapping() [1/3]
The transformation will be initialized to transform, so that the effective transformation reads transform*CenterAndScale.
Definition at line 154 of file SimpleAstrometryMapping.h.
161 preDer(0, 0) = _centerAndScale.
coeff(1, 0, 0);
162 preDer(1, 0) = _centerAndScale.
coeff(0, 1, 0);
163 preDer(0, 1) = _centerAndScale.
coeff(1, 0, 1);
164 preDer(1, 1) = _centerAndScale.
coeff(0, 1, 1);
168 assert((&H(1, 0) - &H(0, 0)) == 1);
SimpleAstrometryMapping(AstrometryTransform const &astrometryTransform, bool toBeFit=true)
Eigen::Matrix< double, Eigen::Dynamic, 2 > MatrixX2d
◆ SimplePolyMapping() [2/3]
No copy or move: there is only ever one instance of a given mapping (i.e.. per ccd+visit)
◆ SimplePolyMapping() [3/3]
◆ computeTransformAndDerivatives()
Calls the transforms and implements the centering and scaling of coordinates.
Reimplemented from lsst::jointcal::SimpleAstrometryMapping.
Definition at line 200 of file SimpleAstrometryMapping.h.
204 transform->transformPosAndErrors(mid, outPoint);
206 errorProp->transformPosAndErrors(mid, tmp);
207 outPoint.vx = tmp.vx;
208 outPoint.vy = tmp.vy;
209 outPoint.vxy = tmp.vxy;
210 transform->paramDerivatives(mid, &H(0, 0), &H(0, 1));
std::shared_ptr< AstrometryTransform > errorProp
◆ freezeErrorTransform()
virtual void lsst::jointcal::SimpleAstrometryMapping::freezeErrorTransform |
( |
| ) |
|
|
inlinevirtualinherited |
◆ getIndex()
Eigen::Index lsst::jointcal::SimpleAstrometryMapping::getIndex |
( |
| ) |
const |
|
inlineinherited |
◆ getMappingIndices()
void lsst::jointcal::SimpleAstrometryMapping::getMappingIndices |
( |
IndexVector & |
indices | ) |
const |
|
inlinevirtualinherited |
◆ getNpar()
std::size_t lsst::jointcal::SimpleAstrometryMapping::getNpar |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ getToBeFit()
bool lsst::jointcal::SimpleAstrometryMapping::getToBeFit |
( |
| ) |
const |
|
inlineinherited |
◆ getTransform()
◆ offsetParams()
void lsst::jointcal::SimpleAstrometryMapping::offsetParams |
( |
Eigen::VectorXd const & |
delta | ) |
|
|
inlinevirtualinherited |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ positionDerivative()
void lsst::jointcal::SimplePolyMapping::positionDerivative |
( |
Point const & |
where, |
|
|
Eigen::Matrix2d & |
derivative, |
|
|
double |
epsilon |
|
) |
| const |
|
inlinevirtual |
The derivative w.r.t. position.
Reimplemented from lsst::jointcal::SimpleAstrometryMapping.
Definition at line 180 of file SimpleAstrometryMapping.h.
181 Point tmp = _centerAndScale.
apply(where);
183 derivative(0, 0) =
lin->coeff(1, 0, 0);
190 derivative(1, 0) =
lin->coeff(0, 1, 0);
191 derivative(0, 1) =
lin->coeff(1, 0, 1);
192 derivative(1, 1) =
lin->coeff(0, 1, 1);
193 derivative = preDer * derivative;
std::unique_ptr< AstrometryTransformLinear > lin
std::shared_ptr< AstrometryTransform > errorProp
◆ setIndex()
void lsst::jointcal::SimpleAstrometryMapping::setIndex |
( |
Eigen::Index |
i | ) |
|
|
inlineinherited |
◆ setToBeFit()
void lsst::jointcal::SimpleAstrometryMapping::setToBeFit |
( |
bool |
value | ) |
|
|
inlineinherited |
◆ transformPosAndErrors()
void lsst::jointcal::SimplePolyMapping::transformPosAndErrors |
( |
FatPoint const & |
where, |
|
|
FatPoint & |
outPoint |
|
) |
| const |
|
inlinevirtual |
◆ errorProp
◆ index
Eigen::Index lsst::jointcal::SimpleAstrometryMapping::index |
|
protectedinherited |
◆ lin
◆ toBeFit
bool lsst::jointcal::SimpleAstrometryMapping::toBeFit |
|
protectedinherited |
◆ transform
The documentation for this class was generated from the following file: