29 #ifndef SYNTHESIS_IMAGEMSCLEANER_H
30 #define SYNTHESIS_IMAGEMSCLEANER_H
37 template <
class T>
class Matrix;
38 template <
class T>
class ImageInterface;
casacore::Bool queryStopPointMode() const
After completion of cycle, querry this to find out if we stopped because of stopPointMode.
ImageMSCleaner & operator=(const ImageMSCleaner &other)
assignment operator
void stopAtLargeScaleNegative()
During early iterations of a cycled casacore::MS Clean in mosaicing, it common to come across an ocsi...
casacore::ImageInterface< casacore::Float > * psf_p
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
A class interfacing images to MatrixCleaner.
casacore::Float maxResidual()
Max residual after last clean.
casacore::Int iteration() const
return how many iterations we did do
void ignoreCenterBox(casacore::Bool ign)
Tell the algorithm to NOT clean just the inner quarter (This is useful when multiscale clean is being...
casacore::Float maskThresh_p
casacore::Int nMaskChan_p
~ImageMSCleaner()
The destructor.
casacore::ImageInterface< casacore::Float > * mask_p
void setPsf(casacore::ImageInterface< casacore::Float > &psf)
Change the psf image.
bool Bool
Define the standard types used by Casacore.
void startingIteration(const casacore::Int starting=0)
what iteration number to start on
void setMask(casacore::ImageInterface< casacore::Float > &mask, const casacore::Float &maskThreshold=0.9)
Set the mask mask - input mask lattice maskThreshold - if positive, the value is treated as a thresho...
casacore::Vector< casacore::Float > scales_p
casacore::ImageInterface< casacore::Float > * dirty_p
Set a number of scale sizes The units of the scale are pixels *void setscales(const casacore::Int nscales, const casacore::Float scaleInc=1.0)
A copy of casacore::LatticeCleaner but just using 2-D matrices.
casacore::Float maxResidual_p
casacore::Bool setcontrol(casacore::CleanEnums::CleanType cleanType, const casacore::Int niter, const casacore::Float gain, const casacore::Quantity &aThreshold, const casacore::Quantity &fThreshold)
Set up control parameters cleanType - type of the cleaning algorithm to use (HOGBOM, MULTISCALE) niter - number of iterations gain - loop gain used in cleaning (a fraction of the maximum subtracted at every iteration) aThreshold - absolute threshold to stop iterations fThreshold - fractional threshold (i.e.
casacore::Int clean(casacore::ImageInterface< casacore::Float > &model, const casacore::String &algorithm, const casacore::Int niter, const casacore::Float gain, const casacore::Quantity &threshold, const casacore::Quantity &fthresh=casacore::Quantity(0.0,"%"), casacore::Bool doPlotProgress=false)
Clean an image.
void update(casacore::ImageInterface< casacore::Float > &dirty)
Update the dirty image only.
String: the storage and methods of handling collections of characters.
void stopPointMode(casacore::Int nStopPointMode)
Some algorithms require that the cycles be terminated when the image is dominated by point sources; i...
casacore::Int numberIterations() const
void speedup(const casacore::Float Ndouble)
speedup() will speed the clean iteration by raising the threshold.
void setSmallScaleBias(const casacore::Float x=0.5)
Consider the case of a point source: the flux on all scales is the same, and the first scale will be ...
casacore::Bool setupMatCleaner(const casacore::String &alg, const casacore::Int niter, const casacore::Float gain, const casacore::Quantity &threshold, const casacore::Quantity &fthresh=casacore::Quantity(0.0,"%"))
Helper function to setup some param.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.