LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Types | Public Member Functions | Protected Attributes | List of all members
lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocator< ImageLocator, MaskLocator, VarianceLocator > Class Template Reference

A locator for the MaskedImage. More...

#include <MaskedImage.h>

Inheritance diagram for lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocator< ImageLocator, MaskLocator, VarianceLocator >:
lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >

Public Types

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

Public Member Functions

 MaskedImageLocator (ImageLocator &img, MaskLocator &msk, VarianceLocator &var)
 
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 ()
 Return an iterator that can be used to move (or dereference) a locator. More...
 
y_iterator y ()
 Return an iterator that can be used to move (or dereference) a locator. More...
 
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...
 
IMVLocator const & getLoc () const
 

Protected Attributes

IMVLocator _loc
 

Detailed Description

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

A locator for the MaskedImage.

A locator for a MaskedImage.

Definition at line 498 of file MaskedImage.h.

Member Typedef Documentation

◆ IMVCachedLocation

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>
using lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::IMVCachedLocation = typename boost::tuple<typename ImageLocator::cached_location_t, typename MaskLocator::cached_location_t, typename VarianceLocator::cached_location_t>
inherited

Definition at line 347 of file MaskedImage.h.

◆ PixelTVec

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>
using lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::PixelTVec = typename boost::mpl::vector<ImagePixelT, MaskPixelT, VariancePixelT>
inherited

Definition at line 414 of file MaskedImage.h.

◆ x_iterator

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>
using lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::x_iterator = _x_or_y_iterator<apply_x>
inherited

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

Definition at line 349 of file MaskedImage.h.

◆ y_iterator

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>
using lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::y_iterator = _x_or_y_iterator<apply_y>
inherited

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

Definition at line 351 of file MaskedImage.h.

Constructor & Destructor Documentation

◆ MaskedImageLocator()

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

Definition at line 502 of file MaskedImage.h.

503  : MaskedImageLocatorBase_t(img, msk, var) {}

Member Function Documentation

◆ apply_IMV() [1/3]

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 ( )
inlineinherited

Definition at line 423 of file MaskedImage.h.

423  {
424  return _loc.template get<N::value>()[0][0];
425  }

◆ apply_IMV() [2/3]

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)
inlineinherited

Definition at line 417 of file MaskedImage.h.

418  {
419  return _loc.template get<N::value>()[cached_loc._imv.template get<N::value>()][0];
420  }

◆ apply_IMV() [3/3]

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 
)
inlineinherited

Definition at line 428 of file MaskedImage.h.

428  {
429  return _loc.template get<N::value>()(x, y)[0];
430  }
y_iterator y()
Return an iterator that can be used to move (or dereference) a locator.
Definition: MaskedImage.h:405
x_iterator x()
Return an iterator that can be used to move (or dereference) a locator.
Definition: MaskedImage.h:399

◆ cache_location()

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
inlineinherited

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

Definition at line 408 of file MaskedImage.h.

408 { return cached_location_t(_loc, x, y); }

◆ getLoc()

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 const& lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::getLoc ( ) const
inlineinherited

Definition at line 490 of file MaskedImage.h.

490 { return _loc; }

◆ image() [1/3]

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 ( )
inlineinherited

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

Definition at line 439 of file MaskedImage.h.

439 { return apply_IMV<boost::mpl::int_<0>>(); }

◆ image() [2/3]

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)
inlineinherited

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

Definition at line 435 of file MaskedImage.h.

435  {
436  return apply_IMV<boost::mpl::int_<0>>(cached_loc);
437  }

◆ image() [3/3]

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 
)
inlineinherited

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

Definition at line 441 of file MaskedImage.h.

441 { return apply_IMV<boost::mpl::int_<0>>(x, y); }

◆ mask() [1/3]

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 ( )
inlineinherited

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

Definition at line 448 of file MaskedImage.h.

448 { return apply_IMV<boost::mpl::int_<1>>(); }

◆ mask() [2/3]

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)
inlineinherited

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

Definition at line 444 of file MaskedImage.h.

444  {
445  return apply_IMV<boost::mpl::int_<1>>(cached_loc);
446  }

◆ mask() [3/3]

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 
)
inlineinherited

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

Definition at line 450 of file MaskedImage.h.

450 { return apply_IMV<boost::mpl::int_<1>>(x, y); }

◆ operator!=()

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)
inlineinherited

Return true iff two locators are not equal.

Definition at line 468 of file MaskedImage.h.

468 { return !(*this == rhs); }

◆ operator()()

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 
)
inlineinherited

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

Definition at line 383 of file MaskedImage.h.

383  {
384  return Pixel(_loc.template get<0>()(x, y)[0], _loc.template get<1>()(x, y)[0],
385  _loc.template get<2>()(x, y)[0]);
386  }
lsst::afw::image::pixel::Pixel< ImagePixelT, MaskPixelT, VariancePixelT > Pixel
A Pixel in the MaskedImage.
Definition: MaskedImage.h:111

◆ operator*()

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* ( )
inlineinherited

Dereference a locator, returning a Pixel.

Definition at line 377 of file MaskedImage.h.

377  {
378  return Pixel(_loc.template get<0>().x()[0][0], _loc.template get<1>().x()[0][0],
379  _loc.template get<2>().x()[0][0]);
380  }

◆ operator+=() [1/2]

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)
inlineinherited

Increment the locator's x and y positions by p

Definition at line 480 of file MaskedImage.h.

480  {
481  _loc.template get<0>() += p;
482  _loc.template get<1>() += p;
483  _loc.template get<2>() += p;
484 
485  return *this;
486  }

◆ operator+=() [2/2]

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)
inlineinherited

Increment the locator's x and y positions by p

Definition at line 475 of file MaskedImage.h.

475  {
476  return operator+=(detail::difference_type(p.first, p.second));
477  }
MaskedImageLocatorBase & operator+=(pair2I const &p)
Increment the locator's x and y positions by p
Definition: MaskedImage.h:475

◆ operator<()

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)
inlineinherited

Return true iff lhs is less than rhs.

Definition at line 470 of file MaskedImage.h.

470  {
471  return _loc.template get<0>() < rhs._loc.template get<0>();
472  }

◆ operator==()

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)
inlineinherited

Return true iff two locators are equal.

Definition at line 464 of file MaskedImage.h.

464  {
465  return _loc.template get<0>() == rhs._loc.template get<0>();
466  }

◆ operator[]()

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)
inlineinherited

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

Definition at line 390 of file MaskedImage.h.

390  {
391  return Pixel(_loc.template get<0>()[cached_loc._imv.template get<0>()][0],
392  _loc.template get<1>()[cached_loc._imv.template get<1>()][0],
393  _loc.template get<2>()[cached_loc._imv.template get<2>()][0]);
394  }

◆ variance() [1/3]

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 ( )
inlineinherited

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

Definition at line 457 of file MaskedImage.h.

457 { return apply_IMV<boost::mpl::int_<2>>(); }

◆ variance() [2/3]

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)
inlineinherited

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

Definition at line 453 of file MaskedImage.h.

453  {
454  return apply_IMV<boost::mpl::int_<2>>(cached_loc);
455  }

◆ variance() [3/3]

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 
)
inlineinherited

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

Definition at line 459 of file MaskedImage.h.

459  {
460  return apply_IMV<boost::mpl::int_<2>>(x, y);
461  }

◆ x()

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 ( )
inlineinherited

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 399 of file MaskedImage.h.

399 { return x_iterator(this); }
_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:349

◆ y()

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 ( )
inlineinherited

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 405 of file MaskedImage.h.

405 { return y_iterator(this); }
_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:351

Member Data Documentation

◆ _loc

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
protectedinherited

Definition at line 493 of file MaskedImage.h.


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