25 #if !defined(LSST_AFW_MATH_MASKEDVECTOR_H)
26 #define LSST_AFW_MATH_MASKEDVECTOR_H
36 template <
typename EntryT>
49 std::shared_ptr<std::vector<EntryT> >
getVector(
bool const noThrow =
false)
const {
51 throw LSST_EXCEPT(lsst::pex::exceptions::RuntimeError,
"MaskedVector's Image is NULL");
54 std::shared_ptr<std::vector<EntryT> > imgcp(
new std::vector<EntryT>(0));
58 imgcp->push_back(*ptr);
x_iterator row_begin(int y) const
Return an x_iterator to the start of the image.
std::shared_ptr< image::Mask< MaskPixelT > > MaskPtr
shared pointer to the Mask
VariancePtr getVariance() const
Return a (shared_ptr to) the MaskedImage's variance.
lsst::afw::image::MaskedImage< EntryT >::Image::Pixel & value()
int getHeight() const
Return the number of rows in the image.
PixelT Pixel
A pixel in this ImageBase.
_view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
MaskedVector(int width=0)
MaskedImageIterator< typename Image::x_iterator, typename Mask::x_iterator, typename Variance::x_iterator > x_iterator
An iterator to a row of a MaskedImage.
Extent< int, 2 > Extent2I
ImagePtr getImage() const
Return a (shared_ptr to) the MaskedImage's image.
std::shared_ptr< image::Image< VariancePixelT > > VariancePtr
shared pointer to the variance Image
iterator(typename lsst::afw::image::MaskedImage< EntryT >::x_iterator ptr)
MaskedImage(unsigned int width, unsigned int height, MaskPlaneDict const &planeDict=MaskPlaneDict())
Construct from a supplied dimensions.
MaskPtr getMask() const
Return a (shared_ptr to) the MaskedImage's mask.
An iterator to the MaskedImage.
lsst::afw::image::MaskedImage< EntryT >::VariancePtr getVariance() const
iterator(typename lsst::afw::image::MaskedImage< EntryT >::Image::x_iterator im, typename lsst::afw::image::MaskedImage< EntryT >::Mask::x_iterator msk, typename lsst::afw::image::MaskedImage< EntryT >::Variance::x_iterator var)
A class to manipulate images, masks, and variance as a single object.
std::shared_ptr< image::Image< ImagePixelT > > ImagePtr
shared pointer to the Image
Reference< ImagePixelT >::type image()
Return (a reference to) the image part of the Pixel pointed at by the iterator.
std::shared_ptr< std::vector< EntryT > > getVector(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's image.
lsst::afw::image::MaskedImage< EntryT >::MaskPtr getMask() const
A pixel of a MaskedImage.
x_iterator row_end(int y) const
Return an x_iterator to the end of the image.
int getWidth() const
Return the number of columns in the image.
lsst::afw::image::MaskedImage< EntryT >::Pixel Pixel
lsst::afw::image::MaskedImage< EntryT >::ImagePtr getImage() const
Pixel & operator[](int const i)
lsst::afw::image::MaskedImage< EntryT >::Image::Pixel & value(int const i)
lsst::afw::image::MaskedImage< EntryT >::Mask::Pixel & mask(int const i)
lsst::afw::image::MaskedImage< EntryT >::Variance::Pixel & variance(int const i)