casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImageRebinner.h
Go to the documentation of this file.
1 #ifndef IMAGEANALYSIS_IMAGEREBINNER_H
2 #define IMAGEANALYSIS_IMAGEREBINNER_H
3 
5 
6 #include <casa/namespace.h>
7 
8 namespace casa {
9 
10 template <class T> class ImageRebinner : public ImageTask<T> {
11  // <summary>
12  // Top level interface for image rebinning
13  // </summary>
14 
15  // <reviewed reviewer="" date="" tests="" demos="">
16  // </reviewed>
17 
18  // <prerequisite>
19  // </prerequisite>
20 
21  // <etymology>
22  // Rebins an image to larger pixels.
23  // </etymology>
24 
25  // <synopsis>
26  // Top level interface for rebinning images.
27  // </synopsis>
28 
29 public:
30 
31 
33  const SPCIIT image, const casacore::Record *const region,
34  const casacore::String& maskInp,
35  const casacore::String& outname, casacore::Bool overwrite
36  );
37 
38  // destructor
39  virtual ~ImageRebinner() {}
40 
41  SPIIT rebin() const;
42 
43  virtual casacore::String getClass() const { const static casacore::String s = "ImageRebinner"; return s; }
44 
45  // Set the factors (1 for each axis) to rebin by.
47 
49 
50 protected:
51 
54  }
55 
56  std::vector<casacore::Coordinate::Type> _getNecessaryCoordinates() const {
57  return std::vector<casacore::Coordinate::Type>();
58  }
59 
60 private:
63 
64  // disallow default constructor
65  ImageRebinner();
66 };
67 }
68 
69 #ifndef AIPS_NO_TEMPLATE_SRC
70 #include <imageanalysis/ImageAnalysis/ImageRebinner.tcc>
71 #endif
72 
73 #endif
A Vector of integers, for indexing into Array&lt;T&gt; objects.
Definition: IPosition.h:119
virtual ~ImageRebinner()
destructor
Definition: ImageRebinner.h:39
void setFactors(const casacore::Vector< casacore::Int > &f)
Set the factors (1 for each axis) to rebin by.
void setCrop(casacore::Bool c)
Definition: ImageRebinner.h:48
std::vector< casacore::Coordinate::Type > _getNecessaryCoordinates() const
Represents the minimum set of coordinates necessary for the task to function.
Definition: ImageRebinner.h:56
SPIIT rebin() const
#define SPIIT
Definition: ImageTypedefs.h:34
virtual casacore::String getClass() const
Definition: ImageRebinner.h:43
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
ImageRebinner()
disallow default constructor
casacore::IPosition _factors
Definition: ImageRebinner.h:61
CasacRegionManager::StokesControl _getStokesControl() const
Definition: ImageRebinner.h:52
const Double c
Fundamental physical constants (SI units):
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::Bool _crop
Definition: ImageRebinner.h:62