![]() |
aimsdata
4.7.0
Neuroimaging data handling
|
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... | |
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 22 of file borderfiller.h.
|
static |
Fills the border with a constant value.
Definition at line 42 of file borderfiller.h.
References aims::BorderIterator< T >::begin(), and aims::BorderIterator< T >::end().
|
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)
This can be overriden by the argument size
.
Definition at line 52 of file borderfiller.h.
References aims::BorderIterator< T >::begin(), aims::BorderIterator< T >::end(), carto::VolumeRef< T >::getBorders(), and aims::MathUtil< T >::median().
|
static |
The border is filled by mirroring the inside border of same size.
Definition at line 103 of file borderfiller.h.
References aims::BorderIterator< T >::begin(), aims::BorderIterator< T >::const_iterator::coordinate(), aims::BorderIterator< T >::end(), carto::VolumeRef< T >::getSizeT(), carto::VolumeRef< T >::getSizeX(), carto::VolumeRef< T >::getSizeY(), and carto::VolumeRef< T >::getSizeZ().
|
static |
Each voxel of the border is assigned with the nearest inside voxel.
Definition at line 73 of file borderfiller.h.
References aims::BorderIterator< T >::begin(), aims::BorderIterator< T >::const_iterator::coordinate(), aims::BorderIterator< T >::end(), and carto::VolumeRef< T >::getSizeX().