| LSSTApplications
    20.0.0
    LSSTDataManagementBasePackage | 
 
 
 
Go to the documentation of this file.
   25 #if !defined(LSST_MEAS_ALGORITHMS_EXPOSURE_PATCH_H) 
   26 #define LSST_MEAS_ALGORITHMS_EXPOSURE_PATCH_H 
   36 namespace algorithms {
 
   41 template <
typename ExposureT>
 
   53             : _exp(exp), _foot(foot), _center(center), _fromStandard(), _toStandard() {}
 
   61         auto const sky = standardWcs.
pixelToSky(standardCenter);
 
   63                 standardFoot.
transform(standardWcs, expWcs, exp->getBBox());
 
   90 template <
typename ExposureT>
 
   91 PTR(ExposurePatch<ExposureT>)
 
   94     return std::make_shared<ExposurePatch<ExposureT> >(exp, foot, center);
 
   96 template <
typename ExposureT>
 
   97 PTR(ExposurePatch<ExposureT>)
 
  100     return std::make_shared<ExposurePatch<ExposureT> >(exp, standardFoot, standardCenter, standardWcs);
 
  
lsst::geom::AffineTransform linearizeSkyToPixel(lsst::geom::SpherePoint const &coord, lsst::geom::AngleUnit const &skyUnit) const
Return the local linear approximation to skyToPixel at a point given in sky coordinates.
#define CONST_PTR(...)
A shared pointer to a const object.
void setCenter(geom::Point2D const ¢er)
Modifiers.
ExposurePatch(boost::shared_ptr< ExposureT const > exp, afw::detection::Footprint const &standardFoot, geom::Point2D const &standardCenter, afw::geom::SkyWcs const &standardWcs)
geom::AffineTransform const  & fromStandard() const
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
Point< double, 2 > Point2D
boost::shared_ptr< ExposurePatch< ExposureT > > makeExposurePatch(boost::shared_ptr< ExposureT const > exp, boost::shared_ptr< afw::detection::Footprint const > foot, geom::Point2D const ¢er)
Factory function for ExposurePatch.
A convenience container for the exposure, peak and footprint that will be measured.
boost::shared_ptr< ExposurePatch > Ptr
boost::shared_ptr< ExposureT const  > const getExposure() const
Accessors.
lsst::geom::Point2D skyToPixel(lsst::geom::SpherePoint const &sky) const
Compute pixel position(s) from sky position(s)
boost::shared_ptr< afw::detection::Footprint const  > const getFootprint() const
lsst::afw::detection::Footprint Footprint
lsst::geom::SpherePoint pixelToSky(lsst::geom::Point2D const &pixel) const
Compute sky position(s) from pixel position(s)
A base class for image defects.
lsst::geom::AffineTransform linearizePixelToSky(lsst::geom::SpherePoint const &coord, lsst::geom::AngleUnit const &skyUnit) const
Return the local linear approximation to pixelToSky at a point given in sky coordinates.
geom::AffineTransform const  & toStandard() const
unsigned char FlagT
Type for flags.
geom::Point2D const  & getCenter() const
boost::shared_ptr< ExposurePatch const  > ConstPtr
ExposurePatch(boost::shared_ptr< ExposureT const > exp, boost::shared_ptr< afw::detection::Footprint const > foot, geom::Point2D const ¢er)
Constructor.