25 #if !defined(LSST_AFW_MATH_MASKEDVECTOR_H)
26 #define LSST_AFW_MATH_MASKEDVECTOR_H
28 #include "boost/shared_ptr.hpp"
36 template<
typename EntryT>
47 boost::shared_ptr<std::vector<EntryT> >
getVector(
bool const noThrow=
false)
const {
49 throw LSST_EXCEPT(lsst::pex::exceptions::RuntimeError,
"MaskedVector's Image is NULL");
52 boost::shared_ptr<std::vector<EntryT> > imgcp(
new std::vector<EntryT>(0));
56 imgcp->push_back(*ptr);
x_iterator row_begin(int y) const
Return an x_iterator to the start of the image.
Image< VariancePixelT >::Ptr VariancePtr
shared pointer to the variance Image
boost::shared_ptr< std::vector< EntryT > > getVector(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's image.
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.
x_iterator row_end(int y) const
Return an x_iterator to the end of the image.
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.
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's image.
Extent< int, 2 > Extent2I
iterator(typename lsst::afw::image::MaskedImage< EntryT >::x_iterator ptr)
MaskedImage(unsigned int width, unsigned int height, MaskPlaneDict const &planeDict=MaskPlaneDict())
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's variance.
table::Key< table::Array< Kernel::Pixel > > image
An iterator to the MaskedImage.
lsst::afw::image::MaskedImage< EntryT >::VariancePtr getVariance() const
void ImageT ImageT int float saturatedPixelValue int const width
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's mask.
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.
Reference< ImagePixelT >::type image()
Return (a reference to) the image part of the Pixel pointed at by the iterator.
Image< ImagePixelT >::Ptr ImagePtr
shared pointer to the Image
lsst::afw::image::MaskedImage< EntryT >::MaskPtr getMask() const
#define LSST_EXCEPT(type,...)
A pixel of a MaskedImage.
Mask< MaskPixelT >::Ptr MaskPtr
shared pointer to the Mask
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)