37 #ifndef AIMS_BORDER_BORDER_H 38 #define AIMS_BORDER_BORDER_H 61 Border(
int dimx,
int dimy,
int dimz,
int width=0);
75 Border(
int dimx,
int dimy,
int dimz,
87 Border(
int dimx,
int dimy,
int dimz,
88 const std::vector<int> & borders);
95 int borderWidth()
const;
98 int oFirstPoint()
const;
100 int oLastPoint()
const;
104 int oPointBetweenLine()
const;
108 int oLineBetweenSlice()
const;
112 int oSliceBetweenVolume()
const;
114 const std::vector<int> & borders()
const;
144 void _setBorder(
int dimx,
int dimy,
int dimz,
int width);
149 void _setBorder(
int dimx,
int dimy,
int dimz,
159 void _setBorder(
int dimx,
int dimy,
int dimz,
162 const std::vector<int> & borders);
182 bx1,bx2,by1,by2,bz1,bz2);
187 const std::vector<int> &
borders):
206 for (
int i = 1; i < s; ++i)
207 width = std::min(width,
_borders[i]);
int oLineBetweenSlice() const
Number of lines between 2 consecutive slices.
int _oLastPoint
Offset up to last point.
int _oSlice
Length of a slice.
int oPointBetweenLine() const
Offset between the end of a line and the start of the consecutive line.
int oLine() const
Offset between 2 consecutive lines.
void _setBorder(int dimx, int dimy, int dimz, int width)
Function that sets up all protected datas.
const std::vector< int > & borders() const
Sizes of the border.
The base class to manage borders on data containers.
The class for EcatSino data write operation.
int oSlice() const
Offset between 2 consecutive slices.
int _oPointBetweenLine
Offset between two consecutive lines.
int oLastPoint() const
Offset from the start of the allocated memory to the last point.
int _oSliceBetweenVolume
Offset between two consecutive volumes.
int oVolume() const
Offset between 2 consecutive volumes.
int _oFirstPoint
Offset up to first point.
int _oLineBetweenSlice
Offset between two consecutive slices.
Border(int dimx, int dimy, int dimz, int width=0)
The constructor precalculates offsets to speed-up access to data during loops.
int _oVolume
Length of a volume.
std::vector< int > _borders
Borders.
int oSliceBetweenVolume() const
Number of slices between 2 consecutive volumes.
int _oLine
Length of a line.
int oFirstPoint() const
Offset from the start of the allocated memory to the first point.
int borderWidth() const
Usefull offsets for A.I.M.S.