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);
62 const_cast<CONST_PTR(afw::detection::Footprint)&>(_foot) =
63 standardFoot.
transform(standardWcs, expWcs, exp->getBBox());
64 const_cast<geom::Point2D&>(_center) = expWcs.
skyToPixel(sky);
65 const_cast<geom::AffineTransform&>(_fromStandard) =
67 const_cast<geom::AffineTransform&>(_toStandard) =
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>)
99 geom::
Point2D const& standardCenter, afw::geom::SkyWcs const& standardWcs) {
100 return std::make_shared<ExposurePatch<ExposureT> >(exp, standardFoot, standardCenter, standardWcs);