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>
94 return std::make_shared<ExposurePatch<ExposureT> >(exp, foot, center);
96 template <
typename ExposureT>
99 geom::
Point2D const& standardCenter,
afw::geom::SkyWcs const& standardWcs) {
100 return std::make_shared<ExposurePatch<ExposureT> >(exp, standardFoot, standardCenter, standardWcs);
geom::AffineTransform const & fromStandard() const
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
ExposurePatch(boost::shared_ptr< ExposureT const > exp, boost::shared_ptr< afw::detection::Footprint const > foot, geom::Point2D const ¢er)
Constructor.
lsst::geom::Point2D skyToPixel(lsst::geom::SpherePoint const &sky) const
Compute pixel position(s) from sky position(s)
A convenience container for the exposure, peak and footprint that will be measured.
lsst::geom::SpherePoint pixelToSky(lsst::geom::Point2D const &pixel) const
Compute sky position(s) from pixel position(s)
unsigned char FlagT
Type for flags.
#define CONST_PTR(...)
A shared pointer to a const object.
ExposurePatch(boost::shared_ptr< ExposureT const > exp, afw::detection::Footprint const &standardFoot, geom::Point2D const &standardCenter, afw::geom::SkyWcs const &standardWcs)
boost::shared_ptr< ExposurePatch const > ConstPtr
Point< double, 2 > Point2D
geom::AffineTransform const & toStandard() const
A base class for image defects.
boost::shared_ptr< ExposurePatch > Ptr
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::Point2D const & getCenter() const
lsst::afw::detection::Footprint Footprint
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.
boost::shared_ptr< afw::detection::Footprint const > const getFootprint() const
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.
boost::shared_ptr< ExposureT const > const getExposure() const
Accessors.
void setCenter(geom::Point2D const ¢er)
Modifiers.