A.I.M.S


aims::BorderFiller< T > Class Template Reference

This class contains static methods to fill the border of a VolumeRef with chosen values. More...

#include <aims/border/borderfiller.h>

Static Public Member Functions

static void fillConstant (carto::VolumeRef< T > in, const T &value=0)
 Fills the border with a constant value. More...
 
static void fillMedian (carto::VolumeRef< T > in, Point4dl size=Point4dl(-1,-1,-1,-1))
 Fills the border with a "median" value. More...
 
static void fillNearest (carto::VolumeRef< T > in)
 Each voxel of the border is assigned with the nearest inside voxel. More...
 
static void fillMirror (carto::VolumeRef< T > in)
 The border is filled by mirroring the inside border of same size. More...
 

Detailed Description

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

This class contains static methods to fill the border of a VolumeRef with chosen values.

This is useful for processing algorithms that work in a neighborhood (filtering...)

Definition at line 23 of file borderfiller.h.

Member Function Documentation

template<typename T >
void aims::BorderFiller< T >::fillConstant ( carto::VolumeRef< T >  in,
const T &  value = 0 
)
static

Fills the border with a constant value.

Definition at line 41 of file borderfiller.h.

References aims::BorderIterator< T >::begin(), and aims::BorderIterator< T >::end().

template<typename T >
void aims::BorderFiller< T >::fillMedian ( carto::VolumeRef< T >  in,
Point4dl  size = Point4dl(-1,-1,-1,-1) 
)
static

Fills the border with a "median" value.

This is the median value of the inside border of equal size: if the outside border is of size (2, 2, 0) in dimensions x, y, z, the inside border is also of size (2, 2, 0)

Definition at line 51 of file borderfiller.h.

References aims::BorderIterator< T >::begin(), aims::BorderIterator< T >::end(), carto::VolumeRef< T >::getBorders(), and aims::MathUtil< T >::median().

template<typename T >
void aims::BorderFiller< T >::fillMirror ( carto::VolumeRef< T >  in)
static
template<typename T >
void aims::BorderFiller< T >::fillNearest ( carto::VolumeRef< T >  in)
static

Each voxel of the border is assigned with the nearest inside voxel.

Definition at line 72 of file borderfiller.h.

References aims::BorderIterator< T >::begin(), aims::BorderIterator< T >::const_iterator::coordinate(), aims::BorderIterator< T >::end(), and carto::VolumeRef< T >::getSizeX().


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