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);
int getWidth() const
Return the number of columns in the image.
Mask< MaskPixelT >::Ptr MaskPtr
shared pointer to the Mask
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's image.
Image< VariancePixelT >::Ptr VariancePtr
shared pointer to the variance Image
lsst::afw::image::MaskedImage< EntryT >::VariancePtr getVariance() const
lsst::afw::image::MaskedImage< EntryT >::MaskPtr getMask() const
MaskedImageIterator< typename Image::x_iterator, typename Mask::x_iterator, typename Variance::x_iterator > x_iterator
An iterator to a row of a MaskedImage.
Pixel & operator[](int const i)
lsst::afw::image::MaskedImage< EntryT >::Image::Pixel & value()
Reference< ImagePixelT >::type image()
Return (a reference to) the image part of the Pixel pointed at by the iterator.
MaskedImage(unsigned int width, unsigned int height, MaskPlaneDict const &planeDict=MaskPlaneDict())
MaskedVector(int width=0)
lsst::afw::image::MaskedImage< EntryT >::Mask::Pixel & mask(int const i)
x_iterator row_end(int y) const
Return an x_iterator to the end of the image.
PixelT Pixel
A pixel in this ImageBase.
lsst::afw::image::MaskedImage< EntryT >::ImagePtr getImage() const
table::Key< table::Array< Kernel::Pixel > > image
An iterator to the MaskedImage.
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's variance.
boost::shared_ptr< std::vector< EntryT > > getVector(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's image.
A class to manipulate images, masks, and variance as a single object.
lsst::afw::image::MaskedImage< EntryT >::Variance::Pixel & variance(int const i)
Image< ImagePixelT >::Ptr ImagePtr
shared pointer to the Image
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)
#define LSST_EXCEPT(type,...)
A pixel of a MaskedImage.
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage's mask.
lsst::afw::image::MaskedImage< EntryT >::Image::Pixel & value(int const i)
_view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
lsst::afw::image::MaskedImage< EntryT >::Pixel Pixel
x_iterator row_begin(int y) const
Return an x_iterator to the start of the image.
int getHeight() const
Return the number of rows in the image.
iterator(typename lsst::afw::image::MaskedImage< EntryT >::x_iterator ptr)
Extent< int, 2 > Extent2I