LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+a41d3748ce,g1470d8bcf6+6be6c9203b,g2079a07aa2+14824f138e,g212a7c68fe+a4f2ea4efa,g2305ad1205+72971fe858,g295015adf3+ab2c85acae,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+31b3a28dff,g487adcacf7+082e807817,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+b2918d57ae,g5a732f18d5+66d966b544,g64a986408d+a41d3748ce,g858d7b2824+a41d3748ce,g8a8a8dda67+a6fc98d2e7,g99cad8db69+7fe4acdf18,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+84af8b3ff8,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gba4ed39666+9664299f35,gbb8dafda3b+d8d527deb2,gc07e1c2157+b2dbe6b631,gc120e1dc64+61440b2abb,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+31b3a28dff,gdaeeff99f8+a38ce5ea23,ge6526c86ff+39927bb362,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+a41d3748ce,v24.1.5.rc1
LSST Data Management Base Package
Loading...
Searching...
No Matches
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)
 
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)
 
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.
 
Pixel operator() (int x, int y)
 Dereference a locator, returning a Pixel offset by (x, y) from the locator.
 
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
 
x_iterator x ()
 Return an iterator that can be used to move (or dereference) a locator.
 
y_iterator y ()
 Return an iterator that can be used to move (or dereference) a locator.
 
cached_location_t cache_location (int x, int y) const
 Create a cached_location_t offset by (x, y) from locator.
 
template<typename N >
Ref< typenameboost::mpl::at< PixelTVec, N >::type >::type apply_IMV (cached_location_t const &cached_loc)
 
template<typename N >
Ref< typenameboost::mpl::at< PixelTVec, N >::type >::type apply_IMV ()
 
template<typename N >
Ref< typenameboost::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
 
Ref< ImagePixelT >::type image ()
 Return a reference to the image at the current position of the locator.
 
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.
 
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
 
Ref< MaskPixelT >::type mask ()
 Return a reference to the mask at the current position of the locator.
 
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.
 
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
 
Ref< VariancePixelT >::type variance ()
 Return a reference to the variance at the current position of the locator.
 
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.
 
bool operator== (MaskedImageLocatorBase const &rhs)
 Return true iff two locators are equal.
 
bool operator!= (MaskedImageLocatorBase const &rhs)
 Return true iff two locators are not equal.
 
bool operator< (MaskedImageLocatorBase const &rhs)
 Return true iff lhs is less than rhs.
 
MaskedImageLocatorBaseoperator+= (pair2I const &p)
 Increment the locator's x and y positions by p
 
MaskedImageLocatorBaseoperator+= (detail::difference_type p)
 Increment the locator's x and y positions by p
 
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 499 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 348 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 415 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 350 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 352 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 503 of file MaskedImage.h.

504 : 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< typenameboost::mpl::at< PixelTVec, N >::type >::type lsst::afw::image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImageLocatorBase< ImageLocator, MaskLocator, VarianceLocator, Ref >::apply_IMV ( )
inlineinherited

Definition at line 424 of file MaskedImage.h.

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

◆ 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< typenameboost::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 418 of file MaskedImage.h.

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

◆ 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< typenameboost::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 429 of file MaskedImage.h.

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

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

409{ 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 491 of file MaskedImage.h.

491{ 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 440 of file MaskedImage.h.

440{ 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 436 of file MaskedImage.h.

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

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

442{ 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 449 of file MaskedImage.h.

449{ 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 445 of file MaskedImage.h.

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

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

451{ 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 469 of file MaskedImage.h.

469{ 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 384 of file MaskedImage.h.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

458{ 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 454 of file MaskedImage.h.

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

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

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

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

400{ 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)

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

406{ 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)

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


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