LSST Applications 24.1.6,g063fba187b+56b85ce14a,g0f08755f38+df8a265115,g12f32b3c4e+891a09f10d,g1524ad2192+7a5d7b3fbd,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g28da252d5a+07cb1400be,g2bbee38e9b+ae03bbfc84,g2bc492864f+ae03bbfc84,g3156d2b45e+6e55a43351,g347aa1857d+ae03bbfc84,g35bb328faa+a8ce1bb630,g3a166c0a6a+ae03bbfc84,g3e281a1b8c+c5dd892a6c,g414038480c+6b9177ef31,g41af890bb2+8f257c4c0b,g781aacb6e4+a8ce1bb630,g7af13505b9+7137b3b17d,g80478fca09+6df6903293,g82479be7b0+091ce1d07f,g858d7b2824+df8a265115,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,g9726552aa6+414189b318,ga5288a1d22+4a2bca08d7,gacef1a1666+c9a8ff65f4,gb58c049af0+d64f4d3760,gbcfae0f0a0+de1d42d831,gc28159a63d+ae03bbfc84,gcf0d15dbbd+72117bf34e,gda6a2b7d83+72117bf34e,gdaeeff99f8+1711a396fd,ge500cccec5+c8c9c9af63,ge79ae78c31+ae03bbfc84,gf0baf85859+c1f95f4921,gfa517265be+df8a265115,gfa999e8aa5+17cd334064,gfb92a5be7c+df8a265115
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
lsst::afw::geom::details::ImageNdGetter< T, N, C > Class Template Referencefinal

#include <SpanSetFunctorGetters.h>

Public Types

using Reference = typename ndarray::Array<T, N, C>::Reference::Reference
 

Public Member Functions

 ImageNdGetter (ndarray::Array< T, N, C > const &array, lsst::geom::Point2I const &xy0)
 
 ImageNdGetter (ImageNdGetter const &)=default
 
 ImageNdGetter (ImageNdGetter &&)=default
 
ImageNdGetteroperator= (ImageNdGetter const &)=default
 
ImageNdGetteroperator= (ImageNdGetter &&)=default
 
 ~ImageNdGetter ()=default
 
void checkExtents (lsst::geom::Box2I const &bbox, int area) const
 
void setSpan (Span const &span)
 
void increment ()
 
Reference get ()
 

Detailed Description

template<typename T, int N, int C>
class lsst::afw::geom::details::ImageNdGetter< T, N, C >

Definition at line 155 of file SpanSetFunctorGetters.h.

Member Typedef Documentation

◆ Reference

template<typename T , int N, int C>
using lsst::afw::geom::details::ImageNdGetter< T, N, C >::Reference = typename ndarray::Array<T, N, C>::Reference::Reference

Definition at line 158 of file SpanSetFunctorGetters.h.

Constructor & Destructor Documentation

◆ ImageNdGetter() [1/3]

template<typename T , int N, int C>
lsst::afw::geom::details::ImageNdGetter< T, N, C >::ImageNdGetter ( ndarray::Array< T, N, C > const & array,
lsst::geom::Point2I const & xy0 )
inline

Definition at line 160 of file SpanSetFunctorGetters.h.

161 : _array(array), _xy0(xy0) {}

◆ ImageNdGetter() [2/3]

template<typename T , int N, int C>
lsst::afw::geom::details::ImageNdGetter< T, N, C >::ImageNdGetter ( ImageNdGetter< T, N, C > const & )
default

◆ ImageNdGetter() [3/3]

template<typename T , int N, int C>
lsst::afw::geom::details::ImageNdGetter< T, N, C >::ImageNdGetter ( ImageNdGetter< T, N, C > && )
default

◆ ~ImageNdGetter()

template<typename T , int N, int C>
lsst::afw::geom::details::ImageNdGetter< T, N, C >::~ImageNdGetter ( )
default

Member Function Documentation

◆ checkExtents()

template<typename T , int N, int C>
void lsst::afw::geom::details::ImageNdGetter< T, N, C >::checkExtents ( lsst::geom::Box2I const & bbox,
int area ) const
inline

Definition at line 169 of file SpanSetFunctorGetters.h.

169 {
170 // If the bounding box lays outside the are of the image, throw an error
171 lsst::geom::Box2I arrayBBox(
172 _xy0, lsst::geom::Extent2I(_array.template getSize<1>(), _array.template getSize<0>()));
173 if (!arrayBBox.contains(bbox)) {
175 "SpanSet bounding box lands outside array");
176 }
177 }
AmpInfoBoxKey bbox
Definition Amplifier.cc:117
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition Exception.h:48
An integer coordinate rectangle.
Definition Box.h:55
Reports attempts to access elements outside a valid range of indices.
Definition Runtime.h:89

◆ get()

template<typename T , int N, int C>
Reference lsst::afw::geom::details::ImageNdGetter< T, N, C >::get ( )
inline

Definition at line 186 of file SpanSetFunctorGetters.h.

186{ return *_iterX; }

◆ increment()

template<typename T , int N, int C>
void lsst::afw::geom::details::ImageNdGetter< T, N, C >::increment ( )
inline

Definition at line 184 of file SpanSetFunctorGetters.h.

184{ ++_iterX; }

◆ operator=() [1/2]

template<typename T , int N, int C>
ImageNdGetter & lsst::afw::geom::details::ImageNdGetter< T, N, C >::operator= ( ImageNdGetter< T, N, C > && )
default

◆ operator=() [2/2]

template<typename T , int N, int C>
ImageNdGetter & lsst::afw::geom::details::ImageNdGetter< T, N, C >::operator= ( ImageNdGetter< T, N, C > const & )
default

◆ setSpan()

template<typename T , int N, int C>
void lsst::afw::geom::details::ImageNdGetter< T, N, C >::setSpan ( Span const & span)
inline

Definition at line 179 of file SpanSetFunctorGetters.h.

179 {
180 auto _iterY = _array.begin() + (span.getY() - _xy0.getY());
181 _iterX = (*_iterY).begin() + (span.getMinX() - _xy0.getX());
182 }

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