29 #ifndef SYNTHESIS_SDALGORITHMBASE_H
30 #define SYNTHESIS_SDALGORITHMBASE_H
55 class SIMinorCycleController;
67 std::shared_ptr<SIImageStore> &imagestore,
78 virtual void restore( std::shared_ptr<SIImageStore> imagestore );
79 virtual void pbcor( std::shared_ptr<SIImageStore> imagestore );
A Vector of integers, for indexing into Array<T> objects.
void deconvolve(SIMinorCycleController &loopController, std::shared_ptr< SIImageStore > &imagestore, casacore::Int deconvolverid, casacore::Bool isautomasking=false, casacore::Bool fastnoise=true, casacore::Record robuststats=casacore::Record())
Non virtual.
virtual void initializeDeconvolver()=0
virtual void initializeDeconvolver(casacore::Float &peakresidual, casacore::Float &modelflux)=0; ...
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
casacore::IPosition itsMaxPos
casacore::Vector<casacore::Slicer> itsDecSlices; casacore::SubImage<casacore::Float> itsResidual...
casacore::GaussianBeam itsRestoringBeam
casacore::Array<casacore::Float> itsMatMask;
virtual casacore::uInt getNTaylorTerms()
virtual void finalizeDeconvolver()=0
Represents a Gaussian restoring beam associated with an image.
casacore::Float itsModelFlux
virtual casacore::Long estimateRAM(const std::vector< int > &imsize)
returns the estimate of memory used in kilobytes (kB);
virtual void takeOneStep(casacore::Float loopgain, casacore::Int cycleNiter, casacore::Float cycleThreshold, casacore::Float &peakresidual, casacore::Float &modelflux, casacore::Int &iterdone)=0
Pure virtual functions to be implemented by various algorithm deconvolvers.
casacore::String itsUseBeam
std::shared_ptr< SIImageStore > itsImages
SDAlgorithmBase()
Empty constructor.
virtual casacore::String getAlgorithmName()
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Bool findMaxAbs(const casacore::Array< casacore::Float > &lattice, casacore::Float &maxAbs, casacore::IPosition &posMaxAbs)
SDMaskHandler itsMaskHandler
virtual void queryDesiredShape(casacore::Int &nchanchunks, casacore::Int &npolchunks, casacore::IPosition imshape)
Base Class implements the option of single-plane images for the minor cycle.
casacore::String itsAlgorithmName
Algorithm name.
casacore::Bool findMaxAbsMask(const casacore::Array< casacore::Float > &lattice, const casacore::Array< casacore::Float > &mask, casacore::Float &maxAbs, casacore::IPosition &posMaxAbs)
virtual void restore(std::shared_ptr< SIImageStore > imagestore)
void setMaskOptions(casacore::String maskstring);
String: the storage and methods of handling collections of characters.
casacore::Float itsPeakResidual
virtual ~SDAlgorithmBase()
void setRestoringBeam(casacore::GaussianBeam restbeam, casacore::String usebeam)
casacore::Int checkStop(SIMinorCycleController &loopcontrols, casacore::Float currentresidual)
Non virtual.
virtual void pbcor(std::shared_ptr< SIImageStore > imagestore)