casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SepImageConvolverTask.h
Go to the documentation of this file.
1 //# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003
2 //# Associated Universities, Inc. Washington DC, USA.
3 //#
4 //# This library is free software; you can redistribute it and/or modify it
5 //# under the terms of the GNU Library General Public License as published by
6 //# the Free Software Foundation; either version 2 of the License, or (at your
7 //# option) any later version.
8 //#
9 //# This library is distributed in the hope that it will be useful, but WITHOUT
10 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 //# License for more details.
13 //#
14 //# You should have received a copy of the GNU Library General Public License
15 //# along with this library; if not, write to the Free Software Foundation,
16 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 
26 #ifndef IMAGES_SEPIMAGECONVOLVERTASK_H
27 #define IMAGES_SEPIMAGECONVOLVERTASK_H
28 
30 
31 #include <casa/aips.h>
32 
33 namespace casa {
34 
35 // <summary>
36 // This class is the high level interface to image convolving
37 // </summary>
38 
39 // <use visibility=export>
40 
41 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
42 // </reviewed>
43 
44 // <prerequisite>
45 // <li> <linkto class="casacore::ImageInterface">casacore::ImageInterface</linkto>
46 // <li> <linkto class="casacore::Convolver">casacore::Convolver</linkto>
47 // </prerequisite>
48 
49 // <etymology>
50 // This class is the high level interface to image convolving
51 // </etymology>
52 
53 // <synopsis>
54 // This class is the high level interface to image convolving
55 // </synopsis>
56 
57 // <example>
58 // <srcBlock>
59 // </srcBlock>
60 // </example>
61 
62 // <motivation>
63 // Convolution is a standard image processing requirement.
64 // </motivation>
65 
66 // <todo asof="2001/08/28">
67 // <li>
68 // </todo>
69 
70 template <class T> class SepImageConvolverTask : public ImageTask<T> {
71 public:
72 
74 
75  SepImageConvolverTask() = delete;
76 
78  const SPCIIT image, const casacore::Record *const &regionPtr,
79  const casacore::String& mask, const casacore::String& outname, const casacore::Bool overwrite
80  );
81 
82  SepImageConvolverTask(const SepImageConvolverTask<T> &other) = delete;
83 
85 
87 
88  SPIIT convolve();
89 
90  void setKernels(const casacore::Vector<casacore::String>& kernels) { _kernels.assign(kernels); }
91 
92  void setKernelWidths(const casacore::Vector<casacore::Quantity>& kernelwidths) { _kernelWidths.assign(kernelwidths); }
93 
94  void setScale(casacore::Double d) { _scale = d; }
95 
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:
117 
118 };
119 
120 }
121 
122 #ifndef CASACORE_NO_AUTO_TEMPLATES
123 #include <imageanalysis/ImageAnalysis/SepImageConvolverTask.tcc>
124 #endif //# CASACORE_NO_AUTO_TEMPLATES
125 #endif
static const casacore::String CLASS_NAME
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
casacore::Vector< casacore::Quantity > _kernelWidths
void setSmoothAxes(const casacore::Vector< casacore::Int > &axes)
SepImageConvolverTask & operator=(const SepImageConvolverTask< T > &other)=delete
This class is the high level interface to image convolving.
casacore::Vector< casacore::Int > _axes
#define SPIIT
Definition: ImageTypedefs.h:34
virtual void assign(const Array< T > &other)
Assign the other array (which must be of dimension one) to this vector.
CasacRegionManager::StokesControl _getStokesControl() const
double Double
Definition: aipstype.h:55
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
void setKernelWidths(const casacore::Vector< casacore::Quantity > &kernelwidths)
casacore::String getClass() const
casacore::Bool _supportsMultipleRegions() const
String: the storage and methods of handling collections of characters.
Definition: String.h:223
std::vector< casacore::Coordinate::Type > _getNecessaryCoordinates() const
Represents the minimum set of coordinates necessary for the task to function.
casacore::Vector< casacore::String > _kernels
void setKernels(const casacore::Vector< casacore::String > &kernels)
void setScale(casacore::Double d)