casa
$Rev:20696$
|
00001 //# MFCEMemImageSkyModel.h: Definition for MFCEMemImageSkyModel 00002 //# Copyright (C) 1996,1997,1998,1999,2000,2002 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_MFCEMEMIMAGESKYMODEL_H 00030 #define SYNTHESIS_MFCEMEMIMAGESKYMODEL_H 00031 00032 #include <synthesis/MeasurementComponents/CEMemImageSkyModel.h> 00033 namespace casa { //# NAMESPACE CASA - BEGIN 00034 00035 //forward 00036 class SkyEquation; 00037 00038 // <summary> 00039 // MF CE Mem Image Sky Model: Image Sky Model implementing the MF Mem 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 // </prerequisite> 00049 // 00050 // <etymology> 00051 // MFCEMemImageSkyModel implements the MF Clean algorithm. 00052 // It is derived from <linkto class=SkyModel>SkyModel</linkto>. 00053 // </etymology> 00054 // 00055 // <synopsis> 00056 // Rewrite me for MEM! 00057 // The MF 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 // The MF Clean is implemented using the <linkto class=ClarkCleanModel</linkto> 00065 // class. 00066 // 00067 // Masking is optionally performed using a mask image: only points 00068 // where the mask is non-zero are cleaned. If no mask is specified 00069 // all points in the inner quarter of the image are cleaned. 00070 // </synopsis> 00071 // 00072 // <example> 00073 // See the example for <linkto class=SkyModel>SkyModel</linkto>. 00074 // </example> 00075 // 00076 // <motivation> 00077 // </motivation> 00078 // 00079 // <todo asof="97/10/01"> 00080 // <ul> Allow specification of more control parameters 00081 // </todo> 00082 00083 class MFCEMemImageSkyModel : public CEMemImageSkyModel { 00084 public: 00085 00086 // constructor 00087 MFCEMemImageSkyModel(Float sigma, 00088 Float targetFlux, 00089 Bool constrainFlux, 00090 const Vector<String>& priors, 00091 const String& entropy); 00092 00093 00094 // Solve for this SkyModel 00095 virtual Bool solve (SkyEquation& me); 00096 00097 private: 00098 // Return the maximum absolute value per field 00099 Float maxField(Vector<Float>& imagemax, Vector<Float>& imagemin); 00100 // Return maximum abs outer sidelobe, more than nCenter pixels from the center 00101 Float maxOuter(Lattice<Float> & lat, const uInt nCenter ); 00102 00103 }; 00104 00105 00106 } //# NAMESPACE CASA - END 00107 00108 #endif 00109 00110