![]() |
aimsdata
4.7.0
Neuroimaging data handling
|
Represents the border of a volume. More...
#include <aims/border/borderiterator.h>
Classes | |
class | const_iterator |
Border: const iterator. More... | |
class | iterator |
Border: iterator. More... | |
Public Member Functions | |
BorderIterator (carto::VolumeRef< T > in, bool inside=false, const Point4dl &size=Point4dl(-1, -1, -1, -1)) | |
Border constructor. More... | |
BorderIterator (carto::VolumeRef< T > in, bool inside, const Point4dl &sizeinf, const Point4dl &sizesup) | |
BorderIterator () | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
bool | operator== (const BorderIterator< T > &other) const |
Protected Attributes | |
carto::VolumeRef< T > | _volume |
bool | _inside |
Point4dl | _sizeinf |
Point4dl | _sizesup |
Friends | |
class | const_iterator |
class | iterator |
Represents the border of a volume.
This border can be outside (if volume with borders are used and enough memory is allocated) or inside. It is defined by a Volume Ref, a border size and its direction (inside or outside)
Iterators (const and non const) are defined for this class. They allow to easily run through all border voxels. Those iterators implement the classic iterator operators (assignment, increment, ...). They also have a coordinates() method that returns the position of the current voxel in the volume.
Definition at line 25 of file borderiterator.h.
|
inline |
Border constructor.
in | Input volume whise border voxels to iterate |
inside | If false consider "outside" border (with coordinates outside the volume dimensions). If true consider "inside" border |
size | border size in each dimension. If inside is true, size must be >= 0 in each dim. If inside is false and a size dim has negative value, the maximum possible border in this dimension is computed. |
Definition at line 49 of file borderiterator.h.
References aims::BorderIterator< T >::_sizeinf, aims::BorderIterator< T >::_sizesup, and aims::BorderIterator< T >::_volume.
|
inline |
Definition at line 81 of file borderiterator.h.
References aims::BorderIterator< T >::_sizeinf, aims::BorderIterator< T >::_sizesup, and aims::BorderIterator< T >::_volume.
|
inline |
Definition at line 114 of file borderiterator.h.
|
inline |
Definition at line 238 of file borderiterator.h.
References aims::BorderIterator< T >::const_iterator::iterator.
Referenced by aims::BorderFiller< T >::fillConstant(), aims::BorderFiller< T >::fillMedian(), aims::BorderFiller< T >::fillMirror(), and aims::BorderFiller< T >::fillNearest().
|
inline |
Definition at line 240 of file borderiterator.h.
References aims::BorderIterator< T >::const_iterator::const_iterator().
|
inline |
Definition at line 239 of file borderiterator.h.
References aims::BorderIterator< T >::const_iterator::iterator.
Referenced by aims::BorderFiller< T >::fillConstant(), aims::BorderFiller< T >::fillMedian(), aims::BorderFiller< T >::fillMirror(), and aims::BorderFiller< T >::fillNearest().
|
inline |
Definition at line 241 of file borderiterator.h.
References aims::BorderIterator< T >::const_iterator::const_iterator().
|
inline |
Definition at line 243 of file borderiterator.h.
References aims::BorderIterator< T >::_inside, aims::BorderIterator< T >::_sizeinf, aims::BorderIterator< T >::_sizesup, and aims::BorderIterator< T >::_volume.
|
friend |
Definition at line 257 of file borderiterator.h.
|
friend |
Definition at line 258 of file borderiterator.h.
|
protected |
Definition at line 253 of file borderiterator.h.
Referenced by aims::BorderIterator< T >::operator==().
|
protected |
Definition at line 254 of file borderiterator.h.
Referenced by aims::BorderIterator< T >::BorderIterator(), and aims::BorderIterator< T >::operator==().
|
protected |
Definition at line 255 of file borderiterator.h.
Referenced by aims::BorderIterator< T >::BorderIterator(), and aims::BorderIterator< T >::operator==().
|
protected |
Definition at line 252 of file borderiterator.h.
Referenced by aims::BorderIterator< T >::BorderIterator(), and aims::BorderIterator< T >::operator==().