1 #ifndef IMAGEANALYSIS_STATIMAGECREATOR_H
2 #define IMAGEANALYSIS_STATIMAGECREATOR_H
93 std::pair<uInt, uInt>
_grid = std::make_pair(1,1);
146 const std::pair<casacore::uInt, casacore::uInt>& start
A Vector of integers, for indexing into Array<T> objects.
void useReferencePixelAsAnchor()
rounds reference pixel to nearest ints, if necessary
void setRadius(const Quantity &radius)
set radius for circle subregion over which to carry out individual statistics computations.
Temporary astronomical images.
casacore::String _statName
std::shared_ptr< StatisticsAlgorithm< Double, Array< Float >::const_iterator, Array< Bool >::const_iterator > > _getStatsAlgorithm(String &algName) const
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
void _interpolate(casacore::Matrix< casacore::Float > &result, casacore::Matrix< casacore::Bool > &resultMask, const casacore::Matrix< casacore::Float > &storage, const casacore::Matrix< casacore::Bool > &storeMask, const std::pair< casacore::uInt, casacore::uInt > &start) const
start is the pixel offset in the result matrix relative the storage matrix.
Quantum< Double > Quantity
Bool _supportsMultipleBeams() const
does this task support images with multiple beams? false means it never does.
CasacRegionManager::StokesControl _getStokesControl() const
void setRectangle(const Quantity &xLength, const Quantity &yLength)
set a rectangular subregion over which to carry out individual statistics computations.
casacore::Interpolate2D _interpolater
void setAnchorPosition(Int x, Int y)
set the anchor pixel value.
std::shared_ptr< const casacore::ImageInterface< casacore::Float > > SPCIIF
void _computeStat(TempImage< Float > &writeTo, SPCIIF subImage, uInt nxpts, uInt nypts, Int xstart, Int ystart)
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
std::vector< Coordinate::Type > _getNecessaryCoordinates() const
Represents the minimum set of coordinates necessary for the task to function.
Bool _mustHaveSquareDirectionPixels() const
StatImageCreator()=delete
Create a "statistic" image from an image.
void setGridSpacing(uInt x, uInt y)
set spacing between grid pixels.
~StatImageCreator()
destructor
Vector< Double > _anchor
_anchor pixel world coordinates
void setStatType(casacore::StatisticsData::STATS s)
void setStatType(casacore::LatticeStatsBase::StatisticsTypes s);
void setInterpAlgorithm(Interpolate2D::Method alg)
set interpolation algortihm
std::shared_ptr< casacore::ImageInterface< casacore::Float > > SPIIF
A two dimension interpolator for Matrices or Arrays.
std::pair< uInt, uInt > _grid
String: the storage and methods of handling collections of characters.
void _nominalChunkInfo(std::shared_ptr< Array< Bool >> &chunkMask, uInt &xBlcOff, uInt &yBlcOff, uInt &xChunkSize, uInt &yChunkSize, SPCIIF subimage) const
the Blc offsets are the pixel offsets from the grid point
void _doStatsLoop(casacore::TempImage< Float > &writeTo, casacore::RO_MaskedLatticeIterator< Float > &lattIter, casacore::uInt nxpts, casacore::uInt nypts, casacore::Int xstart, casacore::Int ystart, casacore::uInt xBlcOff, casacore::uInt yBlcOff, casacore::uInt xChunkSize, casacore::uInt yChunkSize, const casacore::IPosition &imshape, const casacore::IPosition &chunkShape, std::shared_ptr< casacore::Array< casacore::Bool >> regionMask, std::shared_ptr< casacore::StatisticsAlgorithm< casacore::Double, casacore::Array< casacore::Float >::const_iterator, casacore::Array< casacore::Bool >::const_iterator, casacore::Array< casacore::Float >::const_iterator > > &alg, const casacore::Array< casacore::Bool > ®MaskCopy, const casacore::IPosition &loopAxes, casacore::uInt nPts)
Base class of statistics algorithm class hierarchy.
casacore::StatisticsData::STATS _statType
void _doInterpolation(SPIIF output, TempImage< Float > &store, SPCIIF subImage, uInt nxpts, uInt nypts, Int xstart, Int ystart) const
A readonly iterator for masked Lattices.