1 #ifndef IMAGEANALYSIS_PIXELVALUEMANIPULATOR_H
2 #define IMAGEANALYSIS_PIXELVALUEMANIPULATOR_H
61 const std::pair<casacore::Int, casacore::Int> *
const &seeds
212 return std::vector<casacore::Coordinate::Type>();
258 #ifndef AIPS_NO_TEMPLATE_SRC
259 #include <imageanalysis/ImageAnalysis/PixelValueManipulator.tcc>
260 #endif //# AIPS_NO_TEMPLATE_SRC
A Vector of integers, for indexing into Array<T> objects.
casacore::Record getProfile(casacore::uInt axis, const casacore::String &function, const casacore::String &unit, PixelValueManipulatorData::SpectralType specType=PixelValueManipulatorData::DEFAULT, const casacore::Quantity *const restFreq=nullptr, const casacore::String &frame="")
get the aggregated values along the specified pixel axis using the region and mask at construction an...
SPIIT _doSingle(casacore::uInt axis, const casacore::String &function) const
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
AggregateType
Non-templated data related bits for ImageCollapser.
casacore::Record pixelValue(const casacore::Vector< casacore::Int > &pixel) const
virtual Type type()
Return the type enum.
static void put(SPIIT image, const casacore::Array< T > &pixelsArray, const casacore::Vector< casacore::Int > &blc, const casacore::Vector< casacore::Int > &inc, casacore::Bool list, casacore::Bool locking, casacore::Bool replicate)
casacore::Record _doWorld(SPIIT collapsed, const casacore::String &unit, PixelValueManipulatorData::SpectralType specType, const casacore::Quantity *const restFreq, const casacore::String &frame, casacore::uInt axis) const
static void makeRegionBlock(casacore::PtrBlock< const casacore::ImageRegion * > ®ions, const casacore::Record &Regions)
Make a block of regions from a Record public so ImageAnalysis can use it, once those methods have bee...
void setAxes(const casacore::IPosition &axes, casacore::Bool invert=false)
set axes to average over.
casacore::IPosition _lastChunkShape
SPIIT _doComposite(casacore::uInt axis, const casacore::String &function, Operator op) const
static const casacore::String _className
void setRegionName(const casacore::String &rname)
set region name for logging purposes.
static void insert(casacore::ImageInterface< T > &target, const casacore::ImageInterface< T > &image, const casacore::Record ®ion, const casacore::Vector< casacore::Double > &locatePixel, casacore::Bool verbose)
region refers to the region in the image to be inserted, not the region that was chosen at object con...
PixelValueManipulator()=delete
casacore::Vector< casacore::uInt > _npts(casacore::uInt axis) const
A base class for astronomical images.
Operator
Top level interface for getting and setting image pixel values.
void _doNoncomformantUnit(casacore::Vector< casacore::Double > &coords, const casacore::CoordinateSystem &csys, const casacore::String &unit, PixelValueManipulatorData::SpectralType specType, const casacore::Quantity *const restFreq, const casacore::String &axisUnit) const
casacore::Bool _hasLogfileSupport() const
by default, derived classes are configured to have no log file support.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::IPosition _axes
casacore::String _regionName
Quantities (i.e. dimensioned values)
A drop-in replacement for Block<T*>.
template <class T, class U> class vector;
static casacore::Bool putRegion(SPIIT image, const casacore::Array< T > &pixels, const casacore::Array< casacore::Bool > &mask, casacore::Record ®ion, casacore::Bool list, casacore::Bool usemask, casacore::Bool replicateArray)
std::shared_ptr< casacore::ImageInterface< casacore::Float > > SPIIF
static casacore::Record * coordMeasures(casacore::Quantum< T > &intensity, casacore::Record &direction, casacore::Record &frequency, casacore::Record &velocity, SPCIIT image, const casacore::Vector< casacore::Double > &pixel, const casacore::String &dirFrame, const casacore::String &freqFrame)
dirFrame and freqFrame are the codes for the frames for which it is desired that the returned measure...
std::vector< casacore::Coordinate::Type > _getNecessaryCoordinates() const
Represents the minimum set of coordinates necessary for the task to function.
String: the storage and methods of handling collections of characters.
SpectralType
Non-templated data related bits for PixelValueManipulator.
casacore::Bool _supportsMultipleRegions() const
static casacore::Bool set(SPIIF image, const casacore::String &pixels, const casacore::Int pixelmask, casacore::Record ®ion, const casacore::Bool list=false)
set specified pixels or mask equal to provided scalar value
void _checkUnit(const casacore::String &unit, const casacore::CoordinateSystem &csys, PixelValueManipulatorData::SpectralType specType) const
casacore::String getClass() const
static casacore::Record * getSlice(SPCIIT image, const casacore::Vector< casacore::Double > &x, const casacore::Vector< casacore::Double > &y, const casacore::Vector< casacore::Int > &axes, const casacore::Vector< casacore::Int > &coord, casacore::Int npts=0, const casacore::String &method="linear")
get a slice through the image.
Interconvert pixel and world coordinates.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
CasacRegionManager::StokesControl _getStokesControl() const
static void addNoise(SPIIT image, const casacore::String &type, const casacore::Record ®ion, const casacore::Vector< casacore::Double > &pars, casacore::Bool zero, const std::pair< casacore::Int, casacore::Int > *const &seeds)