casa
5.7.0-16
|
A class interfacing images to MatrixNACleaner. More...
#include <ImageNACleaner.h>
Public Member Functions | |
ImageNACleaner () | |
Default. More... | |
ImageNACleaner (casacore::ImageInterface< casacore::Float > &psf, casacore::ImageInterface< casacore::Float > &dirty) | |
Create a cleaner with a psf and dirty image. More... | |
ImageNACleaner (const ImageNACleaner &other) | |
assignmemnt constructor More... | |
ImageNACleaner & | operator= (const ImageNACleaner &other) |
assignment operator More... | |
~ImageNACleaner () | |
The destructor. More... | |
void | setDirty (casacore::ImageInterface< casacore::Float > &dirty) |
Update the dirty image only. More... | |
void | setPsf (casacore::ImageInterface< casacore::Float > &psf) |
Change the psf image. More... | |
void | setcontrol (const casacore::Int niter, const casacore::Float gain, const casacore::Quantity &aThreshold, const casacore::Int masksupp=3, const casacore::Int memtype=2, const casacore::Float numSigma=5.0) |
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 masksupport is +-number of pixel around a peak to remember memtype is memory function to use 0- no memory standard clean, 1 weak memory, 2 medium, 3 strong numsigma: keep memory of position if peak is above this value More... | |
casacore::Int | iteration () const |
return how many iterations we did do More... | |
void | startingIteration (const casacore::Int starting=0) |
what iteration number to start on More... | |
casacore::Int | clean (casacore::ImageInterface< casacore::Float > &model, const casacore::Int niter, const casacore::Float gain, const casacore::Quantity &threshold, const casacore::Int masksupp=3, const casacore::Int memType=2, const casacore::Float numsigma=5.0) |
Clean an image. More... | |
void | setMask (casacore::ImageInterface< casacore::Float > &mask) |
Set the mask mask - input mask lattice This is where the algorithm searched...the value of the mask shows the weight importance code is exactly the same as before this parameter has been introduced. More... | |
casacore::Float | maxResidual () |
Max residual after last clean. More... | |
Private Member Functions | |
casacore::Bool | setupMatCleaner (const casacore::Int niter, const casacore::Float gain, const casacore::Quantity &threshold, const casacore::Int supp=3, const casacore::Int memType=2, const casacore::Float numsigma=5.0) |
Helper function to setup some param. More... | |
A class interfacing images to MatrixNACleaner.
Public interface
The ImageCleaner class will use Non Amnesiac on Images.
This class will perform some kind of Clean deconvolution on Lattices.
Definition at line 84 of file ImageNACleaner.h.
casa::ImageNACleaner::ImageNACleaner | ( | ) |
Default.
casa::ImageNACleaner::ImageNACleaner | ( | casacore::ImageInterface< casacore::Float > & | psf, |
casacore::ImageInterface< casacore::Float > & | dirty | ||
) |
Create a cleaner with a psf and dirty image.
casa::ImageNACleaner::ImageNACleaner | ( | const ImageNACleaner & | other | ) |
assignmemnt constructor
casa::ImageNACleaner::~ImageNACleaner | ( | ) |
The destructor.
casacore::Int casa::ImageNACleaner::clean | ( | casacore::ImageInterface< casacore::Float > & | model, |
const casacore::Int | niter, | ||
const casacore::Float | gain, | ||
const casacore::Quantity & | threshold, | ||
const casacore::Int | masksupp = 3 , |
||
const casacore::Int | memType = 2 , |
||
const casacore::Float | numsigma = 5.0 |
||
) |
Clean an image.
return value gives you a hint of what's happening 1 = converged 0 = not converged but behaving normally -1 = not converged and stopped on cleaning consecutive smallest scale -2 = not converged and either large scale hit negative or diverging -3 = clean is diverging rather than converging
casacore::Int casa::ImageNACleaner::iteration | ( | ) | const |
return how many iterations we did do
|
inline |
Max residual after last clean.
Definition at line 144 of file ImageNACleaner.h.
References maxResidual_p.
ImageNACleaner& casa::ImageNACleaner::operator= | ( | const ImageNACleaner & | other | ) |
assignment operator
void casa::ImageNACleaner::setcontrol | ( | const casacore::Int | niter, |
const casacore::Float | gain, | ||
const casacore::Quantity & | aThreshold, | ||
const casacore::Int | masksupp = 3 , |
||
const casacore::Int | memtype = 2 , |
||
const casacore::Float | numSigma = 5.0 |
||
) |
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 masksupport is +-number of pixel around a peak to remember memtype is memory function to use 0- no memory standard clean, 1 weak memory, 2 medium, 3 strong numsigma: keep memory of position if peak is above this value
void casa::ImageNACleaner::setDirty | ( | casacore::ImageInterface< casacore::Float > & | dirty | ) |
Update the dirty image only.
void casa::ImageNACleaner::setMask | ( | casacore::ImageInterface< casacore::Float > & | mask | ) |
Set the mask
mask - input mask lattice This is where the algorithm searched...the value of the mask shows the weight importance code is exactly the same as before this parameter has been introduced.
void casa::ImageNACleaner::setPsf | ( | casacore::ImageInterface< casacore::Float > & | psf | ) |
Change the psf image.
|
private |
Helper function to setup some param.
void casa::ImageNACleaner::startingIteration | ( | const casacore::Int | starting = 0 | ) |
what iteration number to start on
|
private |
Definition at line 158 of file ImageNACleaner.h.
|
private |
Definition at line 152 of file ImageNACleaner.h.
|
private |
Definition at line 153 of file ImageNACleaner.h.
|
private |
Definition at line 150 of file ImageNACleaner.h.
|
private |
Definition at line 162 of file ImageNACleaner.h.
Referenced by maxResidual().
|
private |
Definition at line 155 of file ImageNACleaner.h.
|
private |
Definition at line 157 of file ImageNACleaner.h.
|
private |
Definition at line 160 of file ImageNACleaner.h.
|
private |
Definition at line 161 of file ImageNACleaner.h.
|
private |
Definition at line 154 of file ImageNACleaner.h.
|
private |
Definition at line 156 of file ImageNACleaner.h.
|
private |
Definition at line 159 of file ImageNACleaner.h.
|
private |
Definition at line 151 of file ImageNACleaner.h.