The CubicInterpolator class provides sub-pixel access to blitz++ Arrays using cubic interpolation.
More...
#include "libArrayToolbox/Interpolator.hh"
|
| CubicInterpolator (BoundaryTreatmentType bt=ValueBT, DataT const &boundaryValue=traits< DataT >::zero) |
| Constructor. More...
|
|
| CubicInterpolator (CubicInterpolator< DataT, Dim > const &ip) |
| Copy Constructor. More...
|
|
| ~CubicInterpolator () |
| Destructor. More...
|
|
BoundaryTreatment< DataT, Dim > const & | boundaryTreatment () const |
| Get a read-only reference to the Interpolator's boundary treatment object. More...
|
|
BoundaryTreatment< DataT, Dim > & | boundaryTreatment () |
| Get a random-access reference to the Interpolator's boundary treatment object. More...
|
|
Interpolator< DataT, Dim > * | clone () const |
| Get a deep copy of this Interpolator object. More...
|
|
DataT | get (blitz::Array< DataT, Dim > const &data, blitz::TinyVector< double, Dim > const &pos) const |
| Get the Array value at the given subpixel position. More...
|
|
CubicInterpolator< DataT, Dim > & | operator= (CubicInterpolator< DataT, Dim > const &ip) |
| Copy assignment operator. More...
|
|
void | setBoundaryTreatment (BoundaryTreatmentType bt, DataT const &boundaryValue=traits< DataT >::zero) |
| Set the Interpolator's boundary treatment type. More...
|
|
InterpolationType | type () const |
| Get the corresponding enumeration value for the interpolation type. More...
|
|
template<typename DataT, int Dim>
class atb::CubicInterpolator< DataT, Dim >
The CubicInterpolator class provides sub-pixel access to blitz++ Arrays using cubic interpolation.
- See also
- BoundaryTreatment, ValueBoundaryTreatment, CyclicBoundaryTreatment, RepeatBoundaryTreatment, MirrorBoundaryTreatment, CropBoundaryTreatment
Definition at line 408 of file Interpolator.hh.
◆ CubicInterpolator() [1/2]
template<typename DataT, int Dim>
Constructor.
- Parameters
-
bt | The boundary treatment to apply when out-of-Array positions are requested. |
boundaryValue | The default out-of-Array value (for ValueBT) |
◆ CubicInterpolator() [2/2]
template<typename DataT, int Dim>
Copy Constructor.
- Parameters
-
◆ ~CubicInterpolator()
template<typename DataT, int Dim>
◆ operator=()
template<typename DataT, int Dim>
Copy assignment operator.
- Parameters
-
- Returns
- A reference to this Interpolator object for operator chaining
◆ clone()
template<typename DataT, int Dim>
◆ type()
template<typename DataT, int Dim>
◆ get()
template<typename DataT, int Dim>
DataT atb::CubicInterpolator< DataT, Dim >::get |
( |
blitz::Array< DataT, Dim > const & |
data, |
|
|
blitz::TinyVector< double, Dim > const & |
pos |
|
) |
| const |
|
virtual |
Get the Array value at the given subpixel position.
With this interpolator the value will be the evaluation of a locally fit cubic function to the data at the query position.
- Parameters
-
data | The Array to get a value from |
pos | The position |
- Returns
- The interpolated Array value at the given position using cubic interpolation
Implements atb::Interpolator< DataT, Dim >.
◆ boundaryTreatment() [1/2]
template<typename DataT, int Dim>
◆ boundaryTreatment() [2/2]
template<typename DataT, int Dim>
◆ setBoundaryTreatment()
template<typename DataT, int Dim>
Set the Interpolator's boundary treatment type.
- Parameters
-
bt | The new boundary treatment type |
boundaryValue | The default out-of-Array value (for ValueBT) |
◆ p_bt
template<typename DataT, int Dim>
The documentation for this class was generated from the following file: