aimsdata  4.7.0
Neuroimaging data handling
aims::Border Class Reference

The base class to manage borders on data containers. More...

#include <aims/border/border.h>

Inheritance diagram for aims::Border:

Public Member Functions

Constructor and Destructor
 Border (int dimx, int dimy, int dimz, int width=0)
 The constructor precalculates offsets to speed-up access to data during loops. More...
 
virtual ~Border ()
 
int borderWidth () const
 Usefull offsets for A.I.M.S. More...
 
int oFirstPoint () const
 Offset from the start of the allocated memory to the first point. More...
 
int oLastPoint () const
 Offset from the start of the allocated memory to the last point. More...
 
int oLine () const
 Offset between 2 consecutive lines. More...
 
int oPointBetweenLine () const
 Offset between the end of a line and the start of the consecutive line. More...
 
int oSlice () const
 Offset between 2 consecutive slices. More...
 
int oLineBetweenSlice () const
 Number of lines between 2 consecutive slices. More...
 
int oVolume () const
 Offset between 2 consecutive volumes. More...
 
int oSliceBetweenVolume () const
 Number of slices between 2 consecutive volumes. More...
 

Protected Member Functions

Functions
void _setBorder (int dimx, int dimy, int dimz, int width)
 Function that sets up all protected datas. More...
 

Protected Attributes

Data
int _borderWidth
 Border width. More...
 
int _oFirstPoint
 Offset up to first point. More...
 
int _oLastPoint
 Offset up to last point. More...
 
int _oLine
 Length of a line. More...
 
int _oPointBetweenLine
 Offset between two consecutive lines. More...
 
int _oSlice
 Length of a slice. More...
 
int _oLineBetweenSlice
 Offset between two consecutive slices. More...
 
int _oVolume
 Length of a volume. More...
 
int _oSliceBetweenVolume
 Offset between two consecutive volumes. More...
 

Detailed Description

The base class to manage borders on data containers.

Definition at line 47 of file border.h.

Constructor & Destructor Documentation

◆ Border()

aims::Border::Border ( int  dimx,
int  dimy,
int  dimz,
int  width = 0 
)
inline

The constructor precalculates offsets to speed-up access to data during loops.

Parameters
dimxX dimension
dimyY dimension
dimzZ dimension
widthborder width

Definition at line 122 of file border.h.

◆ ~Border()

aims::Border::~Border ( )
inlinevirtual

Definition at line 129 of file border.h.

Member Function Documentation

◆ _setBorder()

void aims::Border::_setBorder ( int  dimx,
int  dimy,
int  dimz,
int  width 
)
protected

Function that sets up all protected datas.

Referenced by AimsData< AimsData< AimsData< T > > >::operator=().

◆ borderWidth()

◆ oFirstPoint()

int aims::Border::oFirstPoint ( ) const
inline

Offset from the start of the allocated memory to the first point.

Definition at line 142 of file border.h.

Referenced by AimsData< AimsData< AimsData< T > > >::maxIndex(), AimsData< AimsData< AimsData< T > > >::minIndex(), aims::minmax(), and AimsData< AimsData< AimsData< T > > >::operator=().

◆ oLastPoint()

int aims::Border::oLastPoint ( ) const
inline

Offset from the start of the allocated memory to the last point.

Definition at line 149 of file border.h.

◆ oLine()

int aims::Border::oLine ( ) const
inline

◆ oLineBetweenSlice()

int aims::Border::oLineBetweenSlice ( ) const
inline

◆ oPointBetweenLine()

int aims::Border::oPointBetweenLine ( ) const
inline

Offset between the end of a line and the start of the consecutive line.

Definition at line 163 of file border.h.

Referenced by AimsData< AimsData< AimsData< T > > >::maxIndex(), AimsData< AimsData< AimsData< T > > >::minIndex(), aims::minmax(), and AimsData< AimsData< AimsData< T > > >::operator=().

◆ oSlice()

int aims::Border::oSlice ( ) const
inline

◆ oSliceBetweenVolume()

int aims::Border::oSliceBetweenVolume ( ) const
inline

◆ oVolume()

int aims::Border::oVolume ( ) const
inline

Offset between 2 consecutive volumes.

Definition at line 184 of file border.h.

Member Data Documentation

◆ _borderWidth

int aims::Border::_borderWidth
protected

Border width.

Definition at line 92 of file border.h.

◆ _oFirstPoint

int aims::Border::_oFirstPoint
protected

Offset up to first point.

Definition at line 94 of file border.h.

Referenced by AimsData< AimsData< AimsData< T > > >::AimsData(), and AimsData< AimsData< AimsData< T > > >::operator=().

◆ _oLastPoint

int aims::Border::_oLastPoint
protected

Offset up to last point.

Definition at line 96 of file border.h.

◆ _oLine

int aims::Border::_oLine
protected

◆ _oLineBetweenSlice

int aims::Border::_oLineBetweenSlice
protected

Offset between two consecutive slices.

Definition at line 104 of file border.h.

Referenced by AimsData< AimsData< AimsData< T > > >::AimsData(), and AimsData< AimsData< AimsData< T > > >::operator=().

◆ _oPointBetweenLine

int aims::Border::_oPointBetweenLine
protected

Offset between two consecutive lines.

Definition at line 100 of file border.h.

Referenced by AimsData< AimsData< AimsData< T > > >::AimsData(), and AimsData< AimsData< AimsData< T > > >::operator=().

◆ _oSlice

int aims::Border::_oSlice
protected

◆ _oSliceBetweenVolume

int aims::Border::_oSliceBetweenVolume
protected

Offset between two consecutive volumes.

Definition at line 108 of file border.h.

Referenced by AimsData< AimsData< AimsData< T > > >::AimsData(), and AimsData< AimsData< AimsData< T > > >::operator=().

◆ _oVolume

int aims::Border::_oVolume
protected

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