![]() |
aimsdata
5.0.5
Neuroimaging data handling
|
The base class to manage borders on data containers. More...
#include <aims/border/border.h>
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... | |
Border (int dimx, int dimy, int dimz, int bx1, int bx2, int by1, int by2, int bz1, int bz2) | |
The constructor precalculates offsets to speed-up access to data during loops. More... | |
Border (int dimx, int dimy, int dimz, const std::vector< int > &borders) | |
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... | |
const std::vector< int > & | borders () const |
Sizes of the border. More... | |
Protected Member Functions | |
Functions | |
void | _setBorder (int dimx, int dimy, int dimz, int width) |
Function that sets up all protected datas. More... | |
void | _setBorder (int dimx, int dimy, int dimz, int bx1, int bx2, int by1, int by2, int bz1, int bz2) |
Function that sets up all protected datas for non uniform borders. More... | |
void | _setBorder (int dimx, int dimy, int dimz, const std::vector< int > &borders) |
Function that sets up all protected datas for non uniform borders. More... | |
Protected Attributes | |
Data | |
std::vector< int > | _borders |
Borders. 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... | |
|
inline |
The constructor precalculates offsets to speed-up access to data during loops.
dimx | X dimension |
dimy | Y dimension |
dimz | Z dimension |
width | border width |
Definition at line 168 of file border.h.
References _setBorder().
|
inline |
The constructor precalculates offsets to speed-up access to data during loops.
dimx | X dimension |
dimy | Y dimension |
dimz | Z dimension |
bx1 | first border along X dimension |
bx2 | second border along X dimension |
by1 | first border along Y dimension |
by2 | second border along Y dimension |
bz1 | first border along Z dimension |
bz2 | second border along Z dimension |
Definition at line 175 of file border.h.
References _setBorder().
|
inline |
The constructor precalculates offsets to speed-up access to data during loops.
dimx | X dimension |
dimy | Y dimension |
dimz | Z dimension |
borders | std::vector<int> containing border sizes |
Definition at line 186 of file border.h.
References _setBorder().
|
protected |
Function that sets up all protected datas.
Referenced by Border(), and AimsData< AimsData< AimsData< T > > >::operator=().
|
protected |
Function that sets up all protected datas for non uniform borders.
|
protected |
Function that sets up all protected datas for non uniform borders.
const std::vector<int>& aims::Border::borders | ( | ) | const |
Sizes of the border.
Referenced by carto::RawConverter< AimsData< INP >, AimsData< INP > >::convert(), and AimsData< AimsData< AimsData< T > > >::operator=().
|
inline |
Usefull offsets for A.I.M.S.
data Size of the border
Definition at line 200 of file border.h.
References _borders.
Referenced by carto::ConverterAllocator< AimsData< INP >, AimsData< OUTP > >::alloc(), AimsThreshold< T, U >::bin(), AimsThreshold< T, U >::clip(), carto::Rescaler< AimsData< INP >, AimsData< OUTP > >::convert(), carto::Rescaler< AimsData< AimsRGB >, AimsData< AimsVector< T, D > > >::convert(), AimsData< AimsData< AimsData< T > > >::cross(), AimsFlip< T >::doXX(), AimsFlip< T >::doXXYY(), AimsFlip< T >::doXXYYZZ(), AimsFlip< T >::doXXZZ(), AimsFlip< T >::doXY(), AimsFlip< T >::doXZ(), AimsFlip< T >::doYY(), AimsFlip< T >::doYYZZ(), AimsFlip< T >::doYZ(), AimsFlip< T >::doZZ(), AimsThreshold< T, U >::operator()(), AimsData< AimsData< AimsData< T > > >::transpose(), aims::triInf(), and aims::triSup().
|
inline |
Offset from the start of the allocated memory to the first point.
Definition at line 215 of file border.h.
References _oFirstPoint.
Referenced by AimsData< AimsData< AimsData< T > > >::maxIndex(), AimsData< AimsData< AimsData< T > > >::minIndex(), aims::minmax(), and AimsData< AimsData< AimsData< T > > >::operator=().
|
inline |
Offset from the start of the allocated memory to the last point.
Definition at line 222 of file border.h.
References _oLastPoint.
|
inline |
Offset between 2 consecutive lines.
Definition at line 229 of file border.h.
References _oLine.
Referenced by aims::AimsConnectedComponent(), aims::AimsLabeledConnectedComponent(), and aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connectedInFrame().
|
inline |
Number of lines between 2 consecutive slices.
Definition at line 250 of file border.h.
References _oLineBetweenSlice.
Referenced by AimsData< AimsData< AimsData< T > > >::maxIndex(), AimsData< AimsData< AimsData< T > > >::minIndex(), aims::minmax(), and AimsData< AimsData< AimsData< T > > >::operator=().
|
inline |
Offset between the end of a line and the start of the consecutive line.
Definition at line 236 of file border.h.
References _oPointBetweenLine.
Referenced by AimsData< AimsData< AimsData< T > > >::maxIndex(), AimsData< AimsData< AimsData< T > > >::minIndex(), aims::minmax(), and AimsData< AimsData< AimsData< T > > >::operator=().
|
inline |
Offset between 2 consecutive slices.
Definition at line 243 of file border.h.
References _oSlice.
Referenced by aims::AimsConnectedComponent(), aims::AimsLabeledConnectedComponent(), and aims::ConnectedComponentEngine< AimsData< T >, AimsData< O > >::connectedInFrame().
|
inline |
Number of slices between 2 consecutive volumes.
Definition at line 264 of file border.h.
References _oSliceBetweenVolume.
Referenced by AimsData< AimsData< AimsData< T > > >::maxIndex(), AimsData< AimsData< AimsData< T > > >::minIndex(), aims::minmax(), and AimsData< AimsData< AimsData< T > > >::operator=().
|
inline |
|
protected |
|
protected |
Offset up to first point.
Definition at line 124 of file border.h.
Referenced by AimsData< AimsData< AimsData< T > > >::empty(), and oFirstPoint().
|
protected |
|
protected |
Length of a line.
Definition at line 128 of file border.h.
Referenced by AimsData< AimsData< AimsData< T > > >::empty(), and oLine().
|
protected |
Offset between two consecutive slices.
Definition at line 134 of file border.h.
Referenced by AimsData< AimsData< AimsData< T > > >::empty(), and oLineBetweenSlice().
|
protected |
Offset between two consecutive lines.
Definition at line 130 of file border.h.
Referenced by AimsData< AimsData< AimsData< T > > >::empty(), and oPointBetweenLine().
|
protected |
Length of a slice.
Definition at line 132 of file border.h.
Referenced by AimsData< AimsData< AimsData< T > > >::empty(), and oSlice().
|
protected |
Offset between two consecutive volumes.
Definition at line 138 of file border.h.
Referenced by AimsData< AimsData< AimsData< T > > >::empty(), and oSliceBetweenVolume().
|
protected |
Length of a volume.
Definition at line 136 of file border.h.
Referenced by AimsData< AimsData< AimsData< T > > >::empty(), and oVolume().