LSST Applications  21.0.0+04719a4bac,21.0.0-1-ga51b5d4+f5e6047307,21.0.0-11-g2b59f77+a9c1acf22d,21.0.0-11-ga42c5b2+86977b0b17,21.0.0-12-gf4ce030+76814010d2,21.0.0-13-g1721dae+760e7a6536,21.0.0-13-g3a573fe+768d78a30a,21.0.0-15-g5a7caf0+f21cbc5713,21.0.0-16-g0fb55c1+b60e2d390c,21.0.0-19-g4cded4ca+71a93a33c0,21.0.0-2-g103fe59+bb20972958,21.0.0-2-g45278ab+04719a4bac,21.0.0-2-g5242d73+3ad5d60fb1,21.0.0-2-g7f82c8f+8babb168e8,21.0.0-2-g8f08a60+06509c8b61,21.0.0-2-g8faa9b5+616205b9df,21.0.0-2-ga326454+8babb168e8,21.0.0-2-gde069b7+5e4aea9c2f,21.0.0-2-gecfae73+1d3a86e577,21.0.0-2-gfc62afb+3ad5d60fb1,21.0.0-25-g1d57be3cd+e73869a214,21.0.0-3-g357aad2+ed88757d29,21.0.0-3-g4a4ce7f+3ad5d60fb1,21.0.0-3-g4be5c26+3ad5d60fb1,21.0.0-3-g65f322c+e0b24896a3,21.0.0-3-g7d9da8d+616205b9df,21.0.0-3-ge02ed75+a9c1acf22d,21.0.0-4-g591bb35+a9c1acf22d,21.0.0-4-g65b4814+b60e2d390c,21.0.0-4-gccdca77+0de219a2bc,21.0.0-4-ge8a399c+6c55c39e83,21.0.0-5-gd00fb1e+05fce91b99,21.0.0-6-gc675373+3ad5d60fb1,21.0.0-64-g1122c245+4fb2b8f86e,21.0.0-7-g04766d7+cd19d05db2,21.0.0-7-gdf92d54+04719a4bac,21.0.0-8-g5674e7b+d1bd76f71f,master-gac4afde19b+a9c1acf22d,w.2021.13
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 boost::shared_ptr< ExposurePatchPtr
 
typedef boost::shared_ptr< ExposurePatch const > ConstPtr
 

Public Member Functions

 ExposurePatch (boost::shared_ptr< ExposureT const > exp, boost::shared_ptr< afw::detection::Footprint const > foot, geom::Point2D const &center)
 Constructor. More...
 
 ExposurePatch (boost::shared_ptr< ExposureT const > exp, afw::detection::Footprint const &standardFoot, geom::Point2D const &standardCenter, afw::geom::SkyWcs const &standardWcs)
 
boost::shared_ptr< ExposureT const > const getExposure () const
 Accessors. More...
 
boost::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 boost::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 boost::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 ( boost::shared_ptr< ExposureT const >  exp,
boost::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 ( boost::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);
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) =
66  standardWcs.linearizePixelToSky(sky) * expWcs.linearizeSkyToPixel(sky);
67  const_cast<geom::AffineTransform&>(_toStandard) =
68  expWcs.linearizePixelToSky(sky) * standardWcs.linearizeSkyToPixel(sky);
69  }
#define CONST_PTR(...)
A shared pointer to a const object.
Definition: base.h:47
An affine coordinate transformation consisting of a linear transformation and an offset.
T exp(T... args)
lsst::afw::detection::Footprint Footprint
Definition: Source.h:59

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 >
boost::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 >
boost::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: