28 #ifndef SCIMATH_INTERPOLATE2D_H 29 #define SCIMATH_INTERPOLATE2D_H 32 #include <casacore/casa/aips.h> 37 template <
typename T>
class Vector;
38 template <
typename T>
class Matrix;
159 template <
typename T>
188 template <
typename T>
196 template <
typename T>
204 template <
typename T>
212 template <
typename T>
219 template <
typename T>
220 T
sinc(
const T x)
const;
221 template <
typename T>
222 T
L(
const T x,
const Int a)
const;
255 #ifndef CASACORE_NO_AUTO_TEMPLATES 256 #include <casacore/scimath/Mathematics/Interpolate2D2.tcc> 257 #endif //# CASACORE_NO_AUTO_TEMPLATES
Bool(Interpolate2D::* FuncPtrFloat)(Float &result, const Vector< Double > &where, const Matrix< Float > &data, const Matrix< Bool > *&maskPtr) const
Typedefs for function pointers.
T L(const T x, const Int a) const
static Interpolate2D::Method stringToMethod(const String &method)
Convert string ("nearest", "linear", "cubic", "lanczos") to interpolation method. ...
FuncPtrDouble itsFuncPtrDouble
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
Bool interpNearestBool(Bool &result, const Vector< Double > &where, const Matrix< Bool > &data) const
Bool interp(Float &result, const Vector< Double > &where, const Matrix< Float > &data) const
Do one Float interpolation, supply Matrix and mask (True is good), and pixel coordinate.
T sinc(const T x) const
Lanczos interpolation: helper functions.
Bool interpCubicBool(Bool &result, const Vector< Double > &where, const Matrix< Bool > &data) const
FuncPtrFloat itsFuncPtrFloat
Bool interpLinear(T &result, const Vector< Double > &where, const Matrix< T > &data, const Matrix< Bool > *&maskPtr) const
bi-linear interpolation
Interpolate2D & operator=(const Interpolate2D &other)
Assignment operator (copy semantics)
Interpolate2D(Interpolate2D::Method method=Interpolate2D::LINEAR)
Constructor.
Bool anyBadMaskPixels(const Matrix< Bool > *&mask, Int i1, Int i2, Int j1, Int j2) const
Are any of the mask pixels bad ? Returns False if no mask.
Bool(Interpolate2D::* FuncPtrDouble)(Double &result, const Vector< Double > &where, const Matrix< Double > &data, const Matrix< Bool > *&maskPtr) const
Bool(Interpolate2D::* FuncPtrBool)(Bool &result, const Vector< Double > &where, const Matrix< Bool > &data) const
Bool interpLinear2(T &resultI, T &resultJ, const Vector< Double > &where, const Matrix< T > &dataI, const Matrix< T > &dataJ, const Matrix< Bool > &mask) const
bool Bool
Define the standard types used by Casacore.
~Interpolate2D()
destructor
Bool interpCubic(T &result, const Vector< Double > &where, const Matrix< T > &data, const Matrix< Bool > *&maskPtr) const
bi-cubic interpolation
void bcucof(Double c[4][4], const Double y[4], const Double y1[4], const Double y2[4], const Double y12[4]) const
helping routine from numerical recipes
Bool interpLanczosBool(Bool &result, const Vector< Double > &where, const Matrix< Bool > &data) const
Bool interpLinearBool(Bool &result, const Vector< Double > &where, const Matrix< Bool > &data) const
Bool interpLanczos(T &result, const Vector< Double > &where, const Matrix< T > &data, const Matrix< Bool > *&maskPtr) const
Lanczos interpolation.
const Double c
Fundamental physical constants (SI units):
A two dimension interpolator for Matrices or Arrays.
String: the storage and methods of handling collections of characters.
Bool interpNearest(T &result, const Vector< Double > &where, const Matrix< T > &data, const Matrix< Bool > *&maskPtr) const
nearest neighbour interpolation
this file contains all the compiler specific defines
FuncPtrBool itsFuncPtrBool