|
static std::shared_ptr
< casacore::SubImage< T > > | createSubImageRW (casacore::CountedPtr< casacore::ImageRegion > &outRegion, casacore::CountedPtr< casacore::ImageRegion > &outMask, casacore::ImageInterface< T > &inImage, const casacore::Record ®ion, const casacore::String &mask, casacore::LogIO *const &os, const casacore::AxesSpecifier &axesSpecifier=casacore::AxesSpecifier(), casacore::Bool extendMask=false, casacore::Bool preserveAxesOrder=false) |
| Factory method to create a casacore::SubImage from a region and a casacore::WCLELMask string. More...
|
|
static std::shared_ptr
< casacore::SubImage< T > > | createSubImageRW (casacore::ImageInterface< T > &inImage, const casacore::Record ®ion, const casacore::String &mask, casacore::LogIO *const &os, const casacore::AxesSpecifier &axesSpecifier=casacore::AxesSpecifier(), casacore::Bool extendMask=false, casacore::Bool preserveAxesOrder=false) |
| variant on previous method where caller doesn't have to worry about creating pointers it does not need returned. More...
|
|
static std::shared_ptr< const
casacore::SubImage< T > > | createSubImageRO (casacore::CountedPtr< casacore::ImageRegion > &outRegion, casacore::CountedPtr< casacore::ImageRegion > &outMask, const casacore::ImageInterface< T > &inImage, const casacore::Record ®ion, const casacore::String &mask, casacore::LogIO *const &os, const casacore::AxesSpecifier &axesSpecifier=casacore::AxesSpecifier(), casacore::Bool extendMask=false, casacore::Bool preserveAxesOrder=false) |
| The const casacore::ImageInterface versions where the resulting casacore::SubImage is not writable. More...
|
|
static std::shared_ptr< const
casacore::SubImage< T > > | createSubImageRO (const casacore::ImageInterface< T > &inImage, const casacore::Record ®ion, const casacore::String &mask, casacore::LogIO *const &os, const casacore::AxesSpecifier &axesSpecifier=casacore::AxesSpecifier(), casacore::Bool extendMask=false, casacore::Bool preserveAxesOrder=false) |
| variant on previous method where caller doesn't have to worry about creating pointers it does not need returned. More...
|
|
static SPIIT | createImage (const casacore::ImageInterface< T > &image, const casacore::String &outfile, const casacore::Record ®ion, const casacore::String &mask, casacore::Bool dropDegenerateAxes, casacore::Bool overwrite, casacore::Bool list, casacore::Bool extendMask, casacore::Bool attachMask=false, const casacore::Lattice< T > *const data=nullptr) |
| return a true copy (ie underlying data is a copy of the original, not a reference) of the subimage selected in the given region. More...
|
|
static SPIIT | createImage (const casacore::ImageInterface< T > &image, const casacore::String &outfile, const casacore::Record ®ion, const casacore::String &mask, const casacore::AxesSpecifier &axesSpec, casacore::Bool overwrite, casacore::Bool list, casacore::Bool extendMask, casacore::Bool attachMask=false, const casacore::Lattice< T > *const data=nullptr) |
|
template<class T>
class casa::SubImageFactory< T >
Static methods for subimage creation.
Intended use:
Public interface
Review Status
- Test programs:
- tSubImageFactory
Prerequisite
Synopsis
Factory methods for creating subimages
Motivation
Definition at line 63 of file SubImageFactory.h.
Factory method to create a casacore::SubImage from a region and a casacore::WCLELMask string.
Moved from ImageAnalysis outRegion
Pointer to the corresponding region. Pointer is created internally by new(); it is the caller's responsibility to delete it. outMask
Pointer to corresponding mask. Pointer is created internally via new(); it is the caller's responsibility to delete it. inImage
input image for which a subimage is desired. region
casacore::Input region record from which to make the subimage. mask
LEL mask description. os
Pointer to logger to which to log messages. If null, no logging (except exceptions). writableIfPossible
make the subimage writable. If input image is not writable, this will always be false. axesSpecifier
Specifier for output axes. extendMask
If the mask has one or more of degenerate axes whereas the corresponding axes of inImage
are not, extend the mask to match the shape of the input image. preserveAxesOrder
. Only used when dropping degenerate axes and coordinate order and axes order are not the same. In that case, if false, the pixel/world axes order of the returned image will be different from the input, if true it will be the same. If not dropping degenerate axes or if coordinate order and axes order are the same in the input image's coordinate system, the output axex order will always be preserved.