casacore
ConvolveGridder.h
Go to the documentation of this file.
1 //# ConvolveGridder.h: Definition for Convolutional Gridder
2 //# Copyright (C) 1996,1997,1999,2003
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //#
27 //# $Id$
28 
29 #ifndef SCIMATH_CONVOLVEGRIDDER_H
30 #define SCIMATH_CONVOLVEGRIDDER_H
31 
32 #include <casacore/casa/aips.h>
33 #include <casacore/scimath/Mathematics/Gridder.h>
34 #include <casacore/casa/BasicSL/String.h>
35 
36 namespace casacore { //# NAMESPACE CASACORE - BEGIN
37 
38 // <summary>
39 // Does convolutional gridding
40 // </summary>
41 
42 template <class Domain, class Range>
43 class ConvolveGridder : public Gridder<Domain, Range>
44 {
45 public:
46 
48  const Vector<Domain>& offset, const String& convType="SF");
49 
50  virtual void setConvolutionFunction(const String& type);
51 
52  virtual ~ConvolveGridder() {}
53 
54  virtual Bool grid(Array<Range>& gridded,
55  const Vector<Domain>& position,
56  const Range& value);
57 
58  virtual Bool degrid(const Array<Range>& gridded,
59  const Vector<Domain>& position,
60  Range& value);
61 
63 
65 
67 
68 protected:
69  virtual Range correctionFactor1D(Int loc, Int len);
70 
71 private:
78 
79 public:
81 protected:
82  //# Make members of parent classes known.
94 };
95 
96 } //# NAMESPACE CASACORE - END
97 
98 #ifndef CASACORE_NO_AUTO_TEMPLATES
99 #include <casacore/scimath/Mathematics/ConvolveGridder.tcc>
100 #endif //# CASACORE_NO_AUTO_TEMPLATES
101 #endif
casacore::IPosition
A Vector of integers, for indexing into Array<T> objects.
Definition: IPosition.h:120
casacore::Gridder::position
Vector< Domain > & position(Vector< Domain > &gpos, const Vector< Domain > &pos)
casacore::ConvolveGridder::~ConvolveGridder
virtual ~ConvolveGridder()
Definition: ConvolveGridder.h:52
casacore::ConvolveGridder::setConvolutionFunction
virtual void setConvolutionFunction(const String &type)
casacore::ConvolveGridder::correctionFactor1D
virtual Range correctionFactor1D(Int loc, Int len)
Correction factor for 1 dimension.
casacore::ConvolveGridder::cFunction
Vector< Double > & cFunction()
casacore::ConvolveGridder::grid
virtual Bool grid(Array< Range > &gridded, const Vector< Domain > &position, const Range &value)
casacore::value
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
casacore::ConvolveGridder::support
Int support
Definition: ConvolveGridder.h:76
casacore::ConvolveGridder::cSampling
Int & cSampling()
casacore::ConvolveGridder::loc
Vector< Int > loc
Definition: ConvolveGridder.h:74
casacore::Gridder::shape
IPosition shape
Definition: Gridder.h:92
casacore::ConvolveGridder::supportVec
Vector< Int > supportVec
Definition: ConvolveGridder.h:73
casacore::ConvolveGridder
Does convolutional gridding.
Definition: ConvolveGridder.h:44
casacore::Int
int Int
Definition: aipstype.h:50
casacore
this file contains all the compiler specific defines
Definition: mainpage.dox:28
casacore::ConvolveGridder::cType
String cType
Definition: ConvolveGridder.h:77
casacore::ConvolveGridder::degrid
virtual Bool degrid(const Array< Range > &gridded, const Vector< Domain > &position, Range &value)
casacore::Gridder
A base class for gridding.
Definition: Gridder.h:46
casacore::Gridder::scale
Vector< Domain > scale
Definition: Gridder.h:94
casacore::Gridder::offset
Vector< Domain > offset
Definition: Gridder.h:95
casacore::Array
template <class T, class U> class vector;
Definition: Array.h:167
casacore::String
String: the storage and methods of handling collections of characters.
Definition: String.h:223
casacore::Bool
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
casacore::ConvolveGridder::cSupport
Vector< Int > & cSupport()
casacore::Vector< Domain >
casacore::ConvolveGridder::ConvolveGridder
ConvolveGridder(const IPosition &shape, const Vector< Domain > &scale, const Vector< Domain > &offset, const String &convType="SF")
casacore::ConvolveGridder::convFunc
Vector< Double > convFunc
Definition: ConvolveGridder.h:72
casacore::ConvolveGridder::sampling
Int sampling
Definition: ConvolveGridder.h:75