LSST Applications g0b6bd0c080+a72a5dd7e6,g1182afd7b4+2a019aa3bb,g17e5ecfddb+2b8207f7de,g1d67935e3f+06cf436103,g38293774b4+ac198e9f13,g396055baef+6a2097e274,g3b44f30a73+6611e0205b,g480783c3b1+98f8679e14,g48ccf36440+89c08d0516,g4b93dc025c+98f8679e14,g5c4744a4d9+a302e8c7f0,g613e996a0d+e1c447f2e0,g6c8d09e9e7+25247a063c,g7271f0639c+98f8679e14,g7a9cd813b8+124095ede6,g9d27549199+a302e8c7f0,ga1cf026fa3+ac198e9f13,ga32aa97882+7403ac30ac,ga786bb30fb+7a139211af,gaa63f70f4e+9994eb9896,gabf319e997+ade567573c,gba47b54d5d+94dc90c3ea,gbec6a3398f+06cf436103,gc6308e37c7+07dd123edb,gc655b1545f+ade567573c,gcc9029db3c+ab229f5caf,gd01420fc67+06cf436103,gd877ba84e5+06cf436103,gdb4cecd868+6f279b5b48,ge2d134c3d5+cc4dbb2e3f,ge448b5faa6+86d1ceac1d,gecc7e12556+98f8679e14,gf3ee170dca+25247a063c,gf4ac96e456+ade567573c,gf9f5ea5b4d+ac198e9f13,gff490e6085+8c2580be5c,w.2022.27
LSST Data Management Base Package
Public Types | Public Member Functions | List of all members
lsst::meas::algorithms::ExposurePatch< ExposureT > Class Template Reference

A convenience container for the exposure, peak and footprint that will be measured. More...

#include <ExposurePatch.h>

Public Types

typedef unsigned char FlagT
 Type for flags. More...
 
typedef std::shared_ptr< ExposurePatchPtr
 
typedef std::shared_ptr< ExposurePatch const > ConstPtr
 

Public Member Functions

 ExposurePatch (std::shared_ptr< ExposureT const > exp, std::shared_ptr< afw::detection::Footprint const > foot, geom::Point2D const &center)
 Constructor. More...
 
 ExposurePatch (std::shared_ptr< ExposureT const > exp, afw::detection::Footprint const &standardFoot, geom::Point2D const &standardCenter, afw::geom::SkyWcs const &standardWcs)
 
std::shared_ptr< ExposureT const > const getExposure () const
 Accessors. More...
 
std::shared_ptr< afw::detection::Footprint const > const getFootprint () const
 
geom::Point2D const & getCenter () const
 
geom::AffineTransform const & fromStandard () const
 
geom::AffineTransform const & toStandard () const
 
void setCenter (geom::Point2D const &center)
 Modifiers. More...
 

Detailed Description

template<typename ExposureT>
class lsst::meas::algorithms::ExposurePatch< ExposureT >

A convenience container for the exposure, peak and footprint that will be measured.

This is more useful than a std::pair or similar.

Definition at line 42 of file ExposurePatch.h.

Member Typedef Documentation

◆ ConstPtr

template<typename ExposureT >
typedef std::shared_ptr<ExposurePatch const> lsst::meas::algorithms::ExposurePatch< ExposureT >::ConstPtr

Definition at line 46 of file ExposurePatch.h.

◆ FlagT

template<typename ExposureT >
typedef unsigned char lsst::meas::algorithms::ExposurePatch< ExposureT >::FlagT

Type for flags.

Definition at line 44 of file ExposurePatch.h.

◆ Ptr

template<typename ExposureT >
typedef std::shared_ptr<ExposurePatch> lsst::meas::algorithms::ExposurePatch< ExposureT >::Ptr

Definition at line 45 of file ExposurePatch.h.

Constructor & Destructor Documentation

◆ ExposurePatch() [1/2]

template<typename ExposureT >
lsst::meas::algorithms::ExposurePatch< ExposureT >::ExposurePatch ( std::shared_ptr< ExposureT const >  exp,
std::shared_ptr< afw::detection::Footprint const >  foot,
geom::Point2D const &  center 
)
inline

Constructor.

Parameters
expExposure of interest
footFootprint on exposure
centerCenter of object on exposure

Definition at line 49 of file ExposurePatch.h.

53 : _exp(exp), _foot(foot), _center(center), _fromStandard(), _toStandard() {}

◆ ExposurePatch() [2/2]

template<typename ExposureT >
lsst::meas::algorithms::ExposurePatch< ExposureT >::ExposurePatch ( std::shared_ptr< ExposureT const >  exp,
afw::detection::Footprint const &  standardFoot,
geom::Point2D const &  standardCenter,
afw::geom::SkyWcs const &  standardWcs 
)
inline
Parameters
expExposure of interest
standardFootFootprint on some other exposure
standardCenterCenter on that other exposure
standardWcsWCS for that other exposure

Definition at line 54 of file ExposurePatch.h.

59 : _exp(exp) {
60 afw::geom::SkyWcs const& expWcs = *exp->getWcs();
61 auto const sky = standardWcs.pixelToSky(standardCenter);
63 standardFoot.transform(standardWcs, expWcs, exp->getBBox());
64 const_cast<geom::Point2D&>(_center) = expWcs.skyToPixel(sky);
65 const_cast<geom::AffineTransform&>(_fromStandard) =
66 standardWcs.linearizePixelToSky(sky) * expWcs.linearizeSkyToPixel(sky);
67 const_cast<geom::AffineTransform&>(_toStandard) =
68 expWcs.linearizePixelToSky(sky) * standardWcs.linearizeSkyToPixel(sky);
69 }
An affine coordinate transformation consisting of a linear transformation and an offset.
T exp(T... args)

Member Function Documentation

◆ fromStandard()

template<typename ExposureT >
geom::AffineTransform const & lsst::meas::algorithms::ExposurePatch< ExposureT >::fromStandard ( ) const
inline

Definition at line 75 of file ExposurePatch.h.

75{ return _fromStandard; }

◆ getCenter()

template<typename ExposureT >
geom::Point2D const & lsst::meas::algorithms::ExposurePatch< ExposureT >::getCenter ( ) const
inline

Definition at line 74 of file ExposurePatch.h.

74{ return _center; }

◆ getExposure()

template<typename ExposureT >
std::shared_ptr< ExposureT const > const lsst::meas::algorithms::ExposurePatch< ExposureT >::getExposure ( ) const
inline

Accessors.

Definition at line 72 of file ExposurePatch.h.

72{ return _exp; }

◆ getFootprint()

template<typename ExposureT >
std::shared_ptr< afw::detection::Footprint const > const lsst::meas::algorithms::ExposurePatch< ExposureT >::getFootprint ( ) const
inline

Definition at line 73 of file ExposurePatch.h.

73{ return _foot; }

◆ setCenter()

template<typename ExposureT >
void lsst::meas::algorithms::ExposurePatch< ExposureT >::setCenter ( geom::Point2D const &  center)
inline

Modifiers.

Definition at line 79 of file ExposurePatch.h.

79{ _center = center; }

◆ toStandard()

template<typename ExposureT >
geom::AffineTransform const & lsst::meas::algorithms::ExposurePatch< ExposureT >::toStandard ( ) const
inline

Definition at line 76 of file ExposurePatch.h.

76{ return _toStandard; }

The documentation for this class was generated from the following file: