casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
ImageMaskAttacher.h
Go to the documentation of this file.
00001 //# SubImage.h: A (masked) subset of an ImageInterface object
00002 //# Copyright (C) 1998,1999,2000,2001,2003
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 addressed 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 //# $Id: SubImage.h 20739 2009-09-29 01:15:15Z Malte.Marquarding $
00027 
00028 #ifndef IMAGESANALYSIS_IMAGEMASKATTACHER_H
00029 #define IMAGESANALYSIS_IMAGEMASKATTACHER_H
00030 
00031 #include <images/Images/ImageInterface.h>
00032 
00033 namespace casa { //# NAMESPACE CASA - BEGIN
00034 
00035 // <summary>
00036 // Contains tatic method to attach a mask to an image
00037 // </summary>
00038 //
00039 // <use visibility=export>
00040 //
00041 // <reviewed reviewer="" date="" tests="tSubImageFactory.cc">
00042 // </reviewed>
00043 //
00044 // <prerequisite>
00045 // </prerequisite>
00046 //
00047 // <synopsis> 
00048 // <srcblock>
00049 // </srcblock>
00050 // </example>
00051 //
00052 // <motivation>
00053 // </motivation>
00054 //
00055 // <todo asof="2013/02/24">
00056 // </todo>
00057 
00058 
00059 template <class T> class ImageMaskAttacher {
00060 public: 
00061         // Moved from ImageAnalysis
00062         // Make a mask and define it in the image.
00063         static Bool makeMask(
00064                 ImageInterface<T>& out,
00065                 String& maskName,
00066                 Bool init, Bool makeDefault,
00067                 LogIO& os, Bool list
00068         );
00069 
00070 private:
00071     ImageMaskAttacher<T> ();
00072 
00073     ImageMaskAttacher<T> operator=(ImageMaskAttacher<T>);
00074 };
00075 
00076 
00077 
00078 } //# NAMESPACE CASA - END
00079 
00080 #ifndef CASACORE_NO_AUTO_TEMPLATES
00081 #include <imageanalysis/ImageAnalysis/ImageMaskAttacher.tcc>
00082 #endif //# CASACORE_NO_AUTO_TEMPLATES
00083 #endif