casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MFMSCleanImageSkyModel.h
Go to the documentation of this file.
1 //# MFMSCleanImageSkyModel.h: Definition for MFMSCleanImageSkyModel
2 //# Copyright (C) 1996,1997,1998,1999,2000
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be adressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //#
27 //# $Id$
28 
29 #ifndef SYNTHESIS_MFMSCLEANIMAGESKYMODEL_H
30 #define SYNTHESIS_MFMSCLEANIMAGESKYMODEL_H
31 
34 
35 namespace casa { //# NAMESPACE CASA - BEGIN
36 
37 //forward
38 class SkyEquation;
39 
40 // <summary> Image Sky Model implementing the MultiScale, MultiField Clean algorithm </summary>
41 
42 // <use visibility=export>
43 
44 // <reviewed reviewer="" date="" tests="" demos="">
45 
46 // <prerequisite>
47 // <li> <linkto class=ImageSkyModel>ImageSkyModel</linkto> class
48 // <li> <linkto class=MFCleanImageSkyModel>MFCleanImageSkyModel</linkto> class
49 // <li> <linkto class=casacore::LatticeCleaner>LatticeCleaner</linkto> class
50 // </prerequisite>
51 //
52 // <etymology>
53 // MFMSCleanImageSkyModel implements the MultiScale, MultiField Clean algorithm.
54 // It is derived from <linkto class=SkyModel>MFCleanImageSkyModel</linkto>.
55 // </etymology>
56 //
57 // <synopsis>
58 // The MF Clean is an FFT-based clean algorithm. Cleaning is
59 // split into major and minor cycles. In a minor cycle, the
60 // image is cleaned using an approximate PSF and the MultiScale
61 // clean algorithm. In the major cycle, a fully correct
62 // subtraction the of cleanned emission from the visibilities
63 // on a pointing-by-pointing bassis is performed.
64 //
65 // Masking is optionally performed using a mask image: only points
66 // where the mask is non-zero are cleaned. If no mask is specified
67 // all points in the inner quarter of the image are cleaned.
68 // </synopsis>
69 //
70 // <example>
71 // See the example for <linkto class=SkyModel>SkyModel</linkto>.
72 // </example>
73 //
74 // <motivation>
75 // </motivation>
76 //
77 // <todo asof="97/10/01">
78 // <ul> Allow specification of more control parameters
79 // </todo>
80 
82 public:
83 
84  // Create a MFMSCleanImageSkyModel with 4 scales,
85  // stoplargenegatives == 2, stoppointmode==-1
87 
88  // Create a MFMSCleanImageSkyModel with nScales, we figure out what they are
89  // Also: stoplargenegatives controls if we stop the cycle when the largest
90  // component goes negative;
91  // stoppointmode controls how many of the smallest component must be
92  // hit consecutively before we stop that cycle (-1 ==> don't stop)
94  const casacore::Int stoplargenegatives=2,
95  const casacore::Int stoppointmode=-1,
96  const casacore::Float smallScaleBias=0.6);
97 
98  // Create a MFMSCleanImageSkyModel, you provide the scale sizes, IN PIXELS
99  // for example: casacore::Vector<casacore::Float> scales(4); scales(0) = 0.0; scales(1) = 3.0;
100  // scales(2) = 10.0; scales(3) = 30.0;
102  const casacore::Int stoplargenegatives=2,
103  const casacore::Int stoppointmode=-1,
104  const casacore::Float smallScaleBias=0.6);
105 
106  // destructor
108 
109  // Solve for this SkyModel
110  virtual casacore::Bool solve (SkyEquation& me);
111 
112 private:
113  // Chattily get the scales into userScaleSizes_p, doing some calculation if necessary.
114  void getScales();
115 
116  // set the scales
117  // void setScales(casacore::LatticeCleaner<casacore::Float>& cleaner);
118 
121 
124 
126 
127  // parameter to stop the cycle (for the first N cycles) if you get a
128  // negative on the largest scale;
129  // To disable, use < 0
131 
132  // parameter which stops the cycle if you hit the smallest scale this many
133  // consecutive times; if < 0, don't stop for this
135 
137 
138 };
139 
140 
141 } //# NAMESPACE CASA - END
142 
143 #endif
144 
145 
int Int
Definition: aipstype.h:50
casacore::Int stopPointMode_p
parameter which stops the cycle if you hit the smallest scale this many consecutive times; if &lt; 0...
MF Image Sky Model: Image Sky Model implementing the MF Clean algorithm.
casacore::LatticeCleanProgress * progress_p
~MFMSCleanImageSkyModel()
destructor
casacore::Vector< casacore::Float > userScaleSizes_p
Scale_Method
set the scales void setScales(casacore::LatticeCleaner&lt;casacore::Float&gt;&amp; cleaner); ...
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
void getScales()
Chattily get the scales into userScaleSizes_p, doing some calculation if necessary.
float Float
Definition: aipstype.h:54
Abstract base class to monitor progress in lattice operations.
Image Sky Model implementing the MultiScale, MultiField Clean algorithm.
MFMSCleanImageSkyModel()
Create a MFMSCleanImageSkyModel with 4 scales, stoplargenegatives == 2, stoppointmode==-1.
casacore::Int stopLargeNegatives_p
parameter to stop the cycle (for the first N cycles) if you get a negative on the largest scale; To d...
virtual casacore::Bool solve(SkyEquation &me)
Solve for this SkyModel.
unsigned int uInt
Definition: aipstype.h:51