lsst.jointcal  15.0-12-gd965ca7+2
AstrometryModel.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 #ifndef LSST_JOINTCAL_ASTROMETRY_MODEL_H
3 #define LSST_JOINTCAL_ASTROMETRY_MODEL_H
4 
5 #include "memory"
6 
10 
11 namespace lsst {
12 namespace jointcal {
13 
14 class CcdImage;
15 class Gtransfo;
16 
19 /* For an implementation example, see SimplePolyModel, and the comments at
20 the top of simplepolymodel.h */
22 public:
24  int getNpar(CcdImage const &ccdImage) const { return findMapping(ccdImage)->getNpar(); }
25 
27  virtual const AstrometryMapping *getMapping(CcdImage const &) const = 0;
28 
31  virtual unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex) = 0;
32 
34 
36  virtual void offsetParams(Eigen::VectorXd const &delta) = 0;
37 
39 
41  virtual const std::shared_ptr<Gtransfo const> getSky2TP(CcdImage const &ccdImage) const = 0;
42 
50  virtual std::shared_ptr<afw::geom::SkyWcs> makeSkyWcs(CcdImage const &ccdImage) const = 0;
51 
53  virtual void freezeErrorTransform() = 0;
54 
55  virtual ~AstrometryModel(){};
56 
57 protected:
59  virtual AstrometryMapping *findMapping(CcdImage const &ccdImage) const = 0;
60 };
61 } // namespace jointcal
62 } // namespace lsst
63 
64 #endif // LSST_JOINTCAL_ASTROMETRY_MODEL_H
virtual std::shared_ptr< afw::geom::SkyWcs > makeSkyWcs(CcdImage const &ccdImage) const =0
Make a SkyWcs that contains this model.
virtual void offsetParams(Eigen::VectorXd const &delta)=0
Offset the parameters by the provided amounts.
virtual unsigned assignIndices(std::string const &whatToFit, unsigned firstIndex)=0
Assign indices to parameters involved in mappings, starting at firstIndex.
Interface class between AstrometryFit and an actual model for the Mapping (s) from pixels to some tan...
STL class.
virtual AstrometryMapping * findMapping(CcdImage const &ccdImage) const =0
Return a pointer to the mapping associated with this ccdImage.
virtual const AstrometryMapping * getMapping(CcdImage const &) const =0
Mapping associated to a given CcdImage.
Class for a simple mapping implementing a generic Gtransfo.
virtual void freezeErrorTransform()=0
virtual const std::shared_ptr< Gtransfo const > getSky2TP(CcdImage const &ccdImage) const =0
The transformation used to project the positions of FittedStars.
int getNpar(CcdImage const &ccdImage) const
Return the number of parameters in the mapping of CcdImage.
virtual unsigned getNpar() const =0
Number of parameters in total.
virtual class needed in the abstraction of the distortion model
Handler of an actual image from a single CCD.
Definition: CcdImage.h:35