function clean
Performs "cleaning" of the input image. This iterative deconvolution algorithm
searches for the global maximum in the image, shifts the psf to that position and subtracts a scaled psf (multiplied by the gain). The subtracted flux is added to a delta map at the position of the maximum (this is the clean map). Note that clean does not conserve the total flux in the image.
Syntax
result = clean(IMAGE, PSF, N, GAIN [, variable SUB])
Arguments
| IMAGE: | input map to be cleaned (dirty map) |
| PSF: | Point spread function (dirty beam) |
| N: | Number of iterations |
| GAIN: | Loop gain factor |
| SUB: | Optional, the variable SUB will contain an image in which the sources are subtracted |
See also
function lucy
function wien