25 #if !defined(LSST_MEAS_ALGORITHMS_EXPOSURE_PATCH_H) 26 #define LSST_MEAS_ALGORITHMS_EXPOSURE_PATCH_H 33 namespace lsst {
namespace meas {
namespace algorithms {
38 template<
typename ExposureT>
49 ): _exp(exp), _foot(foot), _center(center), _fromStandard(), _toStandard() {}
56 auto const sky = standardWcs.
pixelToSky(standardCenter);
85 template<
typename ExposureT>
91 return std::make_shared<ExposurePatch<ExposureT> >(exp, foot, center);
93 template<
typename ExposureT>
100 return std::make_shared<ExposurePatch<ExposureT> >(exp, standardFoot, standardCenter, standardWcs);
void setCenter(afw::geom::Point2D const ¢er)
Modifiers.
afw::geom::Point2D const & getCenter() const
ExposurePatch(boost::shared_ptr< ExposureT const > exp, afw::detection::Footprint const &standardFoot, afw::geom::Point2D const &standardCenter, afw::geom::SkyWcs const &standardWcs)
afw::geom::AffineTransform const & fromStandard() const
A convenience container for the exposure, peak and footprint that will be measured.
unsigned char FlagT
Type for flags.
ExposurePatch(boost::shared_ptr< ExposureT const > exp, boost::shared_ptr< afw::detection::Footprint const > foot, afw::geom::Point2D const ¢er)
Constructor.
boost::shared_ptr< ExposurePatch const > ConstPtr
boost::shared_ptr< ExposurePatch > Ptr
boost::shared_ptr< ExposurePatch< ExposureT > > makeExposurePatch(boost::shared_ptr< ExposureT const > exp, boost::shared_ptr< afw::detection::Footprint const > foot, afw::geom::Point2D const ¢er)
Factory function for ExposurePatch.
afw::geom::AffineTransform const & toStandard() const
AffineTransform linearizeSkyToPixel(SpherePoint const &coord, AngleUnit const &skyUnit) const
SpherePoint pixelToSky(Point2D const &pixel) const
Point2D skyToPixel(SpherePoint const &sky) const
AffineTransform linearizePixelToSky(SpherePoint const &coord, AngleUnit const &skyUnit) const
boost::shared_ptr< afw::detection::Footprint const > const getFootprint() const
boost::shared_ptr< ExposureT const > const getExposure() const
Accessors.