LSSTApplications  1.1.2+25,10.0+13,10.0+132,10.0+133,10.0+224,10.0+41,10.0+8,10.0-1-g0f53050+14,10.0-1-g4b7b172+19,10.0-1-g61a5bae+98,10.0-1-g7408a83+3,10.0-1-gc1e0f5a+19,10.0-1-gdb4482e+14,10.0-11-g3947115+2,10.0-12-g8719d8b+2,10.0-15-ga3f480f+1,10.0-2-g4f67435,10.0-2-gcb4bc6c+26,10.0-28-gf7f57a9+1,10.0-3-g1bbe32c+14,10.0-3-g5b46d21,10.0-4-g027f45f+5,10.0-4-g86f66b5+2,10.0-4-gc4fccf3+24,10.0-40-g4349866+2,10.0-5-g766159b,10.0-5-gca2295e+25,10.0-6-g462a451+1
LSSTDataManagementBasePackage
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > Class Template Reference

A class to manipulate images, masks, and variance as a single object. More...

#include <MaskedImage.h>

Inheritance diagram for lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >:
lsst.daf.base::Persistable lsst.daf.base::Citizen

Classes

class  const_MaskedImageIterator
 An const iterator to the MaskedImage. More...
 
class  const_MaskedImageLocator
 A const locator for the MaskedImage. More...
 
struct  ImageTypeFactory
 A templated class to return this classes' type (present in Image/Mask/MaskedImage) More...
 
class  MaskedImageIterator
 An iterator to the MaskedImage. More...
 
class  MaskedImageIteratorBase
 The base class for MaskedImageIterators (const and non-const) More...
 
class  MaskedImageLocator
 A locator for the MaskedImage. More...
 
class  MaskedImageLocatorBase
 The base class for MaskedImageLocators (const and non-const) More...
 

Public Types

typedef Image< ImagePixelT >::Ptr ImagePtr
 shared pointer to the Image More...
 
typedef Mask< MaskPixelT >::Ptr MaskPtr
 shared pointer to the Mask More...
 
typedef Image< VariancePixelT >
::Ptr 
VariancePtr
 shared pointer to the variance Image More...
 
typedef boost::shared_ptr
< MaskedImage
Ptr
 shared pointer to a MaskedImage More...
 
typedef boost::shared_ptr
< const MaskedImage
ConstPtr
 
typedef Mask< MaskPixelT >
::MaskPlaneDict 
MaskPlaneDict
 The Mask's MaskPlaneDict. More...
 
typedef
lsst::afw::image::Image
< VariancePixelT > 
Variance
 
typedef
lsst::afw::image::Image
< ImagePixelT > 
Image
 
typedef lsst::afw::image::Mask
< MaskPixelT > 
Mask
 
typedef detail::MaskedImage_tag image_category
 
typedef
lsst::afw::image::pixel::Pixel
< ImagePixelT, MaskPixelT,
VariancePixelT > 
Pixel
 A Pixel in the MaskedImage. More...
 
typedef
lsst::afw::image::pixel::SinglePixel
< ImagePixelT, MaskPixelT,
VariancePixelT > 
SinglePixel
 A single Pixel of the same type as those in the MaskedImage. More...
 
typedef MaskedImageIterator
< typename Image::iterator,
typename Mask::iterator,
typename Variance::iterator
iterator
 
typedef
const_MaskedImageIterator
< typename Image::iterator,
typename Mask::iterator,
typename Variance::iterator
const_iterator
 
typedef MaskedImageIterator
< typename
Image::reverse_iterator,
typename
Mask::reverse_iterator,
typename
Variance::reverse_iterator
reverse_iterator
 
typedef MaskedImageIterator
< typename Image::x_iterator,
typename Mask::x_iterator,
typename Variance::x_iterator
x_iterator
 An iterator to a row of a MaskedImage. More...
 
typedef
const_MaskedImageIterator
< typename Image::x_iterator,
typename Mask::x_iterator,
typename Variance::x_iterator
const_x_iterator
 A const_iterator to a row of a MaskedImage. More...
 
typedef x_iterator fast_iterator
 
typedef MaskedImageIterator
< typename Image::y_iterator,
typename Mask::y_iterator,
typename Variance::y_iterator
y_iterator
 An iterator to a column of a MaskedImage. More...
 
typedef
const_MaskedImageIterator
< typename Image::y_iterator,
typename Mask::y_iterator,
typename Variance::y_iterator
const_y_iterator
 A const_iterator to a column of a MaskedImage. More...
 
typedef MaskedImageLocator
< typename Image::xy_locator,
typename Mask::xy_locator,
typename Variance::xy_locator
xy_locator
 A locator for a MaskedImage. More...
 
typedef
const_MaskedImageLocator
< typename Image::xy_locator,
typename Mask::xy_locator,
typename Variance::xy_locator
const_xy_locator
 A const_locator for a MaskedImage. More...
 
typedef MaskedImageLocator
< typename Image::xy_locator,
typename Mask::xy_locator,
typename Variance::xy_locator >
::x_iterator 
xy_x_iterator
 an x_iterator associated with an xy_locator More...
 
typedef MaskedImageLocator
< typename Image::xy_locator,
typename Mask::xy_locator,
typename Variance::xy_locator >
::y_iterator 
xy_y_iterator
 an y_iterator associated with an xy_locator More...
 
- Public Types inherited from lsst.daf.base::Persistable
typedef boost::shared_ptr
< Persistable
Ptr
 
- Public Types inherited from lsst.daf.base::Citizen
enum  { magicSentinel = 0xdeadbeef }
 
typedef unsigned long memId
 Type of the block's ID. More...
 
typedef memId(* memNewCallback )(const memId cid)
 A function used to register a callback. More...
 
typedef memId(* memCallback )(const Citizen *ptr)
 

Public Member Functions

 MaskedImage (unsigned int width, unsigned int height, MaskPlaneDict const &planeDict=MaskPlaneDict())
 Construct from a supplied dimensions. The Image, Mask, and Variance will be set to zero. More...
 
 MaskedImage (geom::Extent2I const &dimensions=geom::Extent2I(), MaskPlaneDict const &planeDict=MaskPlaneDict())
 Construct from a supplied dimensions. The Image, Mask, and Variance will be set to zero. More...
 
 MaskedImage (ImagePtr image, MaskPtr mask=MaskPtr(), VariancePtr variance=VariancePtr())
 Construct from a supplied Image and optional Mask and Variance. The Mask and Variance will be set to zero if omitted. More...
 
 MaskedImage (geom::Box2I const &bbox, MaskPlaneDict const &planeDict=MaskPlaneDict())
 
 MaskedImage (std::string const &fileName, boost::shared_ptr< daf::base::PropertySet > metadata=boost::shared_ptr< daf::base::PropertySet >(), geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool needAllHdus=false, boost::shared_ptr< daf::base::PropertySet > imageMetadata=boost::shared_ptr< daf::base::PropertySet >(), boost::shared_ptr< daf::base::PropertySet > maskMetadata=boost::shared_ptr< daf::base::PropertySet >(), boost::shared_ptr< daf::base::PropertySet > varianceMetadata=boost::shared_ptr< daf::base::PropertySet >())
 Construct a MaskedImage by reading a regular FITS file. More...
 
 MaskedImage (fits::MemFileManager &manager, boost::shared_ptr< daf::base::PropertySet > metadata=boost::shared_ptr< daf::base::PropertySet >(), geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool needAllHdus=false, boost::shared_ptr< daf::base::PropertySet > imageMetadata=boost::shared_ptr< daf::base::PropertySet >(), boost::shared_ptr< daf::base::PropertySet > maskMetadata=boost::shared_ptr< daf::base::PropertySet >(), boost::shared_ptr< daf::base::PropertySet > varianceMetadata=boost::shared_ptr< daf::base::PropertySet >())
 Construct a MaskedImage by reading a FITS image in memory. More...
 
 MaskedImage (fits::Fits &fitsfile, boost::shared_ptr< daf::base::PropertySet > metadata=boost::shared_ptr< daf::base::PropertySet >(), geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool needAllHdus=false, boost::shared_ptr< daf::base::PropertySet > imageMetadata=boost::shared_ptr< daf::base::PropertySet >(), boost::shared_ptr< daf::base::PropertySet > maskMetadata=boost::shared_ptr< daf::base::PropertySet >(), boost::shared_ptr< daf::base::PropertySet > varianceMetadata=boost::shared_ptr< daf::base::PropertySet >())
 Construct a MaskedImage from an already-open FITS object. More...
 
 MaskedImage (MaskedImage const &rhs, bool const deep=false)
 Copy constructor; shallow, unless deep is true. More...
 
 MaskedImage (MaskedImage const &rhs, geom::Box2I const &bbox, ImageOrigin const origin=PARENT, bool const deep=false)
 Copy constructor of the pixels specified by bbox; shallow, unless deep is true. More...
 
template<typename OtherPixelT >
 MaskedImage (MaskedImage< OtherPixelT, MaskPixelT, VariancePixelT > const &rhs, const bool deep)
 
MaskedImageoperator= (MaskedImage const &rhs)
 Make the lhs use the rhs's pixels. More...
 
virtual ~MaskedImage ()
 
void swap (MaskedImage &rhs)
 
MaskedImageoperator= (Pixel const &rhs)
 
MaskedImageoperator= (SinglePixel const &rhs)
 
void operator<<= (MaskedImage const &rhs)
 
void operator+= (ImagePixelT const rhs)
 Add a scalar rhs to a MaskedImage. More...
 
void operator+= (MaskedImage const &rhs)
 
void operator+= (lsst::afw::image::Image< ImagePixelT > const &rhs)
 
void operator+= (lsst::afw::math::Function2< double > const &function)
 
void scaledPlus (double const c, MaskedImage const &rhs)
 
void operator-= (ImagePixelT const rhs)
 Subtract a scalar rhs from a MaskedImage. More...
 
void operator-= (MaskedImage const &rhs)
 
void operator-= (lsst::afw::image::Image< ImagePixelT > const &rhs)
 
void operator-= (lsst::afw::math::Function2< double > const &function)
 
void scaledMinus (double const c, MaskedImage const &rhs)
 
void operator*= (ImagePixelT const rhs)
 
void operator*= (MaskedImage const &rhs)
 
void operator*= (lsst::afw::image::Image< ImagePixelT > const &rhs)
 
void scaledMultiplies (double const c, MaskedImage const &rhs)
 
void operator/= (ImagePixelT const rhs)
 
void operator/= (MaskedImage const &rhs)
 
void operator/= (lsst::afw::image::Image< ImagePixelT > const &rhs)
 
void scaledDivides (double const c, MaskedImage const &rhs)
 
void writeFits (std::string const &fileName, boost::shared_ptr< daf::base::PropertySet const > metadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > imageMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > maskMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > varianceMetadata=boost::shared_ptr< daf::base::PropertySet const >()) const
 Write a MaskedImage to a regular FITS file. More...
 
void writeFits (fits::MemFileManager &manager, boost::shared_ptr< daf::base::PropertySet const > metadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > imageMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > maskMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > varianceMetadata=boost::shared_ptr< daf::base::PropertySet const >()) const
 Write a MaskedImage to a FITS RAM file. More...
 
void writeFits (fits::Fits &fitsfile, boost::shared_ptr< daf::base::PropertySet const > metadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > imageMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > maskMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > varianceMetadata=boost::shared_ptr< daf::base::PropertySet const >()) const
 Write a MaskedImage to a FITS RAM file. More...
 
ImagePtr getImage (bool const noThrow=false) const
 Return a (Ptr to) the MaskedImage's image. More...
 
MaskPtr getMask (bool const noThrow=false) const
 Return a (Ptr to) the MaskedImage's mask. More...
 
VariancePtr getVariance (bool const noThrow=false) const
 Return a (Ptr to) the MaskedImage's variance. More...
 
int getWidth () const
 Return the number of columns in the image. More...
 
int getHeight () const
 Return the number of rows in the image. More...
 
geom::Extent2I getDimensions () const
 
geom::Box2I getBBox (ImageOrigin const origin=PARENT) const
 
int getX0 () const
 
int getY0 () const
 
geom::Point2I getXY0 () const
 
void setXY0 (int const x0, int const y0)
 
void setXY0 (geom::Point2I const origin)
 
double indexToPosition (double ind, lsst::afw::image::xOrY const xy) const
 Convert image index to image position (see Image::indexToPosition) More...
 
std::pair< int, double > positionToIndex (double const pos, lsst::afw::image::xOrY const xy) const
 Convert image position to index (see Image::positionToIndex) More...
 
iterator begin () const
 Return an iterator to the start of the image. More...
 
iterator end () const
 Return an iterator to the end of the image. More...
 
iterator at (int const x, int const y) const
 Return an iterator at the point (x, y) More...
 
reverse_iterator rbegin () const
 Return a reverse_iterator to the start of the image. More...
 
reverse_iterator rend () const
 Return a reverse_iterator to the end of the image. More...
 
fast_iterator begin (bool) const
 
fast_iterator end (bool) const
 
x_iterator row_begin (int y) const
 Return an x_iterator to the start of the image. More...
 
x_iterator row_end (int y) const
 Return an x_iterator to the end of the image. More...
 
x_iterator x_at (int x, int y) const
 Return an x_iterator at the point (x, y) More...
 
y_iterator col_begin (int x) const
 Return an y_iterator to the start of the image. More...
 
y_iterator col_end (int x) const
 Return an y_iterator to the end of the image. More...
 
y_iterator y_at (int x, int y) const
 Return an y_iterator at the point (x, y) More...
 
xy_locator xy_at (int x, int y) const
 Return an xy_locator at the point (x, y) More...
 
- Public Member Functions inherited from lsst.daf.base::Persistable
 Persistable (void)
 
virtual ~Persistable (void)
 
template<class Archive >
void serialize (Archive &, unsigned int const)
 
- Public Member Functions inherited from lsst.daf.base::Citizen
 Citizen (const std::type_info &)
 
 Citizen (Citizen const &)
 
 ~Citizen ()
 
Citizenoperator= (Citizen const &)
 
std::string repr () const
 Return a string representation of a Citizen. More...
 
void markPersistent (void)
 Mark a Citizen as persistent and not destroyed until process end. More...
 
memId getId () const
 Return the Citizen's ID. More...
 

Static Public Member Functions

static MaskedImage readFits (std::string const &filename)
 Read a MaskedImage from a regular FITS file. More...
 
static MaskedImage readFits (fits::MemFileManager &manager)
 Read a MaskedImage from a FITS RAM file. More...
 
- Static Public Member Functions inherited from lsst.daf.base::Citizen
static bool hasBeenCorrupted ()
 Check all allocated blocks for corruption. More...
 
static memId getNextMemId ()
 Return the memId of the next object to be allocated. More...
 
static int init ()
 Called once when the memory system is being initialised. More...
 
static int census (int, memId startingMemId=0)
 How many active Citizens are there? More...
 
static void census (std::ostream &stream, memId startingMemId=0)
 Print a list of all active Citizens to stream, sorted by ID. More...
 
static const std::vector
< const Citizen * > * 
census ()
 Return a (newly allocated) std::vector of active Citizens sorted by ID. More...
 
static memId setNewCallbackId (memId id)
 Call the NewCallback when block is allocated. More...
 
static memId setDeleteCallbackId (memId id)
 Call the current DeleteCallback when block is deleted. More...
 
static memNewCallback setNewCallback (memNewCallback func)
 Set the NewCallback function. More...
 
static memCallback setDeleteCallback (memCallback func)
 Set the DeleteCallback function. More...
 
static memCallback setCorruptionCallback (memCallback func)
 Set the CorruptionCallback function. More...
 

Private Member Functions

void conformSizes ()
 

Private Attributes

ImagePtr _image
 
MaskPtr _mask
 
VariancePtr _variance
 

Detailed Description

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
class lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >

A class to manipulate images, masks, and variance as a single object.

Examples:
footprintFunctor.cc, imageStatistics.cc, maskedImage1.cc, maskedImage2.cc, spatialCellExample.cc, and testSpatialCell.h.

Definition at line 77 of file MaskedImage.h.

Member Typedef Documentation

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef const_MaskedImageIterator<typename Image::iterator, typename Mask::iterator, typename Variance::iterator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::const_iterator

Definition at line 567 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef const_MaskedImageIterator<typename Image::x_iterator, typename Mask::x_iterator, typename Variance::x_iterator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::const_x_iterator

A const_iterator to a row of a MaskedImage.

Definition at line 581 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef const_MaskedImageLocator<typename Image::xy_locator, typename Mask::xy_locator, typename Variance::xy_locator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::const_xy_locator

A const_locator for a MaskedImage.

Definition at line 597 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef const_MaskedImageIterator<typename Image::y_iterator, typename Mask::y_iterator, typename Variance::y_iterator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::const_y_iterator

A const_iterator to a column of a MaskedImage.

Definition at line 590 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef boost::shared_ptr<const MaskedImage> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::ConstPtr

Definition at line 88 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef x_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::fast_iterator

A fast STL compliant iterator for contiguous images N.b. The order of pixel access is undefined

Definition at line 584 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef lsst::afw::image::Image<ImagePixelT> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::Image

Definition at line 93 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef detail::MaskedImage_tag lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::image_category

Definition at line 96 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef Image<ImagePixelT>::Ptr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::ImagePtr

shared pointer to the Image

Definition at line 81 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef MaskedImageIterator<typename Image::iterator, typename Mask::iterator, typename Variance::iterator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::iterator

Definition at line 564 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef lsst::afw::image::Mask<MaskPixelT> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::Mask

Definition at line 94 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef Mask<MaskPixelT>::MaskPlaneDict lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskPlaneDict

The Mask's MaskPlaneDict.

Definition at line 90 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef Mask<MaskPixelT>::Ptr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskPtr

shared pointer to the Mask

Definition at line 83 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef lsst::afw::image::pixel::Pixel<ImagePixelT, MaskPixelT, VariancePixelT> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::Pixel

A Pixel in the MaskedImage.

Definition at line 115 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef boost::shared_ptr<MaskedImage> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::Ptr

shared pointer to a MaskedImage

Definition at line 87 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef MaskedImageIterator<typename Image::reverse_iterator, typename Mask::reverse_iterator, typename Variance::reverse_iterator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::reverse_iterator

Definition at line 570 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef lsst::afw::image::pixel::SinglePixel<ImagePixelT, MaskPixelT, VariancePixelT> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::SinglePixel

A single Pixel of the same type as those in the MaskedImage.

Definition at line 123 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef lsst::afw::image::Image<VariancePixelT> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::Variance

Definition at line 92 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef Image<VariancePixelT>::Ptr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::VariancePtr

shared pointer to the variance Image

Definition at line 85 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef MaskedImageIterator<typename Image::x_iterator, typename Mask::x_iterator, typename Variance::x_iterator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::x_iterator

An iterator to a row of a MaskedImage.

Definition at line 578 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef MaskedImageLocator<typename Image::xy_locator, typename Mask::xy_locator, typename Variance::xy_locator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::xy_locator

A locator for a MaskedImage.

Definition at line 594 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef MaskedImageLocator<typename Image::xy_locator, typename Mask::xy_locator, typename Variance::xy_locator>::x_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::xy_x_iterator

an x_iterator associated with an xy_locator

Definition at line 601 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef MaskedImageLocator<typename Image::xy_locator, typename Mask::xy_locator, typename Variance::xy_locator>::y_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::xy_y_iterator

an y_iterator associated with an xy_locator

Definition at line 604 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
typedef MaskedImageIterator<typename Image::y_iterator, typename Mask::y_iterator, typename Variance::y_iterator> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::y_iterator

An iterator to a column of a MaskedImage.

Definition at line 587 of file MaskedImage.h.

Constructor & Destructor Documentation

template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( unsigned int  width,
unsigned int  height,
MaskPlaneDict const &  planeDict = MaskPlaneDict() 
)
explicit

Construct from a supplied dimensions. The Image, Mask, and Variance will be set to zero.

Constructors

Parameters
widthnumber of columns
heightnumber of rows
planeDictMake Mask conform to this mask layout (ignore if empty)

Definition at line 53 of file MaskedImage.cc.

57  :
58  lsst::daf::base::Citizen(typeid(this)),
59  _image(new Image(width, height)),
60  _mask(new Mask(width, height, planeDict)),
61  _variance(new Variance(width, height)) {
62  *_image = 0;
63  *_mask = 0x0;
64  *_variance = 0;
65 }
lsst::afw::image::Mask< MaskPixelT > Mask
Definition: MaskedImage.h:94
lsst::afw::image::Image< ImagePixelT > Image
Definition: MaskedImage.h:93
lsst::afw::image::Image< VariancePixelT > Variance
Definition: MaskedImage.h:92
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( geom::Extent2I const &  dimensions = geom::Extent2I(),
MaskPlaneDict const &  planeDict = MaskPlaneDict() 
)
explicit

Construct from a supplied dimensions. The Image, Mask, and Variance will be set to zero.

Constructors

Parameters
dimensionsNumber of columns, rows in image
planeDictMake Mask conform to this mask layout (ignore if empty)

Definition at line 72 of file MaskedImage.cc.

75  :
76  lsst::daf::base::Citizen(typeid(this)),
77  _image(new Image(dimensions)),
78  _mask(new Mask(dimensions, planeDict)),
80  *_image = 0;
81  *_mask = 0x0;
82  *_variance = 0;
83 }
afw::table::Key< afw::table::Point< int > > dimensions
lsst::afw::image::Mask< MaskPixelT > Mask
Definition: MaskedImage.h:94
lsst::afw::image::Image< ImagePixelT > Image
Definition: MaskedImage.h:93
lsst::afw::image::Image< VariancePixelT > Variance
Definition: MaskedImage.h:92
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( ImagePtr  image,
MaskPtr  mask = MaskPtr(),
VariancePtr  variance = VariancePtr() 
)
explicit

Construct from a supplied Image and optional Mask and Variance. The Mask and Variance will be set to zero if omitted.

Parameters
imageImage
maskMask
varianceVariance Mask

Definition at line 222 of file MaskedImage.cc.

226  :
227  lsst::daf::base::Citizen(typeid(this)),
228  _image(image),
229  _mask(mask),
230  _variance(variance) {
231  conformSizes();
232 }
table::Key< table::Array< Kernel::Pixel > > image
Definition: FixedKernel.cc:117
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( geom::Box2I const &  bbox,
MaskPlaneDict const &  planeDict = MaskPlaneDict() 
)
explicit

Create an MaskedImage of the specified size

The Image, Mask, and Variance will be set to zero

Note
Many lsst::afw::image and lsst::afw::math objects define a dimensions member which may be conveniently used to make objects of an appropriate size
Parameters
bboxdimensions of image: width x height
planeDictMake Mask conform to this mask layout (ignore if empty)

Definition at line 94 of file MaskedImage.cc.

97  :
98  lsst::daf::base::Citizen(typeid(this)),
99  _image(new Image(bbox)),
100  _mask(new Mask(bbox, planeDict)),
101  _variance(new Variance(bbox)) {
102  *_image = 0;
103  *_mask = 0x0;
104  *_variance = 0;
105 }
lsst::afw::image::Mask< MaskPixelT > Mask
Definition: MaskedImage.h:94
lsst::afw::image::Image< ImagePixelT > Image
Definition: MaskedImage.h:93
lsst::afw::image::Image< VariancePixelT > Variance
Definition: MaskedImage.h:92
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( std::string const &  fileName,
boost::shared_ptr< daf::base::PropertySet metadata = boost::shared_ptr< daf::base::PropertySet >(),
geom::Box2I const &  bbox = geom::Box2I(),
ImageOrigin  origin = PARENT,
bool  conformMasks = false,
bool  needAllHdus = false,
boost::shared_ptr< daf::base::PropertySet imageMetadata = boost::shared_ptr< daf::base::PropertySet >(),
boost::shared_ptr< daf::base::PropertySet maskMetadata = boost::shared_ptr< daf::base::PropertySet >(),
boost::shared_ptr< daf::base::PropertySet varianceMetadata = boost::shared_ptr< daf::base::PropertySet >() 
)
explicit

Construct a MaskedImage by reading a regular FITS file.

Parameters
[in]fileNameFile to read.
[in,out]metadataMetadata read from the primary HDU header.
[in]bboxIf non-empty, read only the pixels within the bounding box.
[in]originCoordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image.
[in]conformMasksIf true, make Mask conform to the mask layout in the file.
[in]needAllHdusIf true, throw fits::FitsError if the mask and/or variance plane is missing. If false, silently initialize them to zero.
[in,out]imageMetadataMetadata read from the image HDU header.
[in,out]maskMetadataMetadata read from the mask HDU header.
[in,out]varianceMetadataMetadata read from the variance HDU header.

Definition at line 108 of file MaskedImage.cc.

114  : lsst::daf::base::Citizen(typeid(this)),
115  _image(), _mask(), _variance()
116 {
117  fits::Fits fitsfile(fileName, "r", fits::Fits::AUTO_CLOSE | fits::Fits::AUTO_CHECK);
118  *this = MaskedImage(fitsfile, metadata, bbox, origin, conformMasks, needAllHdus,
119  imageMetadata, maskMetadata, varianceMetadata);
120  }
MaskedImage(unsigned int width, unsigned int height, MaskPlaneDict const &planeDict=MaskPlaneDict())
Construct from a supplied dimensions. The Image, Mask, and Variance will be set to zero...
Definition: MaskedImage.cc:53
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( fits::MemFileManager manager,
boost::shared_ptr< daf::base::PropertySet metadata = boost::shared_ptr< daf::base::PropertySet >(),
geom::Box2I const &  bbox = geom::Box2I(),
ImageOrigin  origin = PARENT,
bool  conformMasks = false,
bool  needAllHdus = false,
boost::shared_ptr< daf::base::PropertySet imageMetadata = boost::shared_ptr< daf::base::PropertySet >(),
boost::shared_ptr< daf::base::PropertySet maskMetadata = boost::shared_ptr< daf::base::PropertySet >(),
boost::shared_ptr< daf::base::PropertySet varianceMetadata = boost::shared_ptr< daf::base::PropertySet >() 
)
explicit

Construct a MaskedImage by reading a FITS image in memory.

Parameters
[in]managerAn object that manages the memory buffer to read.
[in,out]metadataMetadata read from the primary HDU header.
[in]bboxIf non-empty, read only the pixels within the bounding box.
[in]originCoordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image.
[in]conformMasksIf true, make Mask conform to the mask layout in the file.
[in]needAllHdusIf true, throw fits::FitsError if the mask and/or variance plane is missing. If false, silently initialize them to zero.
[in,out]imageMetadataMetadata read from the image HDU header.
[in,out]maskMetadataMetadata read from the mask HDU header.
[in,out]varianceMetadataMetadata read from the variance HDU header.

Definition at line 123 of file MaskedImage.cc.

129  : lsst::daf::base::Citizen(typeid(this)),
130  _image(), _mask(), _variance()
131 {
132  fits::Fits fitsfile(manager, "r", fits::Fits::AUTO_CLOSE | fits::Fits::AUTO_CHECK);
133  *this = MaskedImage(fitsfile, metadata, bbox, origin, conformMasks, needAllHdus,
134  imageMetadata, maskMetadata, varianceMetadata);
135 }
MaskedImage(unsigned int width, unsigned int height, MaskPlaneDict const &planeDict=MaskPlaneDict())
Construct from a supplied dimensions. The Image, Mask, and Variance will be set to zero...
Definition: MaskedImage.cc:53
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( fits::Fits fitsfile,
boost::shared_ptr< daf::base::PropertySet metadata = boost::shared_ptr< daf::base::PropertySet >(),
geom::Box2I const &  bbox = geom::Box2I(),
ImageOrigin  origin = PARENT,
bool  conformMasks = false,
bool  needAllHdus = false,
boost::shared_ptr< daf::base::PropertySet imageMetadata = boost::shared_ptr< daf::base::PropertySet >(),
boost::shared_ptr< daf::base::PropertySet maskMetadata = boost::shared_ptr< daf::base::PropertySet >(),
boost::shared_ptr< daf::base::PropertySet varianceMetadata = boost::shared_ptr< daf::base::PropertySet >() 
)
explicit

Construct a MaskedImage from an already-open FITS object.

Parameters
[in]fitsfileA FITS object to read from. Current HDU is ignored.
[in,out]metadataMetadata read from the primary HDU header.
[in]bboxIf non-empty, read only the pixels within the bounding box.
[in]originCoordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image.
[in]conformMasksIf true, make Mask conform to the mask layout in the file.
[in]needAllHdusIf true, throw fits::FitsError if the mask and/or variance plane is missing. If false, silently initialize them to zero.
[in,out]imageMetadataMetadata read from the image HDU header.
[in,out]maskMetadataMetadata read from the mask HDU header.
[in,out]varianceMetadataMetadata read from the variance HDU header.

Definition at line 167 of file MaskedImage.cc.

173  : lsst::daf::base::Citizen(typeid(this)),
174  _image(), _mask(), _variance()
175 {
176 
177  if (metadata) {
178  // Read primary metadata - only if user asks for it.
179  // If the primary HDU is not empty, this may be the same as imageMetadata.
180  fitsfile.setHdu(1);
181  fitsfile.readMetadata(*metadata);
182  }
183 
184  fitsfile.setHdu(0); // this moves to the first non-empty HDU, which should always be the Image HDU.
185  int hdu = fitsfile.getHdu();
186  ensureMetadata(imageMetadata);
187  _image.reset(new Image(fitsfile, imageMetadata, bbox, origin));
188  checkExtType(fitsfile, imageMetadata, "IMAGE");
189 
190  try {
191  fitsfile.setHdu(++hdu);
192  ensureMetadata(maskMetadata);
193  _mask.reset(new Mask(fitsfile, maskMetadata, bbox, origin, conformMasks));
194  checkExtType(fitsfile, maskMetadata, "MASK");
195  } catch(fits::FitsError &e) {
196  if (needAllHdus) {
197  LSST_EXCEPT_ADD(e, "Reading Mask");
198  throw e;
199  }
200  _mask.reset(new Mask(_image->getBBox()));
201  }
202 
203  try {
204  fitsfile.setHdu(++hdu);
205  ensureMetadata(varianceMetadata);
206  _variance.reset(new Variance(fitsfile, varianceMetadata, bbox, origin));
207  checkExtType(fitsfile, varianceMetadata, "VARIANCE");
208  } catch(fits::FitsError &e) {
209  if (needAllHdus) {
210  LSST_EXCEPT_ADD(e, "Reading Variance");
211  throw e;
212  }
213  _variance.reset(new Variance(_image->getBBox()));
214  }
215 }
lsst::afw::image::Mask< MaskPixelT > Mask
Definition: MaskedImage.h:94
lsst::afw::image::Image< ImagePixelT > Image
Definition: MaskedImage.h:93
lsst::afw::image::Image< VariancePixelT > Variance
Definition: MaskedImage.h:92
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
#define LSST_EXCEPT_ADD(e, m)
Definition: Exception.h:51
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs,
bool const  deep = false 
)

Copy constructor; shallow, unless deep is true.

Parameters
rhsImage to copy
deepMake deep copy?

Definition at line 238 of file MaskedImage.cc.

241  :
242  lsst::daf::base::Citizen(typeid(this)),
243  _image(rhs._image), _mask(rhs._mask), _variance(rhs._variance) {
244  if (deep) {
245  _image = typename Image::Ptr(new Image(*rhs.getImage(), deep));
246  _mask = typename Mask::Ptr(new Mask(*rhs.getMask(), deep));
247  _variance = typename Variance::Ptr(new Variance(*rhs.getVariance(), deep));
248  }
249  conformSizes();
250 }
lsst::afw::image::Mask< MaskPixelT > Mask
Definition: MaskedImage.h:94
boost::shared_ptr< Image< PixelT > > Ptr
Definition: Image.h:418
boost::shared_ptr< Mask > Ptr
Definition: Mask.h:95
lsst::afw::image::Image< ImagePixelT > Image
Definition: MaskedImage.h:93
lsst::afw::image::Image< VariancePixelT > Variance
Definition: MaskedImage.h:92
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs,
geom::Box2I const &  bbox,
ImageOrigin const  origin = PARENT,
bool const  deep = false 
)

Copy constructor of the pixels specified by bbox; shallow, unless deep is true.

Parameters
rhsMaskedImage to copy
bboxSpecify desired region
originSpecify the coordinate system of the bbox
deepIf false, new ImageBase shares storage with rhs; if true make a new, standalone, MaskedImage

Definition at line 256 of file MaskedImage.cc.

262  :
263  lsst::daf::base::Citizen(typeid(this)),
264  _image(new Image(*rhs.getImage(), bbox, origin, deep)),
265  _mask(rhs._mask ? new Mask(*rhs.getMask(), bbox, origin, deep) : static_cast<Mask *>(NULL)),
266  _variance(rhs._variance ? new Variance(*rhs.getVariance(), bbox, origin, deep) : static_cast<Variance *>(NULL)) {
267  conformSizes();
268 }
lsst::afw::image::Mask< MaskPixelT > Mask
Definition: MaskedImage.h:94
lsst::afw::image::Image< ImagePixelT > Image
Definition: MaskedImage.h:93
lsst::afw::image::Image< VariancePixelT > Variance
Definition: MaskedImage.h:92
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
template<typename OtherPixelT >
lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::MaskedImage ( MaskedImage< OtherPixelT, MaskPixelT, VariancePixelT > const &  rhs,
const bool  deep 
)
inline

generalised copy constructor; defined here in the header so that the compiler can instantiate N(N-1)/2 conversions between N ImageBase types.

We only support converting the Image part

Parameters
rhsInput image
deepMust be true; needed to disambiguate

Definition at line 717 of file MaskedImage.h.

721  :
722  lsst::daf::base::Citizen(typeid(this)), _image(), _mask(), _variance() {
723  if (!deep) {
724  throw LSST_EXCEPT(lsst::pex::exceptions::InvalidParameterError,
725  "Only deep copies are permitted for MaskedImages with different pixel types");
726  }
727 
728  _image = typename Image::Ptr(new Image(*rhs.getImage(), deep));
729  _mask = typename Mask::Ptr(new Mask(*rhs.getMask(), deep));
730  _variance = typename Variance::Ptr(new Variance(*rhs.getVariance(), deep));
731  }
lsst::afw::image::Mask< MaskPixelT > Mask
Definition: MaskedImage.h:94
boost::shared_ptr< Image< PixelT > > Ptr
Definition: Image.h:418
boost::shared_ptr< Mask > Ptr
Definition: Mask.h:95
lsst::afw::image::Image< ImagePixelT > Image
Definition: MaskedImage.h:93
lsst::afw::image::Image< VariancePixelT > Variance
Definition: MaskedImage.h:92
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
virtual lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::~MaskedImage ( )
inlinevirtual

Definition at line 737 of file MaskedImage.h.

737 {}

Member Function Documentation

template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::at ( int const  x,
int const  y 
) const

Return an iterator at the point (x, y)

Definition at line 663 of file MaskedImage.cc.

663  {
664  typename Image::iterator imageEnd = getImage()->at(x, y);
665  typename Mask::iterator maskEnd = getMask()->at(x, y);
666  typename Variance::iterator varianceEnd = getVariance()->at(x, y);
667 
668  return iterator(imageEnd, maskEnd, varianceEnd);
669 }
int y
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
_view_t::iterator iterator
An STL compliant iterator.
Definition: Image.h:143
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
MaskedImageIterator< typename Image::iterator, typename Mask::iterator, typename Variance::iterator > iterator
Definition: MaskedImage.h:564
int x
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::begin ( ) const

Return an iterator to the start of the image.

Definition at line 639 of file MaskedImage.cc.

639  {
640 #if 0 // this doesn't compile; why?
641  return iterator(_image->begin(), _mask->begin(), _variance->begin());
642 #else
643  typename Image::iterator imageBegin = _image->begin();
644  typename Mask::iterator maskBegin = _mask->begin();
645  typename Variance::iterator varianceBegin = _variance->begin();
646 
647  return iterator(imageBegin, maskBegin, varianceBegin);
648 #endif
649 }
_view_t::iterator iterator
An STL compliant iterator.
Definition: Image.h:143
MaskedImageIterator< typename Image::iterator, typename Mask::iterator, typename Variance::iterator > iterator
Definition: MaskedImage.h:564
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::fast_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::begin ( bool  contiguous) const

Fast iterators to contiguous images

Return a fast iterator to the start of the image, which must be contiguous Note that the order in which pixels are visited is undefined.

Exceptions
lsst::pex::exceptions::RuntimeArgument contiguous is false, or the pixels are not in fact contiguous
Parameters
contiguousPixels are contiguous (must be true)

Definition at line 743 of file MaskedImage.cc.

745  {
746  typename Image::fast_iterator imageBegin = _image->begin(contiguous);
747  typename Mask::fast_iterator maskBegin = _mask->begin(contiguous);
748  typename Variance::fast_iterator varianceBegin = _variance->begin(contiguous);
749 
750  return fast_iterator(imageBegin, maskBegin, varianceBegin);
751 }
x_iterator fast_iterator
Definition: Image.h:154
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::y_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::col_begin ( int  x) const

Return an y_iterator to the start of the image.

Definition at line 715 of file MaskedImage.cc.

715  {
716  typename Image::y_iterator imageBegin = _image->col_begin(x);
717  typename Mask::y_iterator maskBegin = _mask->col_begin(x);
718  typename Variance::y_iterator varianceBegin = _variance->col_begin(x);
719 
720  return y_iterator(imageBegin, maskBegin, varianceBegin);
721 }
_view_t::y_iterator y_iterator
An iterator for traversing the pixels in a column.
Definition: Image.h:160
MaskedImageIterator< typename Image::y_iterator, typename Mask::y_iterator, typename Variance::y_iterator > y_iterator
An iterator to a column of a MaskedImage.
Definition: MaskedImage.h:587
int x
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::y_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::col_end ( int  x) const

Return an y_iterator to the end of the image.

Definition at line 725 of file MaskedImage.cc.

725  {
726  typename Image::y_iterator imageEnd = getImage()->col_end(x);
727  typename Mask::y_iterator maskEnd = getMask()->col_end(x);
728  typename Variance::y_iterator varianceEnd = getVariance()->col_end(x);
729 
730  return y_iterator(imageEnd, maskEnd, varianceEnd);
731 }
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
_view_t::y_iterator y_iterator
An iterator for traversing the pixels in a column.
Definition: Image.h:160
MaskedImageIterator< typename Image::y_iterator, typename Mask::y_iterator, typename Variance::y_iterator > y_iterator
An iterator to a column of a MaskedImage.
Definition: MaskedImage.h:587
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
int x
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::conformSizes ( )
private

Definition at line 600 of file MaskedImage.cc.

600  {
601 
602  if (!_mask || _mask->getWidth() == 0 || _mask->getHeight() == 0) {
603  _mask = MaskPtr(new Mask(_image->getBBox()));
604  *_mask = 0;
605  } else {
606  if (_mask->getDimensions() != _image->getDimensions()) {
607  throw LSST_EXCEPT(
608  lsst::pex::exceptions::LengthError,
609  (boost::format("Dimension mismatch: Image %dx%d v. Mask %dx%d") %
610  _image->getWidth() % _image->getHeight() %
611  _mask->getWidth() % _mask->getHeight()
612  ).str()
613  );
614  }
615  }
616 
617  if (!_variance || _variance->getWidth() == 0 || _variance->getHeight() == 0) {
618  _variance = VariancePtr(new Variance(_image->getBBox()));
619  *_variance = 0;
620  } else {
621  if (_variance->getDimensions() != _image->getDimensions()) {
622  throw LSST_EXCEPT(
623  lsst::pex::exceptions::LengthError,
624  (boost::format("Dimension mismatch: Image %dx%d v. Variance %dx%d") %
625  _image->getWidth() % _image->getHeight() %
626  _variance->getWidth() % _variance->getHeight()
627  ).str()
628  );
629  }
630  }
631 }
Mask< MaskPixelT >::Ptr MaskPtr
shared pointer to the Mask
Definition: MaskedImage.h:83
Image< VariancePixelT >::Ptr VariancePtr
shared pointer to the variance Image
Definition: MaskedImage.h:85
lsst::afw::image::Mask< MaskPixelT > Mask
Definition: MaskedImage.h:94
lsst::afw::image::Image< VariancePixelT > Variance
Definition: MaskedImage.h:92
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::end ( ) const

Return an iterator to the end of the image.

Definition at line 653 of file MaskedImage.cc.

653  {
654  typename Image::iterator imageEnd = getImage()->end();
655  typename Mask::iterator maskEnd = getMask()->end();
656  typename Variance::iterator varianceEnd = getVariance()->end();
657 
658  return iterator(imageEnd, maskEnd, varianceEnd);
659 }
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
_view_t::iterator iterator
An STL compliant iterator.
Definition: Image.h:143
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
MaskedImageIterator< typename Image::iterator, typename Mask::iterator, typename Variance::iterator > iterator
Definition: MaskedImage.h:564
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::fast_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::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.

Exceptions
lsst::pex::exceptions::RuntimeArgument contiguous is false, or the pixels are not in fact contiguous
Parameters
contiguousPixels are contiguous (must be true)

Definition at line 760 of file MaskedImage.cc.

762  {
763  typename Image::fast_iterator imageEnd = getImage()->end(contiguous);
764  typename Mask::fast_iterator maskEnd = getMask()->end(contiguous);
765  typename Variance::fast_iterator varianceEnd = getVariance()->end(contiguous);
766 
767  return fast_iterator(imageEnd, maskEnd, varianceEnd);
768 }
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
x_iterator fast_iterator
Definition: Image.h:154
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
geom::Box2I lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getBBox ( ImageOrigin const  origin = PARENT) const
inline

Definition at line 905 of file MaskedImage.h.

905 {return _image->getBBox(origin);}
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
geom::Extent2I lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getDimensions ( ) const
inline

Definition at line 904 of file MaskedImage.h.

904 {return _image->getDimensions();}
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
int lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getHeight ( ) const
inline

Return the number of rows in the image.

Definition at line 903 of file MaskedImage.h.

903 { return _image->getHeight(); }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
ImagePtr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getImage ( bool const  noThrow = false) const
inline

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

Definition at line 869 of file MaskedImage.h.

869  {
870  if (!_image && !noThrow) {
871  throw LSST_EXCEPT(
872  lsst::pex::exceptions::RuntimeError,
873  "MaskedImage's Image is NULL"
874  );
875  }
876  return _image;
877  }
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
MaskPtr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getMask ( bool const  noThrow = false) const
inline

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

Definition at line 879 of file MaskedImage.h.

879  {
880  if (!_mask && !noThrow) {
881  throw LSST_EXCEPT(
882  lsst::pex::exceptions::RuntimeError,
883  "MaskedImage's Mask is NULL"
884  );
885  }
886 
887  return _mask;
888  }
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
VariancePtr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getVariance ( bool const  noThrow = false) const
inline

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

Definition at line 890 of file MaskedImage.h.

890  {
891  if (!_variance && !noThrow) {
892  throw LSST_EXCEPT(
893  lsst::pex::exceptions::RuntimeError,
894  "MaskedImage's Variance is NULL"
895  );
896  }
897 
898  return _variance;
899  }
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
int lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getWidth ( ) const
inline

Return the number of columns in the image.

Definition at line 901 of file MaskedImage.h.

901 { return _image->getWidth(); }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
int lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getX0 ( ) const
inline

Return the image's row-origin

This will usually be 0 except for images created using the MaskedImage(fileName, hdu, BBox, mode) ctor or MaskedImage(ImageBase, BBox) cctor The origin can be reset with setXY0()

Definition at line 913 of file MaskedImage.h.

913 { return _image->getX0(); }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
geom::Point2I lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getXY0 ( ) const
inline

Return the image's origin

This will usually be (0, 0) except for images created using the MaskedImage(fileName, hdu, BBox, mode) ctor or MaskedImage(ImageBase, BBox) cctor The origin can be reset with setXY0

Definition at line 929 of file MaskedImage.h.

929 { return _image->getXY0(); }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
int lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::getY0 ( ) const
inline

Return the image's column-origin

This will usually be 0 except for images created using the MaskedImage(fileName, hdu, BBox, mode) ctor or MaskedImage(ImageBase, BBox) cctor The origin can be reset with setXY0()

Definition at line 921 of file MaskedImage.h.

921 { return _image->getY0(); }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
double lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::indexToPosition ( double  ind,
lsst::afw::image::xOrY const  xy 
) const
inline

Convert image index to image position (see Image::indexToPosition)

Returns
image position
Parameters
indimage index
xyIs this a column or row coordinate?

Definition at line 971 of file MaskedImage.h.

974  {
975  return getImage()->indexToPosition(ind, xy);
976  }
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
template<typename ImagePixelT, typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator*= ( ImagePixelT const  rhs)

Definition at line 450 of file MaskedImage.cc.

450  {
451  *_image *= rhs;
452  *_variance *= rhs*rhs;
453 }
template<typename ImagePixelT, typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator*= ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs)

Definition at line 421 of file MaskedImage.cc.

421  {
422  // Must do variance before we modify the image values
423  transform_pixels(_image->_getRawView(), // lhs
424  rhs._image->_getRawView(), // rhs,
425  _variance->_getRawView(), // Var(lhs),
426  rhs._variance->_getRawView(), // Var(rhs)
427  _variance->_getRawView(), // result
428  productVariance<ImagePixelT, VariancePixelT>());
429 
430  *_image *= *rhs.getImage();
431  *_mask |= *rhs.getMask();
432 }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator*= ( lsst::afw::image::Image< ImagePixelT > const &  rhs)
inline

Definition at line 769 of file MaskedImage.h.

769  {
770  *_image *= rhs;
771  *_variance *= rhs; // yes, multiply twice
772  *_variance *= rhs;
773  }
template<typename ImagePixelT, typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator+= ( ImagePixelT const  rhs)

Add a scalar rhs to a MaskedImage.

Definition at line 365 of file MaskedImage.cc.

365  {
366  *_image += rhs;
367 }
template<typename ImagePixelT, typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator+= ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs)

Add a MaskedImage rhs to a MaskedImage

The image and variances are added; the masks are ORd together

Note
The pixels in the two images are taken to be independent. There is a Pixel operation (plus) which models the covariance, but this is not (yet?) available as full-MaskedImage operators

Definition at line 342 of file MaskedImage.cc.

342  {
343  *_image += *rhs.getImage();
344  *_mask |= *rhs.getMask();
345  *_variance += *rhs.getVariance();
346 }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator+= ( lsst::afw::image::Image< ImagePixelT > const &  rhs)
inline

Definition at line 749 of file MaskedImage.h.

749  {
750  *_image += rhs;
751  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator+= ( lsst::afw::math::Function2< double > const &  function)
inline

Definition at line 752 of file MaskedImage.h.

752  {
753  *_image += function;
754  }
template<typename ImagePixelT, typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator-= ( ImagePixelT const  rhs)

Subtract a scalar rhs from a MaskedImage.

Definition at line 396 of file MaskedImage.cc.

396  {
397  *_image -= rhs;
398 }
template<typename ImagePixelT, typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator-= ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs)

Subtract a MaskedImage rhs from a MaskedImage

The images are subtracted; the masks are ORd together; and the variances are added

Note
the pixels in the two images are taken to be independent

Definition at line 375 of file MaskedImage.cc.

375  {
376  *_image -= *rhs.getImage();
377  *_mask |= *rhs.getMask();
378  *_variance += *rhs.getVariance();
379 }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator-= ( lsst::afw::image::Image< ImagePixelT > const &  rhs)
inline

Definition at line 759 of file MaskedImage.h.

759  {
760  *_image -= rhs;
761  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator-= ( lsst::afw::math::Function2< double > const &  function)
inline

Definition at line 762 of file MaskedImage.h.

762  {
763  *_image -= function;
764  }
template<typename ImagePixelT, typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator/= ( ImagePixelT const  rhs)

Definition at line 507 of file MaskedImage.cc.

507  {
508  *_image /= rhs;
509  *_variance /= rhs*rhs;
510 }
template<typename ImagePixelT, typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator/= ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs)

Definition at line 478 of file MaskedImage.cc.

478  {
479  // Must do variance before we modify the image values
480  transform_pixels(_image->_getRawView(), // lhs
481  rhs._image->_getRawView(), // rhs,
482  _variance->_getRawView(), // Var(lhs),
483  rhs._variance->_getRawView(), // Var(rhs)
484  _variance->_getRawView(), // result
485  quotientVariance<ImagePixelT, VariancePixelT>());
486 
487  *_image /= *rhs.getImage();
488  *_mask |= *rhs.getMask();
489 }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator/= ( lsst::afw::image::Image< ImagePixelT > const &  rhs)
inline

Definition at line 778 of file MaskedImage.h.

778  {
779  *_image /= rhs;
780  *_variance /= rhs; // yes, divide twice
781  *_variance /= rhs;
782  }
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator<<= ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs)

Copy the pixels from the rhs to the lhs

Note
operator=() is not equivalent to this command

Definition at line 328 of file MaskedImage.cc.

328  {
329  *_image <<= *rhs.getImage();
330  *_mask <<= *rhs.getMask();
331  *_variance <<= *rhs.getVariance();
332 }
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > & lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator= ( image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs)

Make the lhs use the rhs's pixels.

If you are copying a scalar value, a simple lhs = scalar; is OK, but this is probably not the function that you want to use with an image. To copy pixel values from the rhs use operator<<=()

Parameters
rhsRight hand side

Definition at line 279 of file MaskedImage.cc.

280  {}
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > & lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator= ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::Pixel const &  rhs)

Set the pixels in the MaskedImage to the rhs

Definition at line 301 of file MaskedImage.cc.

301  {
302  *_image = rhs.image();
303  *_mask = rhs.mask();
304  *_variance = rhs.variance();
305 
306  return *this;
307 }
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > & lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::operator= ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::SinglePixel const &  rhs)

Set the pixels in the MaskedImage to the rhs

Definition at line 314 of file MaskedImage.cc.

314  {
315  *_image = rhs.image();
316  *_mask = rhs.mask();
317  *_variance = rhs.variance();
318 
319  return *this;
320 }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
std::pair<int, double> lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::positionToIndex ( double const  pos,
lsst::afw::image::xOrY const  xy 
) const
inline

Convert image position to index (see Image::positionToIndex)

Returns
std::pair(nearest integer index, fractional part)
Parameters
posimage position
xyIs this a column or row coordinate?

Definition at line 983 of file MaskedImage.h.

986  {
987  return getImage()->positionToIndex(pos, xy);
988  }
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::reverse_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::rbegin ( ) const

Return a reverse_iterator to the start of the image.

Definition at line 673 of file MaskedImage.cc.

673  {
674  typename Image::reverse_iterator imageBegin = _image->rbegin();
675  typename Mask::reverse_iterator maskBegin = _mask->rbegin();
676  typename Variance::reverse_iterator varianceBegin = _variance->rbegin();
677 
678  return reverse_iterator(imageBegin, maskBegin, varianceBegin);
679 }
_view_t::reverse_iterator reverse_iterator
An STL compliant reverse iterator.
Definition: Image.h:147
MaskedImageIterator< typename Image::reverse_iterator, typename Mask::reverse_iterator, typename Variance::reverse_iterator > reverse_iterator
Definition: MaskedImage.h:570
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
static MaskedImage lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::readFits ( std::string const &  filename)
inlinestatic

Read a MaskedImage from a regular FITS file.

Parameters
[in]filenameName of the file to read.

Definition at line 854 of file MaskedImage.h.

854  {
855  return MaskedImage<ImagePixelT, MaskPixelT, VariancePixelT>(filename);
856  }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
static MaskedImage lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::readFits ( fits::MemFileManager manager)
inlinestatic

Read a MaskedImage from a FITS RAM file.

Parameters
[in]managerObject that manages the memory to be read.

Definition at line 863 of file MaskedImage.h.

863  {
864  return MaskedImage<ImagePixelT, MaskPixelT, VariancePixelT>(manager);
865  }
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::reverse_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::rend ( ) const

Return a reverse_iterator to the end of the image.

Definition at line 683 of file MaskedImage.cc.

683  {
684  typename Image::reverse_iterator imageEnd = getImage()->rend();
685  typename Mask::reverse_iterator maskEnd = getMask()->rend();
686  typename Variance::reverse_iterator varianceEnd = getVariance()->rend();
687 
688  return reverse_iterator(imageEnd, maskEnd, varianceEnd);
689 }
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
_view_t::reverse_iterator reverse_iterator
An STL compliant reverse iterator.
Definition: Image.h:147
MaskedImageIterator< typename Image::reverse_iterator, typename Mask::reverse_iterator, typename Variance::reverse_iterator > reverse_iterator
Definition: MaskedImage.h:570
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::x_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::row_begin ( int  y) const

Return an x_iterator to the start of the image.

Definition at line 693 of file MaskedImage.cc.

693  {
694  typename Image::x_iterator imageBegin = _image->row_begin(y);
695  typename Mask::x_iterator maskBegin = _mask->row_begin(y);
696  typename Variance::x_iterator varianceBegin = _variance->row_begin(y);
697 
698  return x_iterator(imageBegin, maskBegin, varianceBegin);
699 }
int y
MaskedImageIterator< typename Image::x_iterator, typename Mask::x_iterator, typename Variance::x_iterator > x_iterator
An iterator to a row of a MaskedImage.
Definition: MaskedImage.h:578
_view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
Definition: Image.h:151
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::x_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::row_end ( int  y) const

Return an x_iterator to the end of the image.

Definition at line 703 of file MaskedImage.cc.

703  {
704  typename Image::x_iterator imageEnd = getImage()->row_end(y);
705  typename Mask::x_iterator maskEnd = getMask()->row_end(y);
706  typename Variance::x_iterator varianceEnd = getVariance()->row_end(y);
707 
708  return x_iterator(imageEnd, maskEnd, varianceEnd);
709 }
int y
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
MaskedImageIterator< typename Image::x_iterator, typename Mask::x_iterator, typename Variance::x_iterator > x_iterator
An iterator to a row of a MaskedImage.
Definition: MaskedImage.h:578
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879
_view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
Definition: Image.h:151
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::scaledDivides ( double const  c,
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs 
)

Definition at line 492 of file MaskedImage.cc.

493  {
494  // Must do variance before we modify the image values
495  transform_pixels(_image->_getRawView(), // lhs
496  rhs._image->_getRawView(), // rhs,
497  _variance->_getRawView(), // Var(lhs),
498  rhs._variance->_getRawView(), // Var(rhs)
499  _variance->_getRawView(), // result
500  scaledQuotientVariance<ImagePixelT, VariancePixelT>(c));
501 
502  (*_image).scaledDivides(c, *rhs.getImage());
503  *_mask |= *rhs._mask;
504 }
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::scaledMinus ( double const  c,
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs 
)

Subtract a scaled MaskedImage c*rhs from a MaskedImage

The images are subtracted; the masks are ORd together; and the variances are added

Note
the pixels in the two images are taken to be independent

Definition at line 387 of file MaskedImage.cc.

388  {
389  (*_image).scaledMinus(c, *rhs.getImage());
390  *_mask |= *rhs.getMask();
391  (*_variance).scaledPlus(c*c, *rhs.getVariance());
392 }
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::scaledMultiplies ( double const  c,
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs 
)

Definition at line 435 of file MaskedImage.cc.

436  {
437  // Must do variance before we modify the image values
438  transform_pixels(_image->_getRawView(), // lhs
439  rhs._image->_getRawView(), // rhs,
440  _variance->_getRawView(), // Var(lhs),
441  rhs._variance->_getRawView(), // Var(rhs)
442  _variance->_getRawView(), // result
443  scaledProductVariance<ImagePixelT, VariancePixelT>(c));
444 
445  (*_image).scaledMultiplies(c, *rhs.getImage());
446  *_mask |= *rhs.getMask();
447 }
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::scaledPlus ( double const  c,
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > const &  rhs 
)

Add a scaled MaskedImage c*rhs to a MaskedImage

The image and variances are added; the masks are ORd together

Note
The pixels in the two images are taken to be independent. There is a Pixel operation (plus) which models the covariance, but this is not (yet?) available as full-MaskedImage operators

Definition at line 356 of file MaskedImage.cc.

357  {
358  (*_image).scaledPlus(c, *rhs.getImage());
359  *_mask |= *rhs.getMask();
360  (*_variance).scaledPlus(c*c, *rhs.getVariance());
361 }
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::setXY0 ( int const  x0,
int const  y0 
)
inline

Set the MaskedImage's origin

The origin is usually set by the constructor, so you shouldn't need this function

Note
There are use cases (e.g. memory overlays) that may want to set these values, but don't do so unless you are an Expert.

Definition at line 939 of file MaskedImage.h.

939  {
941  }
void setXY0(int const x0, int const y0)
Definition: MaskedImage.h:939
int const x0
Definition: saturated.cc:45
A coordinate class intended to represent absolute positions.
Definition: PSF.h:39
int const y0
Definition: saturated.cc:45
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::setXY0 ( geom::Point2I const  origin)
inline

Set the MaskedImage's origin

The origin is usually set by the constructor, so you shouldn't need this function

Note
There are use cases (e.g. memory overlays) that may want to set these values, but don't do so unless you are an Expert.

Definition at line 951 of file MaskedImage.h.

951  {
952  if (_image) {
953  _image->setXY0(origin);
954  }
955 
956  if (_mask) {
957  _mask->setXY0(origin);
958  }
959 
960  if (_variance) {
961  _variance->setXY0(origin);
962  }
963  }
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::swap ( MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > &  rhs)

Definition at line 284 of file MaskedImage.cc.

284  {
285  using std::swap; // See Meyers, Effective C++, Item 25
286 
287  _image.swap(rhs._image);
288  _mask.swap(rhs._mask);
289  _variance.swap(rhs._variance);
290 }
void swap(ImageBase< PixelT > &a, ImageBase< PixelT > &b)
Definition: Image.cc:291
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::writeFits ( std::string const &  fileName,
boost::shared_ptr< daf::base::PropertySet const >  metadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  imageMetadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  maskMetadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  varianceMetadata = boost::shared_ptr< daf::base::PropertySet const>() 
) const

Write a MaskedImage to a regular FITS file.

Parameters
[in]fileNameName of the file to write. When writing separate files, this is the "base" of the filename (e.g. foo reads foo_{img.msk.var}.fits).
[in]metadataAdditional values to write to the primary HDU header (may be null).
[in]imageMetadataMetadata to be written to the image header.
[in]maskMetadataMetadata to be written to the mask header.
[in]varianceMetadataMetadata to be written to the variance header.

The FITS file will have four HDUs; the primary HDU will contain only metadata, while the image, mask, and variance HDU headers will use the "INHERIT='T'" convention to indicate that the primary metadata applies to those HDUs as well.

Definition at line 513 of file MaskedImage.cc.

519  {
520  fits::Fits fitsfile(fileName, "w", fits::Fits::AUTO_CLOSE | fits::Fits::AUTO_CHECK);
521  writeFits(fitsfile, metadata, imageMetadata, maskMetadata, varianceMetadata);
522 }
void writeFits(std::string const &fileName, boost::shared_ptr< daf::base::PropertySet const > metadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > imageMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > maskMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > varianceMetadata=boost::shared_ptr< daf::base::PropertySet const >()) const
Write a MaskedImage to a regular FITS file.
Definition: MaskedImage.cc:513
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::writeFits ( fits::MemFileManager manager,
boost::shared_ptr< daf::base::PropertySet const >  metadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  imageMetadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  maskMetadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  varianceMetadata = boost::shared_ptr< daf::base::PropertySet const>() 
) const

Write a MaskedImage to a FITS RAM file.

Parameters
[in]managerManager object for the memory block to write to.
[in]metadataAdditional values to write to the primary HDU header (may be null).
[in]imageMetadataMetadata to be written to the image header.
[in]maskMetadataMetadata to be written to the mask header.
[in]varianceMetadataMetadata to be written to the variance header.

The FITS file will have four HDUs; the primary HDU will contain only metadata, while the image, mask, and variance HDU headers will use the "INHERIT='T'" convention to indicate that the primary metadata applies to those HDUs as well.

Definition at line 525 of file MaskedImage.cc.

531  {
532  fits::Fits fitsfile(manager, "w", fits::Fits::AUTO_CLOSE | fits::Fits::AUTO_CHECK);
533  writeFits(fitsfile, metadata, imageMetadata, maskMetadata, varianceMetadata);
534 }
void writeFits(std::string const &fileName, boost::shared_ptr< daf::base::PropertySet const > metadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > imageMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > maskMetadata=boost::shared_ptr< daf::base::PropertySet const >(), boost::shared_ptr< daf::base::PropertySet const > varianceMetadata=boost::shared_ptr< daf::base::PropertySet const >()) const
Write a MaskedImage to a regular FITS file.
Definition: MaskedImage.cc:513
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT >
void lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::writeFits ( fits::Fits fitsfile,
boost::shared_ptr< daf::base::PropertySet const >  metadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  imageMetadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  maskMetadata = boost::shared_ptr< daf::base::PropertySet const>(),
boost::shared_ptr< daf::base::PropertySet const >  varianceMetadata = boost::shared_ptr< daf::base::PropertySet const>() 
) const

Write a MaskedImage to a FITS RAM file.

Parameters
[in]fitsfileAn empty FITS file object.
[in]metadataAdditional values to write to the primary HDU header (may be null).
[in]imageMetadataMetadata to be written to the image header.
[in]maskMetadataMetadata to be written to the mask header.
[in]varianceMetadataMetadata to be written to the variance header.

The FITS file will have four HDUs; the primary HDU will contain only metadata, while the image, mask, and variance HDU headers will use the "INHERIT='T'" convention to indicate that the primary metadata applies to those HDUs as well.

Definition at line 555 of file MaskedImage.cc.

561  {
562 
564  if (metadata) {
565  hdr = metadata->deepCopy();
566  } else {
567  hdr.reset(new daf::base::PropertyList());
568  }
569 
570  if (fitsfile.countHdus() != 0) {
571  throw LSST_EXCEPT(
572  pex::exceptions::LogicError,
573  "MaskedImage::writeFits can only write to an empty file"
574  );
575  }
576  if (fitsfile.getHdu() <= 1) {
577  // Don't ever write images to primary; instead we make an empty primary.
578  fitsfile.createEmpty();
579  } else {
580  fitsfile.setHdu(1);
581  }
582  fitsfile.writeMetadata(*hdr);
583 
584  processPlaneMetadata(imageMetadata, hdr, "IMAGE");
585  _image->writeFits(fitsfile, hdr);
586 
587  processPlaneMetadata(maskMetadata, hdr, "MASK");
588  _mask->writeFits(fitsfile, hdr);
589 
590  processPlaneMetadata(varianceMetadata, hdr, "VARIANCE");
591  _variance->writeFits(fitsfile, hdr);
592 }
#define PTR(...)
Definition: base.h:41
lsst::daf::base::PropertyList PropertyList
Definition: Wcs.cc:58
lsst::daf::base::PropertySet PropertySet
Definition: Wcs.cc:57
if(width!=gim.getWidth()||height!=gim.getHeight()||x0!=gim.getX0()||y0!=gim.getY0())
Definition: saturated.cc:47
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
x_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::x_at ( int  x,
int  y 
) const
inline

Return an x_iterator at the point (x, y)

Definition at line 1006 of file MaskedImage.h.

1006  {
1007 #if 0
1008  typename Image::x_iterator imageEnd = getImage()->x_at(x, y);
1009  typename Mask::x_iterator maskEnd = getMask()->x_at(x, y);
1010  typename Variance::x_iterator varianceEnd = getVariance()->x_at(x, y);
1011 #else // bypass checks for non-NULL pointers
1012  typename Image::x_iterator imageEnd = _image->x_at(x, y);
1013  typename Mask::x_iterator maskEnd = _mask->x_at(x, y);
1014  typename Variance::x_iterator varianceEnd = _variance->x_at(x, y);
1015 #endif
1016 
1017  return x_iterator(imageEnd, maskEnd, varianceEnd);
1018  }
int y
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
MaskedImageIterator< typename Image::x_iterator, typename Mask::x_iterator, typename Variance::x_iterator > x_iterator
An iterator to a row of a MaskedImage.
Definition: MaskedImage.h:578
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
int x
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879
_view_t::x_iterator x_iterator
An iterator for traversing the pixels in a row.
Definition: Image.h:151
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
xy_locator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::xy_at ( int  x,
int  y 
) const
inline

Return an xy_locator at the point (x, y)

Definition at line 1039 of file MaskedImage.h.

1039  {
1040 #if 0
1041  typename Image::xy_locator imageEnd = getImage()->xy_at(x, y);
1042  typename Mask::xy_locator maskEnd = getMask()->xy_at(x, y);
1043  typename Variance::xy_locator varianceEnd = getVariance()->xy_at(x, y);
1044 #else // bypass checks for non-NULL pointers
1045  typename Image::xy_locator imageEnd = _image->xy_at(x, y);
1046  typename Mask::xy_locator maskEnd = _mask->xy_at(x, y);
1047  typename Variance::xy_locator varianceEnd = _variance->xy_at(x, y);
1048 #endif
1049 
1050  return xy_locator(imageEnd, maskEnd, varianceEnd);
1051  }
int y
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
MaskedImageLocator< typename Image::xy_locator, typename Mask::xy_locator, typename Variance::xy_locator > xy_locator
A locator for a MaskedImage.
Definition: MaskedImage.h:594
_view_t::xy_locator xy_locator
An xy_locator.
Definition: Image.h:139
int x
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
y_iterator lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::y_at ( int  x,
int  y 
) const
inline

Return an y_iterator at the point (x, y)

Definition at line 1024 of file MaskedImage.h.

1024  {
1025 #if 0
1026  typename Image::y_iterator imageEnd = getImage()->y_at(x, y);
1027  typename Mask::y_iterator maskEnd = getMask()->y_at(x, y);
1028  typename Variance::y_iterator varianceEnd = getVariance()->y_at(x, y);
1029 #else // bypass checks for non-NULL pointers
1030  typename Image::y_iterator imageEnd = _image->y_at(x, y);
1031  typename Mask::y_iterator maskEnd = _mask->y_at(x, y);
1032  typename Variance::y_iterator varianceEnd = _variance->y_at(x, y);
1033 #endif
1034  return y_iterator(imageEnd, maskEnd, varianceEnd);
1035  }
int y
ImagePtr getImage(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s image.
Definition: MaskedImage.h:869
_view_t::y_iterator y_iterator
An iterator for traversing the pixels in a column.
Definition: Image.h:160
MaskedImageIterator< typename Image::y_iterator, typename Mask::y_iterator, typename Variance::y_iterator > y_iterator
An iterator to a column of a MaskedImage.
Definition: MaskedImage.h:587
VariancePtr getVariance(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s variance.
Definition: MaskedImage.h:890
int x
MaskPtr getMask(bool const noThrow=false) const
Return a (Ptr to) the MaskedImage&#39;s mask.
Definition: MaskedImage.h:879

Member Data Documentation

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
ImagePtr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::_image
private

Definition at line 1058 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
MaskPtr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::_mask
private

Definition at line 1059 of file MaskedImage.h.

template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
VariancePtr lsst.afw.image::MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT >::_variance
private

Definition at line 1060 of file MaskedImage.h.


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