aimsdata 6.0.20
Neuroimaging data handling
aims::LinearInterpolator< T > Class Template Reference

#include <aims/resampling/linearInterpolator.h>

Inheritance diagram for aims::LinearInterpolator< T >:
Collaboration diagram for aims::LinearInterpolator< T >:

Public Member Functions

 LinearInterpolator (const carto::VolumeRef< T > &image)
virtual ~LinearInterpolator ()
bool isValid (Coordinate_t x, Coordinate_t y, Coordinate_t z) const
 Return true if point ( x, y, z ) can be used for interpolation.
virtual const carto::PropertySet & header () const
 Return the header of the image.
Public Member Functions inherited from aims::Interpolator
virtual ~Interpolator ()
bool isValid (const Interpolator::Point_t &point) const
 Return true if point can be used for interpolation.
Scalar_t operator() (Coordinate_t x, Coordinate_t y, Coordinate_t z) const __attribute__((__deprecated__("use value() method instead")))
Scalar_t operator() (const Interpolator::Point_t &point) const __attribute__((__deprecated__("use value() method instead")))
void operator() (Coordinate_t x, Coordinate_t y, Coordinate_t z, std::vector< Scalar_t > &v) const __attribute__((__deprecated__("use values() method instead")))
void operator() (const Interpolator::Point_t &point, std::vector< Scalar_t > &v) const __attribute__((__deprecated__("use values() method instead")))
Scalar_t value (Coordinate_t x, Coordinate_t y, Coordinate_t z) const
 Interpolate to get a value from point ( x, y ,z ).
Scalar_t value (const Interpolator::Point_t &point) const
 Interpolate to get a value from point.
void values (Coordinate_t x, Coordinate_t y, Coordinate_t z, std::vector< Scalar_t > &v) const
 Interpolate to get a series of values from point ( x, y ,z ).
void values (const Interpolator::Point_t &point, std::vector< Scalar_t > &v) const
 Interpolate to get a series of values from point ( x, y ,z ).
Public Member Functions inherited from carto::RCObject
 RCObject ()
 RCObject (const RCObject &)
RCObject & operator= (const RCObject &)
virtual ~RCObject ()

Additional Inherited Members

Public Types inherited from aims::Interpolator
typedef float Coordinate_t
typedef Point3df Point_t
typedef double Scalar_t
Public Types inherited from carto::RCObject
typedef int RefCounterType
Static Protected Member Functions inherited from carto::DefaultRefConstruction
static const T * release (const_ref< T > *)

Detailed Description

template<typename T>
class aims::LinearInterpolator< T >

Definition at line 160 of file linearInterpolator.h.

Constructor & Destructor Documentation

◆ LinearInterpolator()

template<typename T>
aims::LinearInterpolator< T >::LinearInterpolator ( const carto::VolumeRef< T > & image)
inline

Definition at line 247 of file linearInterpolator.h.

◆ ~LinearInterpolator()

template<typename T>
aims::LinearInterpolator< T >::~LinearInterpolator ( )
inlinevirtual

Definition at line 279 of file linearInterpolator.h.

Member Function Documentation

◆ header()

template<typename T>
const carto::PropertySet & aims::LinearInterpolator< T >::header ( ) const
inlinevirtual

Return the header of the image.

Implements aims::Interpolator.

Definition at line 402 of file linearInterpolator.h.

◆ isValid()

template<typename T>
bool aims::LinearInterpolator< T >::isValid ( Coordinate_t x,
Coordinate_t y,
Coordinate_t z ) const
inlinevirtual

Return true if point ( x, y, z ) can be used for interpolation.

If interpolation is tried on an invalid point, it may crash the program.

Implements aims::Interpolator.

Definition at line 286 of file linearInterpolator.h.


The documentation for this class was generated from the following file: