SLIMMER
Public Types | Public Member Functions | Static Public Attributes
Stack< T, TTransformType > Class Template Reference

A class for a stack of slices with multiple slices. More...

#include <Stack.h>

Inheritance diagram for Stack< T, TTransformType >:
SimpleTField< T > BasicHeader SimpleVoxIO SimpleVTVec< T, unsigned long int > ReadDataType SimpleBaseTVec< T, unsigned long int >

List of all members.

Public Types

typedef TTransformType TransformType
typedef SimpleTField< T > FieldType
typedef Stack< T, TransformType > SelfType
typedef std::pair< float, int > IndexTimePair
 Returns a sorted vector of sorted time stamps with indices.

Public Member Functions

 Stack ()
 Constructor.
 ~Stack ()
 destructor
 Stack (const SelfType &st)
 Copy constructor.
template<typename T1 >
 Stack (const Stack< T1, TransformType > &st)
 Copy constructor.
 Stack (const char *giplName, const char *dofName, const char *sdofName)
 File IO constructor.
 Stack (GenerateStackConfig< float, unsigned int > &gsc)
 Gnerate constructor.
void load (const char *giplName, const char *dofName, const char *sdofName)
 Loading a stack of slices from gipl, dof and sdof files.
void crop (int s1, int s2, int t1, int t2)
void save (const char *giplName, const char *dofName, const char *sdofName)
 Save a stack of slices to gipl, dof and sdof files.
void savedefaultstacksdofs (const char *sdofName)
void loadFromFiles (const char *giplName, const char *dofName, const char *sdofName)
 Loading a stack of slices from gipl, dof and sdof files.
SelfTypeoperator= (const SelfType &st)
 Assignment.
template<typename TT >
SelfTypeoperator= (const SimpleTField< TT > &tf)
SimpleTVec< float, 3 > getResolution ()
 Returns the resolution of the slices in standard deviation (NOT FWHM)
vector< IndexTimePairgetSortedSliceTime ()
void AddNoise (float sigma)
unsigned int getNSlice () const
 < Returns the number of slices in stack

Static Public Attributes

static const char _versionID []

Detailed Description

template<typename T, typename TTransformType>
class Stack< T, TTransformType >

A class for a stack of slices with multiple slices.

Author:
Mads Fogtmann 2011
 All Classes Functions Variables Typedefs