24 #ifndef LSST_AFW_IMAGE_TANWCS_H 25 #define LSST_AFW_IMAGE_TANWCS_H 45 namespace formatters {
46 class TanWcsFormatter;
105 Eigen::MatrixXd
const &sipA, Eigen::MatrixXd
const &sipB, Eigen::MatrixXd
const &sipAp,
106 Eigen::MatrixXd
const &sipBp,
double equinox = 2000,
std::string const &raDecSys =
"FK5",
145 void setDistortionMatrices(Eigen::MatrixXd
const &sipA, Eigen::MatrixXd
const &sipB,
146 Eigen::MatrixXd
const &sipAp, Eigen::MatrixXd
const &sipBp);
149 Eigen::MatrixXd
const &
getSipA()
const {
return _sipA; }
152 Eigen::MatrixXd
const &
getSipB()
const {
return _sipB; }
155 Eigen::MatrixXd
const &
getSipAp()
const {
return _sipAp; }
158 Eigen::MatrixXd
const &
getSipBp()
const {
return _sipBp; }
161 bool isPersistable()
const override;
166 void pixelToSkyImpl(
double pixel1,
double pixel2,
geom::Angle skyTmp[2])
const override;
172 friend class TanWcsFactory;
178 bool _isSubset(
Wcs const &)
const override;
199 Eigen::MatrixXd _sipA, _sipB, _sipAp, _sipBp;
Eigen::MatrixXd const & getSipBp() const
Return the SIP reverse distortion matrix for y pixel coordinates.
std::shared_ptr< ImageT > flipImage(ImageT const &inImage, bool flipLR, bool flipTB)
Flip an image left–right and/or top–bottom.
An object passed to Persistable::write to allow it to persist itself.
std::shared_ptr< Wcs > makeWcs(std::shared_ptr< lsst::daf::base::PropertySet > const &fitsMetadata, bool stripMetadata=false)
Create a Wcs object from a fits header.
table::PointKey< double > crval
Implementation of the WCS standard for a any projection.
Eigen::MatrixXd const & getSipA() const
Return the SIP forward distortion matrix for the 1st intermediate world coordinate system axis...
Eigen::MatrixXd const & getSipB() const
Return the SIP forward distortion matrix for the 2st intermediate world coordinate system axis...
bool hasDistortion() const override
afw::table::PointKey< int > dimensions
A class representing an angle.
A base class for image defects.
Implementation of the WCS standard for the special case of the Gnomonic (tangent plane) projection...
table::Key< double > equinox
std::shared_ptr< ImageT > rotateImageBy90(ImageT const &image, int nQuarter)
Rotate an image by an integral number of quarter turns.
Base class for all records.
#define LSST_PERSIST_FORMATTER(formatter...)
table::PointKey< int > pixel
table::Key< table::Array< double > > cd
A CRTP facade class for subclasses of Persistable.
Eigen::MatrixXd const & getSipAp() const
Return the SIP reverse distortion matrix for x pixel coordinates.
table::PointKey< double > crpix