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
Classes | Public Types | Public Member Functions | Protected Attributes | Private Types | Friends | List of all members
lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref > Class Template Reference

The base class for MaskedImageLocators (const and non-const) More...

#include <MaskedImage.h>

Classes

class  _x_or_y_iterator
 
class  apply_x
 
class  apply_y
 
class  cached_location_t
 A saved relative position, providing efficient access to neighbouring pixels. More...
 

Public Types

typedef boost::tuple< typename
ImageLocator::cached_location_t,
typename
MaskLocator::cached_location_t,
typename
VarianceLocator::cached_location_t > 
IMVCachedLocation
 
typedef _x_or_y_iterator< apply_xx_iterator
 An x_iterator that provides a view of the xy_locator (i.e. advancing one advances the other) More...
 
typedef _x_or_y_iterator< apply_yy_iterator
 A y_iterator that provides a view of the xy_locator (i.e. advancing one advances the other) More...
 
typedef boost::mpl::vector
< ImagePixelT, MaskPixelT,
VariancePixelT > 
PixelTVec
 

Public Member Functions

 MaskedImageLocatorBase (ImageLocator const &img, MaskLocator const &msk, VarianceLocator const &var)
 Construct a MaskedImageLocator from image/mask/variance locators. More...
 
Pixel operator* ()
 Dereference a locator, returning a Pixel. More...
 
Pixel operator() (int x, int y)
 Dereference a locator, returning a Pixel offset by (x, y) from the locator. More...
 
Pixel operator[] (cached_location_t const &cached_loc)
 Dereference a locator, returning a Pixel offset by the amount set when we created the cached_location_t. More...
 
x_iterator x ()
 
y_iterator y ()
 
cached_location_t cache_location (int x, int y) const
 Create a cached_location_t offset by (x, y) from locator. More...
 
template<typename N >
Ref< typename boost::mpl::at
< PixelTVec, N >::type >::type 
apply_IMV (cached_location_t const &cached_loc)
 
template<typename N >
Ref< typename boost::mpl::at
< PixelTVec, N >::type >::type 
apply_IMV ()
 
template<typename N >
Ref< typename boost::mpl::at
< PixelTVec, N >::type >::type 
apply_IMV (int x, int y)
 
Ref< ImagePixelT >::type image (cached_location_t const &cached_loc)
 Return a reference to the image at the offset set when we created the cached_location_t. More...
 
Ref< ImagePixelT >::type image ()
 Return a reference to the image at the current position of the locator. More...
 
Ref< ImagePixelT >::type image (int x, int y)
 Return a reference to the image offset by (x, y) from the current position of the locator. More...
 
Ref< MaskPixelT >::type mask (cached_location_t const &cached_loc)
 Return a reference to the mask at the offset set when we created the cached_location_t. More...
 
Ref< MaskPixelT >::type mask ()
 Return a reference to the mask at the current position of the locator. More...
 
Ref< MaskPixelT >::type mask (int x, int y)
 Return a reference to the mask offset by (x, y) from the current position of the locator. More...
 
Ref< VariancePixelT >::type variance (cached_location_t const &cached_loc)
 Return a reference to the variance at the offset set when we created the cached_location_t. More...
 
Ref< VariancePixelT >::type variance ()
 Return a reference to the variance at the current position of the locator. More...
 
Ref< VariancePixelT >::type variance (int x, int y)
 Return a reference to the variance offset by (x, y) from the current position of the locator. More...
 
bool operator== (MaskedImageLocatorBase const &rhs)
 Return true iff two locators are equal. More...
 
bool operator!= (MaskedImageLocatorBase const &rhs)
 Return true iff two locators are not equal. More...
 
bool operator< (MaskedImageLocatorBase const &rhs)
 Return true iff lhs is less than rhs. More...
 
MaskedImageLocatorBaseoperator+= (pair2I const &p)
 Increment the locator's x and y positions by p. More...
 
MaskedImageLocatorBaseoperator+= (detail::difference_type p)
 Increment the locator's x and y positions by p. More...
 

Protected Attributes

IMVLocator _loc
 

Private Types

typedef boost::tuple
< ImageLocator, MaskLocator,
VarianceLocator > 
IMVLocator
 

Friends

template<typename , typename , typename >
class const_MaskedImageLocator
 

Detailed Description

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
class lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >

The base class for MaskedImageLocators (const and non-const)

Definition at line 274 of file MaskedImage.h.

Member Typedef Documentation

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
typedef boost::tuple<typename ImageLocator::cached_location_t, typename MaskLocator::cached_location_t, typename VarianceLocator::cached_location_t> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::IMVCachedLocation

Definition at line 366 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
typedef boost::tuple<ImageLocator, MaskLocator, VarianceLocator> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::IMVLocator
private

Definition at line 275 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
typedef boost::mpl::vector<ImagePixelT, MaskPixelT, VariancePixelT> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::PixelTVec

Definition at line 436 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
typedef _x_or_y_iterator<apply_x> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::x_iterator

An x_iterator that provides a view of the xy_locator (i.e. advancing one advances the other)

Definition at line 368 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
typedef _x_or_y_iterator<apply_y> lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::y_iterator

A y_iterator that provides a view of the xy_locator (i.e. advancing one advances the other)

Definition at line 370 of file MaskedImage.h.

Constructor & Destructor Documentation

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::MaskedImageLocatorBase ( ImageLocator const &  img,
MaskLocator const &  msk,
VarianceLocator const &  var 
)
inline

Construct a MaskedImageLocator from image/mask/variance locators.

Definition at line 388 of file MaskedImage.h.

388  :
389  _loc(img, msk, var) {
390  ;
391  }

Member Function Documentation

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
template<typename N >
Ref<typename boost::mpl::at<PixelTVec, N>::type>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::apply_IMV ( cached_location_t const &  cached_loc)
inline

Definition at line 439 of file MaskedImage.h.

439  {
440  return _loc.template get<N::value>()[cached_loc._imv.template get<N::value>()][0];
441  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
template<typename N >
Ref<typename boost::mpl::at<PixelTVec, N>::type>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::apply_IMV ( )
inline

Definition at line 444 of file MaskedImage.h.

444  {
445  return _loc.template get<N::value>()[0][0];
446  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
template<typename N >
Ref<typename boost::mpl::at<PixelTVec, N>::type>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::apply_IMV ( int  x,
int  y 
)
inline

Definition at line 449 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
cached_location_t lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::cache_location ( int  x,
int  y 
) const
inline

Create a cached_location_t offset by (x, y) from locator.

Definition at line 428 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<ImagePixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::image ( cached_location_t const &  cached_loc)
inline

Return a reference to the image at the offset set when we created the cached_location_t.

Definition at line 456 of file MaskedImage.h.

456  {
457  return apply_IMV<boost::mpl::int_<0> >(cached_loc);
458  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<ImagePixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::image ( )
inline

Return a reference to the image at the current position of the locator.

Definition at line 460 of file MaskedImage.h.

460  {
461  return apply_IMV<boost::mpl::int_<0> >();
462  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<ImagePixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::image ( int  x,
int  y 
)
inline

Return a reference to the image offset by (x, y) from the current position of the locator.

Definition at line 464 of file MaskedImage.h.

464  {
465  return apply_IMV<boost::mpl::int_<0> >(x, y);
466  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<MaskPixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::mask ( cached_location_t const &  cached_loc)
inline

Return a reference to the mask at the offset set when we created the cached_location_t.

Definition at line 469 of file MaskedImage.h.

469  {
470  return apply_IMV<boost::mpl::int_<1> >(cached_loc);
471  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<MaskPixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::mask ( )
inline

Return a reference to the mask at the current position of the locator.

Definition at line 473 of file MaskedImage.h.

473  {
474  return apply_IMV<boost::mpl::int_<1> >();
475  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<MaskPixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::mask ( int  x,
int  y 
)
inline

Return a reference to the mask offset by (x, y) from the current position of the locator.

Definition at line 477 of file MaskedImage.h.

477  {
478  return apply_IMV<boost::mpl::int_<1> >(x, y);
479  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
bool lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::operator!= ( MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref > const &  rhs)
inline

Return true iff two locators are not equal.

Definition at line 499 of file MaskedImage.h.

499  {
500  return !(*this == rhs);
501  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Pixel lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::operator() ( int  x,
int  y 
)
inline

Dereference a locator, returning a Pixel offset by (x, y) from the locator.

Definition at line 401 of file MaskedImage.h.

401  {
402  return Pixel(_loc.template get<0>()(x, y)[0],
403  _loc.template get<1>()(x, y)[0],
404  _loc.template get<2>()(x, y)[0]);
405  }
lsst::afw::image::pixel::Pixel< ImagePixelT, MaskPixelT, VariancePixelT > Pixel
A Pixel in the MaskedImage.
Definition: MaskedImage.h:115
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Pixel lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::operator* ( )
inline

Dereference a locator, returning a Pixel.

Definition at line 394 of file MaskedImage.h.

394  {
395  return Pixel(_loc.template get<0>().x()[0][0],
396  _loc.template get<1>().x()[0][0],
397  _loc.template get<2>().x()[0][0]);
398  }
lsst::afw::image::pixel::Pixel< ImagePixelT, MaskPixelT, VariancePixelT > Pixel
A Pixel in the MaskedImage.
Definition: MaskedImage.h:115
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
MaskedImageLocatorBase& lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::operator+= ( pair2I const &  p)
inline

Increment the locator's x and y positions by p.

Definition at line 508 of file MaskedImage.h.

508  {
509  return operator+=(detail::difference_type(p.first, p.second));
510  }
MaskedImageLocatorBase & operator+=(pair2I const &p)
Increment the locator&#39;s x and y positions by p.
Definition: MaskedImage.h:508
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
MaskedImageLocatorBase& lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::operator+= ( detail::difference_type  p)
inline

Increment the locator's x and y positions by p.

Definition at line 513 of file MaskedImage.h.

513  {
514  _loc.template get<0>() += p;
515  _loc.template get<1>() += p;
516  _loc.template get<2>() += p;
517 
518  return *this;
519  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
bool lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::operator< ( MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref > const &  rhs)
inline

Return true iff lhs is less than rhs.

Definition at line 503 of file MaskedImage.h.

503  {
504  return _loc.template get<0>() < rhs._loc.template get<0>();
505  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
bool lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::operator== ( MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref > const &  rhs)
inline

Return true iff two locators are equal.

Definition at line 495 of file MaskedImage.h.

495  {
496  return _loc.template get<0>() == rhs._loc.template get<0>();
497  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Pixel lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::operator[] ( cached_location_t const &  cached_loc)
inline

Dereference a locator, returning a Pixel offset by the amount set when we created the cached_location_t.

Definition at line 408 of file MaskedImage.h.

408  {
409  return Pixel(_loc.template get<0>()[cached_loc._imv.template get<0>()][0],
410  _loc.template get<1>()[cached_loc._imv.template get<1>()][0],
411  _loc.template get<2>()[cached_loc._imv.template get<2>()][0]);
412  }
lsst::afw::image::pixel::Pixel< ImagePixelT, MaskPixelT, VariancePixelT > Pixel
A Pixel in the MaskedImage.
Definition: MaskedImage.h:115
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<VariancePixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::variance ( cached_location_t const &  cached_loc)
inline

Return a reference to the variance at the offset set when we created the cached_location_t.

Definition at line 482 of file MaskedImage.h.

482  {
483  return apply_IMV<boost::mpl::int_<2> >(cached_loc);
484  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<VariancePixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::variance ( )
inline

Return a reference to the variance at the current position of the locator.

Definition at line 486 of file MaskedImage.h.

486  {
487  return apply_IMV<boost::mpl::int_<2> >();
488  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
Ref<VariancePixelT>::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::variance ( int  x,
int  y 
)
inline

Return a reference to the variance offset by (x, y) from the current position of the locator.

Definition at line 490 of file MaskedImage.h.

490  {
491  return apply_IMV<boost::mpl::int_<2> >(x, y);
492  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
x_iterator lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::x ( )
inline

Return an iterator that can be used to move (or dereference) a locator

Note
this x_locator is xy_locator::x_locator, not MaskedImage::x_locator

Definition at line 416 of file MaskedImage.h.

416  {
417  return x_iterator(this);
418  }
_x_or_y_iterator< apply_x > x_iterator
An x_iterator that provides a view of the xy_locator (i.e. advancing one advances the other) ...
Definition: MaskedImage.h:368
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
y_iterator lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::y ( )
inline

Return an iterator that can be used to move (or dereference) a locator

Note
this y_locator is xy_locator::y_locator, not MaskedImage::y_locator

Definition at line 423 of file MaskedImage.h.

423  {
424  return y_iterator(this);
425  }
_x_or_y_iterator< apply_y > y_iterator
A y_iterator that provides a view of the xy_locator (i.e. advancing one advances the other) ...
Definition: MaskedImage.h:370

Friends And Related Function Documentation

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
template<typename , typename , typename >
friend class const_MaskedImageLocator
friend

Definition at line 362 of file MaskedImage.h.

Member Data Documentation

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename ImageLocator, typename MaskLocator, typename VarianceLocator, template< typename > class Ref = Reference>
IMVLocator lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::_loc
protected

Definition at line 521 of file MaskedImage.h.


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