#include <ImageMaskedPixelReplacer.h>
Public Member Functions | |
ImageMaskedPixelReplacer (const SPIIT image, const Record *const ®ion, 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 ®ions) |
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 |
Definition at line 9 of file ImageMaskedPixelReplacer.h.
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.
Replace masked pixel values of an image
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.
casa::ImageMaskedPixelReplacer< T >::~ImageMaskedPixelReplacer | ( | ) | [inline] |
Definition at line 40 of file ImageMaskedPixelReplacer.h.
casa::ImageMaskedPixelReplacer< T >::ImageMaskedPixelReplacer | ( | ) | [private] |
disallow default constructor
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.
CasacRegionManager::StokesControl casa::ImageMaskedPixelReplacer< T >::_getStokesControl | ( | ) | const [inline, protected, virtual] |
Implements casa::ImageTask< T >.
Definition at line 49 of file ImageMaskedPixelReplacer.h.
References casa::CasacRegionManager::USE_ALL_STOKES.
static void casa::ImageMaskedPixelReplacer< T >::_makeRegionBlock | ( | PtrBlock< const ImageRegion * > & | imageRegions, | |
const Record & | regions | |||
) | [static, private] |
String casa::ImageMaskedPixelReplacer< T >::getClass | ( | ) | const [virtual] |
Implements casa::ImageTask< 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.
const String casa::ImageMaskedPixelReplacer< T >::_class [static, private] |
Definition at line 58 of file ImageMaskedPixelReplacer.h.
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.