LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
28 namespace cameraGeom {
46 _rotMat << cosYaw * cosPitch, cosYaw * sinPitch * sinRoll - cosRoll * sinYaw, cosPitch * sinYaw,
47 cosYaw * cosRoll + sinYaw * sinPitch * sinRoll;
53 : _fpPosition(
other._fpPosition),
54 _refPoint(
other._refPoint),
58 _rotMat(
other._rotMat) {}
67 _fpPosition =
other._fpPosition;
68 _refPoint =
other._refPoint;
70 _pitch =
other._pitch;
72 _rotMat =
other._rotMat;
97 Eigen::Matrix2d jacobian =
98 _rotMat.array() * (Eigen::Vector2d::Ones() * pixelSizeMm.asEigen().transpose()).array();
100 Eigen::Vector2d refMm = pixelSizeMm.asEigen().array() * _refPoint.asEigen().array();
101 Eigen::Vector2d translation = _fpPosition.asEigen() - (_rotMat * refMm);
table::Point2DKey fpPosition
std::shared_ptr< geom::TransformPoint2ToPoint2 > makePixelFpTransform(lsst::geom::Extent2D const pixelSizeMm) const
Generate a Transform from pixel to focal plane coordinates.
table::Key< lsst::geom::Angle > yaw
Orientation(lsst::geom::Point2D const fpPosition=lsst::geom::Point2D(0, 0), lsst::geom::Point2D const refPoint=lsst::geom::Point2D(-0.5, -0.5), lsst::geom::Angle const yaw=lsst::geom::Angle(0), lsst::geom::Angle const pitch=lsst::geom::Angle(0), lsst::geom::Angle const roll=lsst::geom::Angle(0))
table::Key< lsst::geom::Angle > roll
std::shared_ptr< geom::TransformPoint2ToPoint2 > makeFpPixelTransform(lsst::geom::Extent2D const pixelSizeMm) const
Generate a Transform from focal plane to pixel coordinates.
ItemVariant const * other
table::Point2DKey refPoint
A base class for image defects.
Describe a detector's orientation in the focal plane.
int getNQuarter() const noexcept
Return the number of quarter turns (rounded to the closest quarter)
A class representing an angle.
Orientation & operator=(Orientation const &) noexcept
constexpr double asDegrees() const noexcept
Return an Angle's value in degrees.
table::Key< lsst::geom::Angle > pitch
std::shared_ptr< TransformPoint2ToPoint2 > makeTransform(lsst::geom::AffineTransform const &affine)
Wrap an lsst::geom::AffineTransform as a Transform.