LSST Applications g180d380827+46ec7ae9a6,g2079a07aa2+86d27d4dc4,g2305ad1205+561f0b4c6e,g2bbee38e9b+c6a8a0fb72,g337abbeb29+c6a8a0fb72,g33d1c0ed96+c6a8a0fb72,g3a166c0a6a+c6a8a0fb72,g3d1719c13e+4b175340dc,g3ddfee87b4+e72d28e2d1,g487adcacf7+2f6f39ce3c,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+a10213cc50,g62aa8f1a4b+bf10eb883e,g858d7b2824+4b175340dc,g991b906543+4b175340dc,g99cad8db69+af57a9dece,g9c22b2923f+e2510deafe,g9ddcbc5298+9a081db1e4,g9fbc5161f1+30b2b595e6,ga1e77700b3+03d07e1c1f,gb0e22166c9+60f28cb32d,gb23b769143+4b175340dc,gba4ed39666+c2a2e4ac27,gbb8dafda3b+6155d6700f,gbd998247f1+585e252eca,gbeadb96d05+67a36bdf6a,gc120e1dc64+7a34493dbd,gc28159a63d+c6a8a0fb72,gc3e9b769f7+95821ff628,gcf0d15dbbd+e72d28e2d1,gdaeeff99f8+f9a426f77a,ge6526c86ff+3d1b9a9f4a,ge79ae78c31+c6a8a0fb72,gee10cc3b42+585e252eca,w.2024.18
LSST Data Management Base Package
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Private Member Functions | List of all members
lsst::afw::math::MaskedVector< EntryT > Class Template Reference

#include <MaskedVector.h>

Inheritance diagram for lsst::afw::math::MaskedVector< EntryT >:
lsst::afw::image::MaskedImage< EntryT >

Classes

class  iterator
 

Public Types

using Pixel = typename lsst::afw::image::MaskedImage<EntryT>::Pixel
 

Public Member Functions

 MaskedVector (int width=0)
 
 MaskedVector (MaskedVector const &)=default
 
 MaskedVector (MaskedVector &&)=default
 
MaskedVectoroperator= (MaskedVector const &)=default
 
MaskedVectoroperator= (MaskedVector &&)=default
 
 ~MaskedVector () override=default
 
std::shared_ptr< std::vector< EntryT > > getVector (bool const noThrow=false) const
 Return a (Ptr to) the MaskedImage's image.
 
Pixeloperator[] (int const i)
 
lsst::afw::image::MaskedImage< EntryT >::Image::Pixelvalue (int const i)
 
lsst::afw::image::MaskedImage< EntryT >::Mask::Pixelmask (int const i)
 
lsst::afw::image::MaskedImage< EntryT >::Variance::Pixelvariance (int const i)
 
lsst::afw::image::MaskedImage< EntryT >::ImagePtr getImage () const
 
lsst::afw::image::MaskedImage< EntryT >::MaskPtr getMask () const
 
lsst::afw::image::MaskedImage< EntryT >::VariancePtr getVariance () const
 
int size ()
 
bool empty ()
 
iterator begin ()
 
iterator end ()
 

Private Member Functions

MaskedImage operator[] (lsst::geom::Box2I const &bbox) const
 Return a subimage corresponding to the given box (interpreted as PARENT coordinates).
 
iterator begin () const
 Return an iterator to the start of the image.
 
fast_iterator begin (bool contiguous) const
 Fast iterators to contiguous images.
 
iterator end () const
 Return an iterator to the end of the image.
 
fast_iterator end (bool contiguous) const
 Return a fast iterator to the end of the image, which must be contiguous Note that the order in which pixels are visited is undefined.
 

Detailed Description

template<typename EntryT>
class lsst::afw::math::MaskedVector< EntryT >

Definition at line 37 of file MaskedVector.h.

Member Typedef Documentation

◆ Pixel

template<typename EntryT >
using lsst::afw::math::MaskedVector< EntryT >::Pixel = typename lsst::afw::image::MaskedImage<EntryT>::Pixel

Definition at line 41 of file MaskedVector.h.

Constructor & Destructor Documentation

◆ MaskedVector() [1/3]

template<typename EntryT >
lsst::afw::math::MaskedVector< EntryT >::MaskedVector ( int width = 0)
inlineexplicit

Definition at line 43 of file MaskedVector.h.

44 : //, MaskPlaneDict const& planeDict=MaskPlaneDict()) :
A class to manipulate images, masks, and variance as a single object.
Definition MaskedImage.h:74

◆ MaskedVector() [2/3]

template<typename EntryT >
lsst::afw::math::MaskedVector< EntryT >::MaskedVector ( MaskedVector< EntryT > const & )
default

◆ MaskedVector() [3/3]

template<typename EntryT >
lsst::afw::math::MaskedVector< EntryT >::MaskedVector ( MaskedVector< EntryT > && )
default

◆ ~MaskedVector()

template<typename EntryT >
lsst::afw::math::MaskedVector< EntryT >::~MaskedVector ( )
overridedefault

Member Function Documentation

◆ begin()

template<typename EntryT >
iterator lsst::afw::math::MaskedVector< EntryT >::begin ( )
inline

Definition at line 123 of file MaskedVector.h.

123{ return this->row_begin(0); }
x_iterator row_begin(int y) const
Return an x_iterator to the start of the image.

◆ empty()

template<typename EntryT >
bool lsst::afw::math::MaskedVector< EntryT >::empty ( )
inline

Definition at line 104 of file MaskedVector.h.

104{ return this->getWidth(0) == 0; }
int getWidth() const
Return the number of columns in the image.

◆ end()

template<typename EntryT >
iterator lsst::afw::math::MaskedVector< EntryT >::end ( )
inline

Definition at line 124 of file MaskedVector.h.

124{ return this->row_end(0); }
x_iterator row_end(int y) const
Return an x_iterator to the end of the image.

◆ getImage()

template<typename EntryT >
lsst::afw::image::MaskedImage< EntryT >::ImagePtr lsst::afw::math::MaskedVector< EntryT >::getImage ( ) const
inline

Definition at line 88 of file MaskedVector.h.

88 {
90 }
ImagePtr getImage() const
Return a (shared_ptr to) the MaskedImage's image.

◆ getMask()

template<typename EntryT >
lsst::afw::image::MaskedImage< EntryT >::MaskPtr lsst::afw::math::MaskedVector< EntryT >::getMask ( ) const
inline

Definition at line 91 of file MaskedVector.h.

91 {
93 }
MaskPtr getMask() const
Return a (shared_ptr to) the MaskedImage's mask.

◆ getVariance()

template<typename EntryT >
lsst::afw::image::MaskedImage< EntryT >::VariancePtr lsst::afw::math::MaskedVector< EntryT >::getVariance ( ) const
inline

Definition at line 94 of file MaskedVector.h.

94 {
96 }
VariancePtr getVariance() const
Return a (shared_ptr to) the MaskedImage's variance.

◆ getVector()

template<typename EntryT >
std::shared_ptr< std::vector< EntryT > > lsst::afw::math::MaskedVector< EntryT >::getVector ( bool const noThrow = false) const
inline

Return a (Ptr to) the MaskedImage's image.

Definition at line 55 of file MaskedVector.h.

55 {
56 if (!this->getImage() && !noThrow) {
57 throw LSST_EXCEPT(lsst::pex::exceptions::RuntimeError, "MaskedVector's Image is NULL");
58 }
59
61 for (int i_y = 0; i_y < this->getImage()->getHeight(); ++i_y) {
63 ptr != this->getImage()->row_end(i_y); ++ptr) {
64 imgcp->push_back(*ptr);
65 }
66 }
67 return imgcp;
68 }
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition Exception.h:48
uint64_t * ptr
Definition RangeSet.cc:95
typename _view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
Definition ImageBase.h:133
int getHeight() const
Return the number of rows in the image.
lsst::afw::image::MaskedImage< EntryT >::ImagePtr getImage() const
Reports errors that are due to events beyond the control of the program.
Definition Runtime.h:104

◆ mask()

template<typename EntryT >
lsst::afw::image::MaskedImage< EntryT >::Mask::Pixel & lsst::afw::math::MaskedVector< EntryT >::mask ( int const i)
inline

Definition at line 81 of file MaskedVector.h.

81 {
83 }

◆ operator=() [1/2]

template<typename EntryT >
MaskedVector & lsst::afw::math::MaskedVector< EntryT >::operator= ( MaskedVector< EntryT > && )
default

◆ operator=() [2/2]

template<typename EntryT >
MaskedVector & lsst::afw::math::MaskedVector< EntryT >::operator= ( MaskedVector< EntryT > const & )
default

◆ operator[]()

template<typename EntryT >
Pixel & lsst::afw::math::MaskedVector< EntryT >::operator[] ( int const i)
inline

Definition at line 72 of file MaskedVector.h.

◆ size()

template<typename EntryT >
int lsst::afw::math::MaskedVector< EntryT >::size ( )
inline

Definition at line 103 of file MaskedVector.h.

103{ return this->getWidth(0); }

◆ value()

template<typename EntryT >
lsst::afw::image::MaskedImage< EntryT >::Image::Pixel & lsst::afw::math::MaskedVector< EntryT >::value ( int const i)
inline

Definition at line 78 of file MaskedVector.h.

78 {
80 }

◆ variance()

template<typename EntryT >
lsst::afw::image::MaskedImage< EntryT >::Variance::Pixel & lsst::afw::math::MaskedVector< EntryT >::variance ( int const i)
inline

Definition at line 84 of file MaskedVector.h.

84 {
86 }

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