Loading [MathJax]/extensions/tex2jax.js
LSST Applications g04a91732dc+9666464c73,g0fba68d861+079660c10e,g1fd858c14a+94f68680cf,g208c678f98+627fe8cd4e,g271391ec13+ac98094cfc,g2c84ff76c0+12036dbf49,g2c9e612ef2+a92a2e6025,g35bb328faa+fcb1d3bbc8,g4d2262a081+bcdfaf528c,g4e0f332c67+c58e4b632d,g53246c7159+fcb1d3bbc8,g60b5630c4e+a92a2e6025,g67b6fd64d1+9d1b2ab50a,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g8852436030+506db7da85,g89139ef638+9d1b2ab50a,g8d6b6b353c+a92a2e6025,g9125e01d80+fcb1d3bbc8,g989de1cb63+9d1b2ab50a,g9f33ca652e+d1749da127,ga2b97cdc51+a92a2e6025,gabe3b4be73+1e0a283bba,gb1101e3267+6ecbd0580e,gb58c049af0+f03b321e39,gb89ab40317+9d1b2ab50a,gb90eeb9370+384e1fc23b,gcf25f946ba+506db7da85,gd315a588df+382ef11c06,gd6cbbdb0b4+75aa4b1db4,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+a095917f21,ge278dab8ac+c61fbefdff,ge410e46f29+9d1b2ab50a,ge82c20c137+e12a08b75a,gf67bdafdda+9d1b2ab50a,gfd5510ef7b+df344d16e5,v29.0.0.rc2
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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()) :

◆ 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); }

◆ 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; }

◆ 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); }

◆ 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
int getHeight() const
Return the number of rows in the image.
lsst::afw::image::MaskedImage< EntryT >::ImagePtr getImage() const

◆ 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.


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