casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImageDecimator.h
Go to the documentation of this file.
1 #ifndef IMAGES_IMAGEEDECIMATOR_H
2 #define IMAGES_IMAGEEDECIMATOR_H
3 
5 
7 
8 #include <casa/namespace.h>
9 
10 namespace casa {
11 
12 template <class T> class ImageDecimator : public ImageTask<T> {
13  // <summary>
14  // Top level interface for removing image planes.
15  // </summary>
16 
17  // <reviewed reviewer="" date="" tests="" demos="">
18  // </reviewed>
19 
20  // <prerequisite>
21  // </prerequisite>
22 
23  // <etymology>
24  // Decimates planes of image
25  // </etymology>
26 
27  // <synopsis>
28  // Top level interface for removing image planes.
29  // </synopsis>
30 
31 public:
32 
34  const SPCIIT image,
35  const casacore::Record *const region,
36  const casacore::String& maskInp,
37  const casacore::String& outname, casacore::Bool overwrite
38  );
39 
40  // destructor
42 
43  SPIIT decimate() const;
44 
45  casacore::String getClass() const { const static casacore::String s = "ImageDecimator"; return s; }
46 
47  // every nth plane will be kept
48  void setFactor(casacore::uInt n);
49 
50  // Set the pixel axis number along which the decimation will occur
51  void setAxis(casacore::uInt n);
52 
53  // set the decimation function
55 
56 protected:
59  }
60 
61  inline std::vector<casacore::Coordinate::Type> _getNecessaryCoordinates() const {
62  return std::vector<casacore::Coordinate::Type>();
63  }
64 
65  inline casacore::Bool _supportsMultipleBeams() const {return false;}
66 
67  inline casacore::Bool _supportsMultipleRegions() const {return true;}
68 
69 private:
72 
73  // disallow default constructor
75 };
76 }
77 
78 #ifndef AIPS_NO_TEMPLATE_SRC
79 #include <imageanalysis/ImageAnalysis/ImageDecimator.tcc>
80 #endif
81 
82 #endif
void setFunction(ImageDecimatorData::Function f)
set the decimation function
casacore::uInt _axis
Function
Holds data for ImageDecimator class.
void setAxis(casacore::uInt n)
Set the pixel axis number along which the decimation will occur.
void setFactor(casacore::uInt n)
every nth plane will be kept
#define SPIIT
Definition: ImageTypedefs.h:34
~ImageDecimator()
destructor
std::vector< casacore::Coordinate::Type > _getNecessaryCoordinates() const
Represents the minimum set of coordinates necessary for the task to function.
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
casacore::Bool _supportsMultipleBeams() const
does this task support images with multiple beams? false means it never does.
SPIIT decimate() const
#define SPCIIT
Definition: ImageTypedefs.h:35
ImageDecimator()
disallow default constructor
casacore::Bool _supportsMultipleRegions() const
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::String getClass() const
casacore::uInt _factor
unsigned int uInt
Definition: aipstype.h:51
CasacRegionManager::StokesControl _getStokesControl() const
ImageDecimatorData::Function _function