aimstil  5.0.5
ImageExtrapolator.h File Reference
#include "til/til_common.h"
#include "til/imageTools.h"
#include "til/labels.h"
#include "til/PointerTraits.h"
Include dependency graph for ImageExtrapolator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  til::RangeCheckingExtrapolator
 No image extrapolation. More...
 
class  til::ZeroExtrapolator
 Extrapolate image with default value of image type (zero for numeric types) More...
 
class  til::NearestExtrapolator
 Image extrapolation using value of nearest image point. More...
 
class  til::MirrorExtrapolator
 Extrapolation using (thin) mirror symmetry. More...
 
class  til::CyclicExtrapolator
 Image extrapolation using cyclic symmetry. More...
 
class  til::UnsafeNoExtrapolator
 This extrapolator actually does NOT extrapolate at all and does not do any range checking. More...
 
class  til::ExtrapolableImage< TImageExtrapolator, TImage >
 Enable image extrapolation by overloading the getValue function. More...
 

Namespaces

 til
 Belongs to package Box Do not include directly, include til/Box.h instead.
 

Macros

#define TIL_EXTRAPOL_FUNC(imname, posname)
 

Functions

template<class TImageExtrapolator , class TImage >
ExtrapolableImage< TImageExtrapolator, TImage > til::extrapolable (const TImage &im)
 

Macro Definition Documentation

◆ TIL_EXTRAPOL_FUNC

#define TIL_EXTRAPOL_FUNC (   imname,
  posname 
)
Value:
template < typename TImage > \
INLINE \
static typename TImage::value_type \
getValue(const TImage &im, numeric_array<int,3> pos) \
{ if (contains(im,pos)) { return im.getUnsafeValue(pos); } \
else { return Self::getExtrapolatedValue(im, pos); } } \
\
template < typename TImage > \
INLINE \
static typename TImage::value_type \
getExtrapolatedValue(const TImage & imname, numeric_array<int,3> posname) \
boost::enable_if< is_numeric_container< TStorage >, bool >::type contains(const Box< T, D > &box, const TStorage &v)
Check whether a point lies within box.
Definition: boxTools.h:15

Definition at line 49 of file ImageExtrapolator.h.