LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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:73
Point< double, 2 > Point2D
Definition: Point.h:286
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
lsst::afw::image::Wcs Wcs
Definition: Wcs.cc:60
lsst::afw::detection::Footprint Footprint
Definition: Source.h:61
#define CONST_PTR(...)
Definition: base.h:47
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: