aimsdata 6.0.0
Neuroimaging data handling
cartodatavolume.h File Reference
#include <cartodata/volume/volume.h>
#include <cartodata/volume/volumeoperators.h>
#include <aims/vector/vector.h>
#include <aims/rgb/rgb.h>
#include <cartobase/smart/rcptr.h>
#include <soma-io/allocator/allocator.h>
#include <aims/data/pheader.h>
#include <algorithm>
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

namespace  carto
 

Macros

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

Definition at line 1271 of file cartodatavolume.h.

Referenced by aims::Sinogram< T >::allocate(), and aims::Sinogram< T >::Sinogram().

◆ ForEach1dp

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

Definition at line 1290 of file cartodatavolume.h.

◆ ForEach2d

#define ForEach2d ( thing,
x,
y )
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,
y )
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,
z )
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,
z )
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,
t )
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.

Referenced by aims::SpmWriter< T >::write().

◆ ForEach4dp

#define ForEach4dp ( thing,
x,
y,
z,
t )
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