casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImageBoxcarSmoother.h
Go to the documentation of this file.
1 #ifndef IMAGEANALYSIS_IMAGEBOXCARSMOOTHER_H
2 #define IMAGEANALYSIS_IMAGEBOXCARSMOOTHER_H
3 
5 
6 #include <casa/namespace.h>
7 
8 namespace casa {
9 
10 template <class T> class ImageBoxcarSmoother : public Image1DSmoother<T> {
11  // <summary>
12  // Top level interface for 1-D boxcar smoothing of images.
13  // </summary>
14 
15  // <reviewed reviewer="" date="" tests="" demos="">
16  // </reviewed>
17 
18  // <prerequisite>
19  // </prerequisite>
20 
21  // <etymology>
22  // Boxcar smooths an image in one dimension.
23  // </etymology>
24 
25  // <synopsis>
26  // </synopsis>
27 
28 public:
29 
31  const SPCIIT image,
32  const casacore::Record *const region,
33  const casacore::String& maskInp,
34  const casacore::String& outname, casacore::Bool overwrite
35  );
36 
37  // destructor
39 
40  casacore::String getClass() const { const static casacore::String s = "ImageBoxcarSmoother"; return s; }
41 
42  // set witdth of boxcar
43  void setWidth(casacore::uInt w);
44 
45 protected:
46 
47  SPIIT _smooth(
48  const casacore::ImageInterface<T>& image
49  ) const;
50 
51 private:
52 
54 
55  // disallow default constructor
57 
58  void _boxcarSmooth(casacore::Array<T>& out, const casacore::Array<T>& in) const ;
59 };
60 }
61 
62 #ifndef AIPS_NO_TEMPLATE_SRC
63 #include <imageanalysis/ImageAnalysis/ImageBoxcarSmoother.tcc>
64 #endif
65 
66 #endif
casacore::String getClass() const
A base class for astronomical images.
#define SPIIT
Definition: ImageTypedefs.h:34
void _boxcarSmooth(casacore::Array< T > &out, const casacore::Array< T > &in) const
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
ImageBoxcarSmoother()
disallow default constructor
SPIIT _smooth(const casacore::ImageInterface< T > &image) const
String: the storage and methods of handling collections of characters.
Definition: String.h:223
void setWidth(casacore::uInt w)
set witdth of boxcar
unsigned int uInt
Definition: aipstype.h:51