casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
ImageDataSampling.h
Go to the documentation of this file.
00001 //# ImageDataSampling.h: Definition for ImageDataSampling
00002 //# Copyright (C) 1996,1997,1998,1999,2000,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_IMAGEDATASAMPLING_H
00030 #define SYNTHESIS_IMAGEDATASAMPLING_H
00031 
00032 #include <synthesis/DataSampling/DataSampling.h>
00033 #include <synthesis/TransformMachines/SkyJones.h>
00034 #include <images/Images/ImageInterface.h>
00035 #include <casa/Arrays/Matrix.h>
00036 #include <casa/Arrays/Array.h>
00037 #include <casa/Arrays/Vector.h>
00038 #include <casa/Arrays/Matrix.h>
00039 #include <coordinates/Coordinates/DirectionCoordinate.h>
00040 
00041 namespace casa { //# NAMESPACE CASA - BEGIN
00042 
00043 // <summary> Provides sampling of single dish data for esimation algorithms
00044 // </summary>
00045 
00046 // <use visibility=export>
00047 
00048 // <reviewed reviewer="" date="" tests="" demos="">
00049 
00050 // <prerequisite>
00051 // </prerequisite>
00052 //
00053 // <etymology>
00054 // Samples single dish Data as needed for various estimation algorithms
00055 // </etymology>
00056 //
00057 // <synopsis> 
00058 // Esimation algorithms such as the Pixon method need sampled
00059 // and unitless versions of the data. This class is derived from
00060 // DataSampling. It adds methods specific to single dish data.
00061 // </synopsis> 
00062 //
00063 // <example>
00064 // </example>
00065 //
00066 // <motivation>
00067 // Define an interface to allow efficient processing of chunks of 
00068 // data
00069 // </motivation>
00070 //
00071 // <todo asof="01/03/03">
00072 // <ul> Derive more examples
00073 // </todo>
00074 
00075 
00076 class ImageDataSampling : public DataSampling {
00077 public:
00078 
00079   ImageDataSampling(const ImageInterface<Float>& dirty,
00080                     const ImageInterface<Float>& psf,
00081                     const ImageInterface<Float>& sigma);
00082 
00083   ImageDataSampling(const ImageInterface<Float>& dirty,
00084                     const ImageInterface<Float>& psf,
00085                     const Float sigma);
00086 
00087   // Copy constructor
00088   ImageDataSampling(const ImageDataSampling &other);
00089 
00090   // Assignment operator
00091   ImageDataSampling &operator=(const ImageDataSampling &other);
00092 
00093   ~ImageDataSampling();
00094 
00095 private:
00096 
00097   void init(const ImageInterface<Float>& dirty,
00098             const ImageInterface<Float>& psf,
00099             const ImageInterface<Float>* sigmaImagePtr,
00100             const Float sigma);
00101 
00102   void ok();
00103 
00104 };
00105 
00106 } //# NAMESPACE CASA - END
00107 
00108 #endif