casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CleanImageSkyModel.h
Go to the documentation of this file.
1 //# CleanImageSkyModel.h: Definition for CleanImageSkyModel
2 //# Copyright (C) 1996,1997,1998,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_CLEANIMAGESKYMODEL_H
30 #define SYNTHESIS_CLEANIMAGESKYMODEL_H
31 
33 
34 namespace casacore{
35 
36 template <class T> class PagedImage;
37 }
38 
39 namespace casa { //# NAMESPACE CASA - BEGIN
40 
41 // <summary>
42 // Image Sky Model: Image-based Model for the Sky Brightness
43 // </summary>
44 
45 // <use visibility=export>
46 
47 // <reviewed reviewer="" date="" tests="" demos="">
48 
49 // <prerequisite>
50 // <li> <linkto class=SkyModel>SkyModel</linkto> class
51 // <li> <linkto class=SkyEquation>SkyEquation</linkto> class
52 // <li> <linkto class=casacore::ImageInterface>ImageInterface</linkto> class
53 // <li> <linkto class=casacore::PagedImage>PagedImage</linkto> class
54 // <li> <linkto module=MeasurementComponents>MeasurementComponents</linkto> module
55 // <li> <linkto class=VisSet>VisSet</linkto> class
56 // </prerequisite>
57 //
58 // <etymology>
59 // CleanImageSkyModel describes an interface for Models to be used in
60 // the SkyEquation. It is derived from <linkto class=SkyModel>SkyModel</linkto>.
61 // </etymology>
62 //
63 // <synopsis>
64 // A CleanImageSkyModel contains a number of separate models. The interface to
65 // SkyEquation is via an image per model. <linkto class=SkyEquation>SkyEquation</linkto> uses this image to
66 // calculate Fourier transforms, etc. Some (most) SkyModels are
67 // solvable: the SkyEquation can be used by the SkyModel to return
68 // gradients with respect to itself (via the image interface). Thus
69 // for a SkyModel to solve for itself, it calls the SkyEquation
70 // methods to get gradients of chi-squared with respect to the
71 // image pixel values (thus returning an image: basically a residual
72 // image). The SkyModel then uses these gradients as appropriate to
73 // update itself.
74 // </synopsis>
75 //
76 // <example>
77 // See the example for <linkto class=SkyModel>SkyModel</linkto>.
78 // </example>
79 //
80 // <motivation>
81 // The properties of a model of the sky must be described
82 // for the <linkto class=SkyEquation>SkyEquation</linkto>.
83 // </motivation>
84 //
85 // <todo asof="97/10/01">
86 // <li> Multiple images in SkyModel
87 // <li> ComponentModel
88 // </todo>
89 
90 
92 public:
93 
94  // Empty constructor
96 
97  // Copy constructor
99 
100  // Has a mask for model?
102 
103  // Add a componentlist
104  virtual casacore::Bool add(ComponentList& compList);
105 
106  // Add an image. maxNumXfr is the maximum Number of transfer functions
107  // that we might want to associate with this image.
109 
110  // Add an mask
112 
113  // Has a flux mask?
115 
117 
119 
120  // Destructor
121  virtual ~CleanImageSkyModel();
122 
123  // Assignment operator
125 
126  // Return masks
127  // <group>
129  // </group>
130  //set to search for peak in I^2+Q^2+U^2+V^2 domain or each stokes plane seperately
131  //Ignored for hogbom and msclean for now
132  virtual void setJointStokesClean(casacore::Bool joint=true);
133 
134 
135  // Return the maximum absolute value from residual images per field
137 
138 
139 protected:
140 
144 
145 };
146 
147 
148 
149 } //# NAMESPACE CASA - END
150 
151 #endif
152 
153 
virtual ~CleanImageSkyModel()
Destructor.
virtual casacore::Bool addFluxMask(casacore::Int image, casacore::ImageInterface< casacore::Float > &fluxMask)
int Int
Definition: aipstype.h:50
casacore::PtrBlock< casacore::ImageInterface< casacore::Float > * > mask_p
CleanImageSkyModel()
Empty constructor.
casacore::PtrBlock< casacore::ImageInterface< casacore::Float > * > fluxmask_p
CleanImageSkyModel & operator=(const CleanImageSkyModel &other)
Assignment operator.
casacore::Bool hasMask(casacore::Int model=0)
Has a mask for model?
casacore::ImageInterface< casacore::Float > & mask(casacore::Int model=0)
Return masks.
casacore::ImageInterface< casacore::Float > & fluxMask(casacore::Int model=0)
virtual void setJointStokesClean(casacore::Bool joint=true)
set to search for peak in I^2+Q^2+U^2+V^2 domain or each stokes plane seperately Ignored for hogbom a...
Image Sky Model: Image-based Model for the Sky Brightness.
Definition: ImageSkyModel.h:93
virtual casacore::Bool addMask(casacore::Int image, casacore::ImageInterface< casacore::Float > &mask)
Add an mask.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
virtual casacore::Bool add(ComponentList &compList)
Add a componentlist.
float Float
Definition: aipstype.h:54
casacore::Bool hasFluxMask(casacore::Int model=0)
Has a flux mask?
A drop-in replacement for Block&lt;T*&gt;.
Definition: WProjectFT.h:54
A class for manipulating groups of components.
virtual casacore::Float maxField(casacore::Vector< casacore::Float > &imagemax, casacore::Vector< casacore::Float > &imagemin)
Return the maximum absolute value from residual images per field.
Image Sky Model: Image-based Model for the Sky Brightness.
casacore::ImageInterface< casacore::Float > & image(casacore::Int model=0)
Return actual images to be used by SkyEquation.
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42