casa
5.7.0-16
|
#include <ImageMaskHandler.h>
Public Member Functions | |
ImageMaskHandler (SPIIT) | |
Perform various image mask operations. More... | |
~ImageMaskHandler () | |
void | set (const casacore::String &name) |
set default mask. More... | |
casacore::String | defaultMask () const |
return the default mask name More... | |
void | deleteMasks (const std::set< casacore::String > &masks) |
delete specified masks More... | |
void | rename (const casacore::String &oldName, const casacore::String &newName) |
rename a mask More... | |
casacore::Vector < casacore::String > | get () const |
get all mask names More... | |
void | copy (const casacore::String ¤tName, const casacore::String &newName) |
copy mask More... | |
void | calcmask (const casacore::String &mask, casacore::Record ®ions, const casacore::String &name, casacore::Bool asdefault=true) |
template<class U > | |
void | copy (const casacore::MaskedLattice< U > &mask) |
copy the mask from the specified lattice to the image's (default) mask. More... | |
Private Member Functions | |
void | _calcmask (const casacore::LatticeExprNode &node, const casacore::String &name, const casacore::Bool makedefault) |
Static Private Member Functions | |
static void | _makeRegionBlock (casacore::PtrBlock< const casacore::ImageRegion * > ®ions, const casacore::Record &Regions) |
Make a block of regions from a Record. More... | |
Private Attributes | |
const SPIIT | _image |
Definition at line 23 of file ImageMaskHandler.h.
casa::ImageMaskHandler< T >::ImageMaskHandler | ( | SPIIT | ) |
casa::ImageMaskHandler< T >::~ImageMaskHandler | ( | ) |
|
private |
|
staticprivate |
Make a block of regions from a Record.
void casa::ImageMaskHandler< T >::calcmask | ( | const casacore::String & | mask, |
casacore::Record & | regions, | ||
const casacore::String & | name, | ||
casacore::Bool | asdefault = true |
||
) |
void casa::ImageMaskHandler< T >::copy | ( | const casacore::String & | currentName, |
const casacore::String & | newName | ||
) |
copy mask
void casa::ImageMaskHandler< T >::copy | ( | const casacore::MaskedLattice< U > & | mask | ) |
copy the mask from the specified lattice to the image's (default) mask.
The mask and the image must have the same shape.
casacore::String casa::ImageMaskHandler< T >::defaultMask | ( | ) | const |
return the default mask name
void casa::ImageMaskHandler< T >::deleteMasks | ( | const std::set< casacore::String > & | masks | ) |
delete specified masks
casacore::Vector<casacore::String> casa::ImageMaskHandler< T >::get | ( | ) | const |
get all mask names
void casa::ImageMaskHandler< T >::rename | ( | const casacore::String & | oldName, |
const casacore::String & | newName | ||
) |
rename a mask
void casa::ImageMaskHandler< T >::set | ( | const casacore::String & | name | ) |
set default mask.
Empty string means unset default mask.
|
private |
Definition at line 74 of file ImageMaskHandler.h.