LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Private Attributes | List of all members
lsst::meas::algorithms::ExposurePatch< ExposureT > Class Template Reference

#include <ExposurePatch.h>

Public Types

typedef unsigned char FlagT
 Type for flags. More...
 
typedef boost::shared_ptr
< ExposurePatch
Ptr
 
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, afw::geom::Point2D const &center)
 Constructor. More...
 
 ExposurePatch (boost::shared_ptr< ExposureT const > exp, afw::detection::Footprint const &standardFoot, afw::geom::Point2D const &standardCenter, afw::image::Wcs const &standardWcs)
 
boost::shared_ptr< ExposureT
const > const 
getExposure () const
 Accessors. More...
 
boost::shared_ptr
< afw::detection::Footprint
const > const 
getFootprint () const
 
afw::geom::Point2D const & getCenter () const
 
afw::geom::AffineTransform const & fromStandard () const
 
afw::geom::AffineTransform const & toStandard () const
 
void setCenter (afw::geom::Point2D const &center)
 Modifiers. More...
 

Private Attributes

boost::shared_ptr< ExposureT
const > const 
_exp
 Exposure to be measured. More...
 
boost::shared_ptr
< afw::detection::Footprint
const > const 
_foot
 Footprint to be measured. More...
 
afw::geom::Point2D _center
 Center of source on exposure. More...
 
afw::geom::AffineTransform const _fromStandard
 Transform from standard WCS. More...
 
afw::geom::AffineTransform const _toStandard
 Transform to standard WCS. 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 39 of file ExposurePatch.h.

Member Typedef Documentation

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

Definition at line 43 of file ExposurePatch.h.

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

Type for flags.

Definition at line 41 of file ExposurePatch.h.

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

Definition at line 42 of file ExposurePatch.h.

Constructor & Destructor Documentation

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

Constructor.

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

Definition at line 46 of file ExposurePatch.h.

49  : _exp(exp), _foot(foot), _center(center), _fromStandard(), _toStandard() {}
boost::shared_ptr< ExposureT const > const _exp
Exposure to be measured.
Definition: ExposurePatch.h:77
afw::geom::Point2D _center
Center of source on exposure.
Definition: ExposurePatch.h:79
afw::geom::AffineTransform const _fromStandard
Transform from standard WCS.
Definition: ExposurePatch.h:80
afw::geom::AffineTransform const _toStandard
Transform to standard WCS.
Definition: ExposurePatch.h:81
boost::shared_ptr< afw::detection::Footprint const > const _foot
Footprint to be measured.
Definition: ExposurePatch.h:78
template<typename ExposureT>
lsst::meas::algorithms::ExposurePatch< ExposureT >::ExposurePatch ( boost::shared_ptr< ExposureT const >  exp,
afw::detection::Footprint const &  standardFoot,
afw::geom::Point2D const &  standardCenter,
afw::image::Wcs 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 50 of file ExposurePatch.h.

54  : _exp(exp) {
55  afw::image::Wcs const& expWcs = *exp->getWcs();
56  afw::coord::Coord::ConstPtr sky = standardWcs.pixelToSky(standardCenter);
57  const_cast<CONST_PTR(afw::detection::Footprint)&>(_foot) = standardFoot.transform(standardWcs, expWcs,
58  exp->getBBox());
59  const_cast<afw::geom::Point2D&>(_center) = expWcs.skyToPixel(*sky);
60  const_cast<afw::geom::AffineTransform&>(_fromStandard) = standardWcs.linearizePixelToSky(*sky) *
61  expWcs.linearizeSkyToPixel(*sky);
62  const_cast<afw::geom::AffineTransform&>(_toStandard) = expWcs.linearizePixelToSky(*sky) *
63  standardWcs.linearizeSkyToPixel(*sky);
64  }
boost::shared_ptr< Coord const > ConstPtr
Definition: Coord.h:74
Point< double, 2 > Point2D
Definition: Point.h:277
boost::shared_ptr< ExposureT const > const _exp
Exposure to be measured.
Definition: ExposurePatch.h:77
#define CONST_PTR(...)
Definition: base.h:47
afw::geom::Point2D _center
Center of source on exposure.
Definition: ExposurePatch.h:79
lsst::afw::image::Wcs Wcs
Definition: Wcs.cc:59
lsst::afw::detection::Footprint Footprint
Definition: Source.h:61
afw::geom::AffineTransform const _fromStandard
Transform from standard WCS.
Definition: ExposurePatch.h:80
afw::geom::AffineTransform const _toStandard
Transform to standard WCS.
Definition: ExposurePatch.h:81
boost::shared_ptr< afw::detection::Footprint const > const _foot
Footprint to be measured.
Definition: ExposurePatch.h:78

Member Function Documentation

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

Definition at line 70 of file ExposurePatch.h.

70 { return _fromStandard; }
afw::geom::AffineTransform const _fromStandard
Transform from standard WCS.
Definition: ExposurePatch.h:80
template<typename ExposureT>
afw::geom::Point2D const& lsst::meas::algorithms::ExposurePatch< ExposureT >::getCenter ( ) const
inline

Definition at line 69 of file ExposurePatch.h.

69 { return _center; }
afw::geom::Point2D _center
Center of source on exposure.
Definition: ExposurePatch.h:79
template<typename ExposureT>
boost::shared_ptr< ExposureT const> const lsst::meas::algorithms::ExposurePatch< ExposureT >::getExposure ( ) const
inline

Accessors.

Definition at line 67 of file ExposurePatch.h.

67 { return _exp; }
boost::shared_ptr< ExposureT const > const _exp
Exposure to be measured.
Definition: ExposurePatch.h:77
template<typename ExposureT>
boost::shared_ptr< afw::detection::Footprint const> const lsst::meas::algorithms::ExposurePatch< ExposureT >::getFootprint ( ) const
inline

Definition at line 68 of file ExposurePatch.h.

68 { return _foot; }
boost::shared_ptr< afw::detection::Footprint const > const _foot
Footprint to be measured.
Definition: ExposurePatch.h:78
template<typename ExposureT>
void lsst::meas::algorithms::ExposurePatch< ExposureT >::setCenter ( afw::geom::Point2D const &  center)
inline

Modifiers.

Definition at line 74 of file ExposurePatch.h.

74 { _center = center; }
afw::geom::Point2D _center
Center of source on exposure.
Definition: ExposurePatch.h:79
template<typename ExposureT>
afw::geom::AffineTransform const& lsst::meas::algorithms::ExposurePatch< ExposureT >::toStandard ( ) const
inline

Definition at line 71 of file ExposurePatch.h.

71 { return _toStandard; }
afw::geom::AffineTransform const _toStandard
Transform to standard WCS.
Definition: ExposurePatch.h:81

Member Data Documentation

template<typename ExposureT>
afw::geom::Point2D lsst::meas::algorithms::ExposurePatch< ExposureT >::_center
private

Center of source on exposure.

Definition at line 79 of file ExposurePatch.h.

template<typename ExposureT>
boost::shared_ptr< ExposureT const> const lsst::meas::algorithms::ExposurePatch< ExposureT >::_exp
private

Exposure to be measured.

Definition at line 77 of file ExposurePatch.h.

template<typename ExposureT>
boost::shared_ptr< afw::detection::Footprint const> const lsst::meas::algorithms::ExposurePatch< ExposureT >::_foot
private

Footprint to be measured.

Definition at line 78 of file ExposurePatch.h.

template<typename ExposureT>
afw::geom::AffineTransform const lsst::meas::algorithms::ExposurePatch< ExposureT >::_fromStandard
private

Transform from standard WCS.

Definition at line 80 of file ExposurePatch.h.

template<typename ExposureT>
afw::geom::AffineTransform const lsst::meas::algorithms::ExposurePatch< ExposureT >::_toStandard
private

Transform to standard WCS.

Definition at line 81 of file ExposurePatch.h.


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