casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TwoPointCorrelator.h
Go to the documentation of this file.
1 #ifndef IMAGEANALYSIS_TWOPOINTCORRELATOR_H
2 #define IMAGEANALYSIS_TWOPOINTCORRELATOR_H
3 
5 
7 
8 #include <casa/namespace.h>
9 
10 namespace casa {
11 
12 template <class T> class TwoPointCorrelator : public ImageTask<T> {
13  // <summary>
14  // Top level interface for two point correlation of images.
15  // </summary>
16 
17  // <reviewed reviewer="" date="" tests="" demos="">
18  // </reviewed>
19 
20  // <prerequisite>
21  // </prerequisite>
22 
23  // <etymology>
24  // Smooths an image in one dimension.
25  // </etymology>
26 
27  // <synopsis>
28  // </synopsis>
29 
30 public:
31 
32  TwoPointCorrelator() = delete;
33 
35  SPCIIT image, const casacore::Record *const region, const casacore::String& mask,
36  const casacore::String& outname, casacore::Bool overwrite
37  );
38 
39  // destructor
41 
42  SPIIT correlate();
43 
44  casacore::String getClass() const { const static casacore::String s = "TwoPointCorrelator"; return s; }
45 
46  // Set the pixel axes over which to do correlation
47  void setAxes(const casacore::IPosition& axes);
48 
49  void setMethod(const casacore::String& method) {
51  }
52 
53 protected:
54 
57  }
58 
59  inline std::vector<casacore::Coordinate::Type> _getNecessaryCoordinates() const {
60  return std::vector<casacore::Coordinate::Type>();
61  }
62 
63  inline casacore::Bool _supportsMultipleBeams() const {return true;}
64 
65 private:
68 
69 };
70 }
71 
72 #ifndef AIPS_NO_TEMPLATE_SRC
73 #include <imageanalysis/ImageAnalysis/TwoPointCorrelator.tcc>
74 #endif
75 
76 #endif
A Vector of integers, for indexing into Array&lt;T&gt; objects.
Definition: IPosition.h:119
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
static Method fromString(const String &method)
Helper functions to convert method types to and from strings.
std::vector< casacore::Coordinate::Type > _getNecessaryCoordinates() const
Represents the minimum set of coordinates necessary for the task to function.
void setMethod(const casacore::String &method)
casacore::LatticeTwoPtCorr< T >::Method _method
TwoPointCorrelator()=delete
Top level interface for two point correlation of images.
void setAxes(const casacore::IPosition &axes)
Set the pixel axes over which to do correlation.
casacore::IPosition _axes
CasacRegionManager::StokesControl _getStokesControl() const
#define SPIIT
Definition: ImageTypedefs.h:34
Compute two point auto-correlation functions from a lattice.
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.
#define SPCIIT
Definition: ImageTypedefs.h:35
casacore::String getClass() const
String: the storage and methods of handling collections of characters.
Definition: String.h:223