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
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
A convenience container for the exposure, peak and footprint that will be measured.
lsst::geom::SpherePoint pixelToSky(lsst::geom::Point2D const &pixel) const
unsigned char FlagT
Type for flags.
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
geom::AffineTransform const & toStandard() const
boost::shared_ptr< ExposurePatch > Ptr
lsst::geom::AffineTransform linearizePixelToSky(lsst::geom::SpherePoint const &coord, lsst::geom::AngleUnit const &skyUnit) const
geom::Point2D const & getCenter() const
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
boost::shared_ptr< ExposureT const > const getExposure() const
Accessors.
void setCenter(geom::Point2D const ¢er)
Modifiers.