aimsdata  5.1.2
Neuroimaging data handling
cartodatavolume.h File Reference
Include dependency graph for cartodatavolume.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AimsData< T >
 
class  carto::DataTypeCode< AimsData< T > >
 
struct  AimsData< T >::Private
 

Namespaces

 carto
 

Macros

#define ForEach4d(thing, x, y, z, t)
 
#define ForEach3d(thing, x, y, z)
 
#define ForEach2d(thing, x, y)
 
#define ForEach1d(thing, x)    for ( x = 0; x < thing.dimX(); x++ )
 
#define ForEach4dp(thing, x, y, z, t)
 
#define ForEach3dp(thing, x, y, z)
 
#define ForEach2dp(thing, x, y)
 
#define ForEach1dp(thing, x)    for ( x = 0; x < thing->dimX(); x++ )
 

Functions

template<typename T >
carto::Object carto::getObjectHeader (AimsData< T > &obj)
 
template<typename T >
AimsData< T > operator+ (const AimsData< T > &firstThing, const AimsData< T > &secondThing)
 
template<typename T >
AimsData< T > operator- (const AimsData< T > &firstThing, const AimsData< T > &secondThing)
 
template<typename T >
AimsData< T > operator* (const AimsData< T > &firstThing, float scale)
 

Macro Definition Documentation

◆ ForEach1d

#define ForEach1d (   thing,
 
)     for ( x = 0; x < thing.dimX(); x++ )

Definition at line 1271 of file cartodatavolume.h.

◆ ForEach1dp

#define ForEach1dp (   thing,
 
)     for ( x = 0; x < thing->dimX(); x++ )

Definition at line 1290 of file cartodatavolume.h.

◆ ForEach2d

#define ForEach2d (   thing,
  x,
 
)
Value:
for ( y = 0; y < thing.dimY(); y++ ) \
for ( x = 0; x < thing.dimX(); x++ )

Definition at line 1267 of file cartodatavolume.h.

◆ ForEach2dp

#define ForEach2dp (   thing,
  x,
 
)
Value:
for ( y = 0; y < thing->dimY(); y++ ) \
for ( x = 0; x < thing->dimX(); x++ )

Definition at line 1286 of file cartodatavolume.h.

◆ ForEach3d

#define ForEach3d (   thing,
  x,
  y,
 
)
Value:
for ( z = 0; z < thing.dimZ(); z++ ) \
for ( y = 0; y < thing.dimY(); y++ ) \
for ( x = 0; x < thing.dimX(); x++ )

Definition at line 1262 of file cartodatavolume.h.

◆ ForEach3dp

#define ForEach3dp (   thing,
  x,
  y,
 
)
Value:
for ( z = 0; z < thing->dimZ(); z++ ) \
for ( y = 0; y < thing->dimY(); y++ ) \
for ( x = 0; x < thing->dimX(); x++ )

Definition at line 1281 of file cartodatavolume.h.

◆ ForEach4d

#define ForEach4d (   thing,
  x,
  y,
  z,
 
)
Value:
for ( t = 0; t < thing.dimT(); t++ ) \
for ( z = 0; z < thing.dimZ(); z++ ) \
for ( y = 0; y < thing.dimY(); y++ ) \
for ( x = 0; x < thing.dimX(); x++ )

Definition at line 1256 of file cartodatavolume.h.

◆ ForEach4dp

#define ForEach4dp (   thing,
  x,
  y,
  z,
 
)
Value:
for ( t = 0; t < thing->dimT(); t++ ) \
for ( z = 0; z < thing->dimZ(); z++ ) \
for ( y = 0; y < thing->dimY(); y++ ) \
for ( x = 0; x < thing->dimX(); x++ )

Definition at line 1275 of file cartodatavolume.h.

Function Documentation

◆ operator*()

template<typename T >
AimsData<T> operator* ( const AimsData< T > &  firstThing,
float  scale 
)
inline

◆ operator+()

template<typename T >
AimsData<T> operator+ ( const AimsData< T > &  firstThing,
const AimsData< T > &  secondThing 
)
inline

◆ operator-()

template<typename T >
AimsData<T> operator- ( const AimsData< T > &  firstThing,
const AimsData< T > &  secondThing 
)
inline