casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
PClarkCleanImageSkyModel.h
Go to the documentation of this file.
00001 //# PClarkCleanImageSkyModel.h: Definition for PClarkCleanImageSkyModel
00002 //# Copyright (C) 1996,1997,1998,1999,2001
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be adressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //#
00027 //# $Id$
00028 
00029 #ifndef SYNTHESIS_PCLARKCLEANIMAGESKYMODEL_H
00030 #define SYNTHESIS_PCLARKCLEANIMAGESKYMODEL_H
00031 
00032 #include <synthesis/MeasurementComponents/CleanImageSkyModel.h>
00033 namespace casa { //# NAMESPACE CASA - BEGIN
00034 
00035 //forward
00036 class SkyEquation;
00037 
00038 // <summary> 
00039 // Clark Image Sky Model: Image Sky Model implementing the Clark Clean algorithm
00040 // </summary>
00041 
00042 // <use visibility=export>
00043 
00044 // <reviewed reviewer="" date="" tests="" demos="">
00045 
00046 // <prerequisite>
00047 //   <li> <linkto class=ImageSkyModel>ImageSkyModel</linkto> module
00048 //   <li> <linkto class=ClarkCleanImageSkyModel>ClarkCleanImageSkyModel</linkto> module
00049 // </prerequisite>
00050 //
00051 // <etymology>
00052 // PClarkCleanImageSkyModel implements the Clark Clean algorithm.
00053 // It is derived from <linkto class=SkyModel>SkyModel</linkto>.
00054 // </etymology>
00055 //
00056 // <synopsis> 
00057 // The Clark Clean is an FFT-based clean algorithm. Cleaning is
00058 // split into major and minor cycles. In a minor cycle, the
00059 // brightest pixels are cleaned using only the strongest sidelobes
00060 // (and main lobe) of the PSF. In the major cycle, a fully correct
00061 // subtraction of the PSF is done for all points accumulated in the
00062 // minor cycle using an FFT-based convolution for speed.
00063 //
00064 // Masking is optionally performed using a mask image: only points
00065 // where the mask is non-zero are cleaned. If no mask is specified
00066 // all points in the inner quarter of the image are cleaned.
00067 // </synopsis> 
00068 //
00069 // <example>
00070 // See the example for <linkto class=SkyModel>SkyModel</linkto>.
00071 // </example>
00072 //
00073 // <motivation>
00074 // </motivation>
00075 //
00076 // <todo asof="97/10/01">
00077 // <ul> Allow specification of more control parameters
00078 // </todo>
00079 
00080 class PClarkCleanImageSkyModel : public CleanImageSkyModel {
00081 public:
00082   // Default constructor
00083   PClarkCleanImageSkyModel() : displayProgress(False) {}
00084 
00085   // Solve for this SkyModel
00086   virtual Bool solve (SkyEquation& me);
00087 
00088   // Set progress display
00089   void setDisplayProgress (const Bool display )
00090     {displayProgress = display;}
00091 
00092 private:
00093   // Progress display flag
00094   Bool displayProgress;
00095 };
00096 
00097 
00098 } //# NAMESPACE CASA - END
00099 
00100 #endif
00101 
00102