casa::ImageMaskedPixelReplacer< T > Class Template Reference

#include <ImageMaskedPixelReplacer.h>

Inheritance diagram for casa::ImageMaskedPixelReplacer< T >:
casa::ImageTask< T >

List of all members.

Public Member Functions

 ImageMaskedPixelReplacer (const SPIIT image, const Record *const &region, const String &maskInp)
 Top level interface for replacing masked pixel values of an image.
 ~ImageMaskedPixelReplacer ()
void replace (const String &expr, Bool updateMask, Bool verbose)
 Perform the substitution.
String getClass () const

Protected Member Functions

CasacRegionManager::StokesControl _getStokesControl () const
vector< Coordinate::Type > _getNecessaryCoordinates () const
 Represents the minimum set of coordinates necessary for the task to function.

Private Member Functions

 ImageMaskedPixelReplacer ()
 disallow default constructor

Static Private Member Functions

static void _makeRegionBlock (PtrBlock< const ImageRegion * > &imageRegions, const Record &regions)

Private Attributes

const SPIIT _image
 This class holds a writable image object to write pixel value changes to.

Static Private Attributes

static const String _class

Detailed Description

template<class T>
class casa::ImageMaskedPixelReplacer< T >

Definition at line 9 of file ImageMaskedPixelReplacer.h.


Constructor & Destructor Documentation

template<class T >
casa::ImageMaskedPixelReplacer< T >::ImageMaskedPixelReplacer ( const SPIIT  image,
const Record *const &  region,
const String &  maskInp 
)

Top level interface for replacing masked pixel values of an image.

Etymology

Replace masked pixel values of an image

Synopsis

Top level interface for replacing masked pixel values of an image The total pixel mask is calculated by a logical OR of the existing default image pixel mask when the mask specified by mask. Pixel replacement is done in place; ie on the image passed to the constructor. No copy of that image is made.

template<class T >
casa::ImageMaskedPixelReplacer< T >::~ImageMaskedPixelReplacer (  )  [inline]

Definition at line 40 of file ImageMaskedPixelReplacer.h.

template<class T >
casa::ImageMaskedPixelReplacer< T >::ImageMaskedPixelReplacer (  )  [private]

disallow default constructor


Member Function Documentation

template<class T >
vector<Coordinate::Type> casa::ImageMaskedPixelReplacer< T >::_getNecessaryCoordinates (  )  const [inline, protected, virtual]

Represents the minimum set of coordinates necessary for the task to function.

Implements casa::ImageTask< T >.

Definition at line 53 of file ImageMaskedPixelReplacer.h.

template<class T >
CasacRegionManager::StokesControl casa::ImageMaskedPixelReplacer< T >::_getStokesControl (  )  const [inline, protected, virtual]
template<class T >
static void casa::ImageMaskedPixelReplacer< T >::_makeRegionBlock ( PtrBlock< const ImageRegion * > &  imageRegions,
const Record &  regions 
) [static, private]
template<class T >
String casa::ImageMaskedPixelReplacer< T >::getClass (  )  const [virtual]

Implements casa::ImageTask< T >.

template<class T >
void casa::ImageMaskedPixelReplacer< T >::replace ( const String &  expr,
Bool  updateMask,
Bool  verbose 
)

Perform the substitution.

expr is the LEL expression to use for the new pixel values. If updateMask is True, the False mask values will be changed to True.


Member Data Documentation

template<class T >
const String casa::ImageMaskedPixelReplacer< T >::_class [static, private]

Definition at line 58 of file ImageMaskedPixelReplacer.h.

template<class T >
const SPIIT casa::ImageMaskedPixelReplacer< T >::_image [private]

This class holds a writable image object to write pixel value changes to.

Reimplemented from casa::ImageTask< T >.

Definition at line 62 of file ImageMaskedPixelReplacer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1