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 Member Functions | Private Attributes | List of all members
lsst::afw::math::detail::AffineTransformPositionFunctor Class Reference

Derived functor class to transform pixel position for a destination image to its position in the source image via an AffineTransform. More...

#include <PositionFunctor.h>

Inheritance diagram for lsst::afw::math::detail::AffineTransformPositionFunctor:
lsst::afw::math::detail::PositionFunctor

Public Member Functions

 AffineTransformPositionFunctor (lsst::afw::geom::Point2D const &destXY0, lsst::afw::geom::AffineTransform const &affineTransform)
 
virtual lsst::afw::geom::Point2D operator() (int destCol, int destRow) const
 
- Public Member Functions inherited from lsst::afw::math::detail::PositionFunctor
 PositionFunctor ()
 
virtual ~PositionFunctor ()
 

Private Attributes

lsst::afw::geom::Point2D const & _destXY0
 
lsst::afw::geom::AffineTransform _affineTransform
 

Additional Inherited Members

- Public Types inherited from lsst::afw::math::detail::PositionFunctor
typedef boost::shared_ptr
< PositionFunctor
Ptr
 

Detailed Description

Derived functor class to transform pixel position for a destination image to its position in the source image via an AffineTransform.

Definition at line 109 of file PositionFunctor.h.

Constructor & Destructor Documentation

lsst::afw::math::detail::AffineTransformPositionFunctor::AffineTransformPositionFunctor ( lsst::afw::geom::Point2D const &  destXY0,
lsst::afw::geom::AffineTransform const &  affineTransform 
)
inline
Parameters
destXY0xy0 of destination image
affineTransformaffine transformation mapping source position to destination position

Definition at line 114 of file PositionFunctor.h.

118  :
119  PositionFunctor(),
120  _destXY0(destXY0),
121  _affineTransform() {
122  _affineTransform = affineTransform.invert();
123  }
AffineTransform const invert() const

Member Function Documentation

virtual lsst::afw::geom::Point2D lsst::afw::math::detail::AffineTransformPositionFunctor::operator() ( int  destCol,
int  destRow 
) const
inlinevirtual

Implements lsst::afw::math::detail::PositionFunctor.

Definition at line 125 of file PositionFunctor.h.

125  {
126  double const col = lsst::afw::image::indexToPosition(destCol + _destXY0[0]);
127  double const row = lsst::afw::image::indexToPosition(destRow + _destXY0[1]);
129  return p;
130  }
double indexToPosition(double ind)
Convert image index to image position.
Definition: ImageUtils.h:54
int row
Definition: CR.cc:153
int col
Definition: CR.cc:152

Member Data Documentation

lsst::afw::geom::AffineTransform lsst::afw::math::detail::AffineTransformPositionFunctor::_affineTransform
private

Definition at line 133 of file PositionFunctor.h.

lsst::afw::geom::Point2D const& lsst::afw::math::detail::AffineTransformPositionFunctor::_destXY0
private

Definition at line 132 of file PositionFunctor.h.


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