casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImageConvolverTask.h
Go to the documentation of this file.
1 //# Image2DConvolver.h: 2D convolution of an image
2 //# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003
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 addressed 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 //# $Id: Image2DConvolver.h 20229 2008-01-29 15:19:06Z gervandiepen $
27 
28 #ifndef IMAGES_IMAGECONVOLVERTASK_H
29 #define IMAGES_IMAGECONVOLVERTASK_H
30 
32 
33 #include <casa/aips.h>
34 
35 namespace casa {
36 
37 // <summary>
38 // This class is the high level interface to image convolving
39 // </summary>
40 
41 // <use visibility=export>
42 
43 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
44 // </reviewed>
45 
46 // <prerequisite>
47 // <li> <linkto class="casacore::ImageInterface">casacore::ImageInterface</linkto>
48 // <li> <linkto class="casacore::Convolver">casacore::Convolver</linkto>
49 // </prerequisite>
50 
51 // <etymology>
52 // This class is the high level interface to image convolving
53 // </etymology>
54 
55 // <synopsis>
56 // This class is the high level interface to image convolving
57 // </synopsis>
58 
59 // <example>
60 // <srcBlock>
61 // </srcBlock>
62 // </example>
63 
64 // <motivation>
65 // Convolution is a standard image processing requirement.
66 // </motivation>
67 
68 // <todo asof="2001/08/28">
69 // <li>
70 // </todo>
71 
72 template <class T> class ImageConvolverTask : public ImageTask<T> {
73 public:
74 
76 
77  ImageConvolverTask() = delete;
78 
80  const SPCIIT image, const casacore::Record *const &regionPtr,
81  const casacore::String& mask, const casacore::String& outname, const casacore::Bool overwrite
82  );
83 
84  ImageConvolverTask(const ImageConvolverTask<T> &other) = delete;
85 
87 
88  ImageConvolverTask &operator=(const ImageConvolverTask<T> &other) = delete;
89 
90  SPIIT convolve();
91 
92  void setKernel(const casacore::Array<T>& kernel);
93 
94  void setKernel(SPIIT image) { setKernel(image->get()); }
95 
96  void setScale(casacore::Double d) { _scale = d; }
97 
98  casacore::String getClass() const { return CLASS_NAME; }
99 
100 protected:
101 
104  }
105 
106  std::vector<casacore::Coordinate::Type> _getNecessaryCoordinates() const {
107  return std::vector<casacore::Coordinate::Type>();
108  }
109 
110  inline casacore::Bool _supportsMultipleRegions() const {return true;}
111 
112 private:
115 
116 };
117 
118 }
119 
120 #ifndef CASACORE_NO_AUTO_TEMPLATES
121 #include <imageanalysis/ImageAnalysis/ImageConvolverTask.tcc>
122 #endif //# CASACORE_NO_AUTO_TEMPLATES
123 #endif
124 
125 
126 
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
casacore::String getClass() const
casacore::Bool _supportsMultipleRegions() const
This class is the high level interface to image convolving.
CasacRegionManager::StokesControl _getStokesControl() const
std::vector< casacore::Coordinate::Type > _getNecessaryCoordinates() const
Represents the minimum set of coordinates necessary for the task to function.
#define SPIIT
Definition: ImageTypedefs.h:34
void setKernel(const casacore::Array< T > &kernel)
double Double
Definition: aipstype.h:55
void setScale(casacore::Double d)
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
#define SPCIIT
Definition: ImageTypedefs.h:35
template &lt;class T, class U&gt; class vector;
Definition: MSFlagger.h:37
static const casacore::String CLASS_NAME
void setKernel(SPIIT image)
casacore::Array< T > _kernel
String: the storage and methods of handling collections of characters.
Definition: String.h:223
ImageConvolverTask & operator=(const ImageConvolverTask< T > &other)=delete