casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
NNLSImageSkyModel.h
Go to the documentation of this file.
00001 //# NNLSImageSkyModel.h: Definition for NNLSImageSkyModel
00002 //# Copyright (C) 1996,1997,1998,2000
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_NNLSIMAGESKYMODEL_H
00030 #define SYNTHESIS_NNLSIMAGESKYMODEL_H
00031 
00032 #include <synthesis/MeasurementComponents/CleanImageSkyModel.h>
00033 namespace casa { //# NAMESPACE CASA - BEGIN
00034 
00035 //forward
00036 class SkyEquation;
00037 
00038 // <summary> Briggs' Non-Negative Least Squares deconvolution algorithm </summary>
00039 
00040 // <use visibility=export>
00041 
00042 // <reviewed reviewer="" date="" tests="" demos="">
00043 
00044 // <prerequisite>
00045 //   <li> <linkto class=ImageSkyModel>ImageSkyModel</linkto> module
00046 // </prerequisite>
00047 //
00048 // <etymology>
00049 // NNLSImageSkyModel implements the NNLS deconvolution algorithm.
00050 // It is derived from <linkto class=SkyModel>ImageSkyModel</linkto>.
00051 // </etymology>
00052 //
00053 // <synopsis> 
00054 // NNLS is implemented using the 
00055 // <linkto class=NNLSMatrixSolver>NNLSMatrixSolver</linkto> 
00056 // class. Since the brightness must be non-negative, only the Stokes I
00057 // is solved for. Any other polarizations are not changed.
00058 //
00059 // Two masks are needed: the fluxmask determining the
00060 // free pixels in the output image, and the datamask determining
00061 // the constraint pixels in the dirty image. 
00062 //
00063 // In the solution, a matrix is required having elements connecting
00064 // all free pixels with all constraint pixels. This is constructed
00065 // from the point spread function. The total size of this matrix
00066 // dominates the memory usage. 
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 // </todo>
00078 
00079 class NNLSImageSkyModel : public CleanImageSkyModel {
00080 public:
00081 
00082   // Solve for this SkyModel
00083   virtual Bool solve (SkyEquation& me);
00084 
00085 private:
00086 
00087   Bool maskedZeroI();
00088 
00089 };
00090 
00091 
00092 } //# NAMESPACE CASA - END
00093 
00094 #endif
00095 
00096