casa
5.7.0-16
|
Abstract base class for interpolator used by CurvedLattice2D. More...
#include <CLInterpolator2D.h>
Public Member Functions | |
CLInterpolator2D () | |
virtual | ~CLInterpolator2D () |
virtual CLInterpolator2D< T > * | clone () const =0 |
Let a derived class make a copy of itself. More... | |
void | set (MaskedLattice< T > *lattice, const AxesMapping &axesMap, uInt axis1, uInt axis2, uInt curveAxis) |
Set the internals to the values of the CurvedLattice using it. More... | |
virtual void | getData (Array< T > &buffer, const Vector< Float > &x, const Vector< Float > &y, const Slicer §ion)=0 |
Get the data for the given pixel points (on axis1 and axis2) and the chunk in the other axes as given by the section. More... | |
virtual void | getMask (Array< Bool > &buffer, const Vector< Float > &x, const Vector< Float > &y, const Slicer §ion)=0 |
Get the mask for the given pixel points (on axis1 and axis2) and the chunk in the other axes as given by the section. More... | |
Protected Member Functions | |
CLInterpolator2D (const CLInterpolator2D< T > &) | |
Copy constructor can only be used by derived classes. More... | |
CLInterpolator2D & | operator= (const CLInterpolator2D< T > &) |
Assignment can only be used by derived classes. More... | |
virtual void | preset () |
Let a derived class do some initial work after set is called. More... | |
Protected Attributes | |
MaskedLattice< T > * | itsLatticePtr |
AxesMapping | itsAxesMap |
uInt | itsAxis1 |
uInt | itsAxis2 |
uInt | itsCurveAxis |
Bool | itsIsRef |
Abstract base class for interpolator used by CurvedLattice2D.
Internal
The CL in CLInterpolator2D means CurvedLattice. The 2D means that interpolation in 2 dimensions needs to be done.
CurvedLattice2D needs lattice data which are not on exact grid points. Therefore some interpolation scheme is needed. The abstract base class CLInterpolation2D makes it possible for CurvedLattice2D to use any interpolation scheme. Currently the only derived class is CLIPNearest2D
Apart from interpolating and returning data, a derived class also has to return a mask. For instance, in a possible derived class using 4-point interpolation, the interpolation scheme has to take the image mask into account, and make a mask for its output data (say that the output point is masked off if its 4 input points are masked off).
This base class has some data members defining the lattice and the lattice axes to be interpolated. When these data members are set, the virtual function preset
is called. A derived class can implement this function to do some precalculations, etc..
This class makes it possible to hide the interpolation to be used from the CurvedLattice2D class.
Definition at line 88 of file CLInterpolator2D.h.
|
inline |
Definition at line 92 of file CLInterpolator2D.h.
|
virtual |
|
protected |
Copy constructor can only be used by derived classes.
|
pure virtual |
Let a derived class make a copy of itself.
Implemented in casacore::CLIPNearest2D< T >.
|
pure virtual |
Get the data for the given pixel points (on axis1 and axis2) and the chunk in the other axes as given by the section.
The Slicer is fixed and the buffer has the correct shape.
Implemented in casacore::CLIPNearest2D< T >.
|
pure virtual |
Get the mask for the given pixel points (on axis1 and axis2) and the chunk in the other axes as given by the section.
The Slicer is fixed and the buffer has the correct shape.
Implemented in casacore::CLIPNearest2D< T >.
|
protected |
Assignment can only be used by derived classes.
|
protectedvirtual |
Let a derived class do some initial work after set is called.
The default implementation does nothing.
void casacore::CLInterpolator2D< T >::set | ( | MaskedLattice< T > * | lattice, |
const AxesMapping & | axesMap, | ||
uInt | axis1, | ||
uInt | axis2, | ||
uInt | curveAxis | ||
) |
Set the internals to the values of the CurvedLattice using it.
Note that only a copy of the lattice pointer is made. Thereafter the virtual function preset() is called to give a derived class the opportunity to do some initial work.
|
protected |
Definition at line 137 of file CLInterpolator2D.h.
|
protected |
Definition at line 138 of file CLInterpolator2D.h.
|
protected |
Definition at line 139 of file CLInterpolator2D.h.
|
protected |
Definition at line 140 of file CLInterpolator2D.h.
|
protected |
Definition at line 141 of file CLInterpolator2D.h.
|
protected |
Definition at line 136 of file CLInterpolator2D.h.