SLIMMER
Public Types | Public Member Functions | Protected Attributes
StackSet< TStackType > Class Template Reference

A class for a set of stacks. More...

#include <StackSetNew.h>

Inheritance diagram for StackSet< TStackType >:
vector vector

List of all members.

Public Types

typedef TStackType StackType
typedef TStackType StackType

Public Member Functions

 StackSet ()
 Constructor.
 StackSet (char *configFilename)
 Constructor.
 StackSet (const StackSet &ms)
 Copy constructor.
 ~StackSet ()
 Destructor.
IndexPair getIndexPair (unsigned int i) const
 Returns the stack id and stack id for the ith slice in the stack set.
float mindim () const
 Returns mindim (minimal voxel diension)
unsigned int getNSlice () const
 Return total number of slices in the stack set.
unsigned int getNStack () const
 Retuns number of stacks.
StackType & getStackRef (int tt)
 Returns the pointer to the tt-th stack (SliceStack object)
const StackType & getStack (int tt) const
 Returns the pointer to the tt-th stack (SliceStack object)
const SimpleTField< float > & getmask ()
 Returns const reference to mask (a const function)
unsigned int Load (char *configFilename)
 Loads stacks from images file, stack DOF file, and slice DOF file.
void Save (char *configFilename)
 Loads stacks from images file, stack DOF file, and slice DOF file.
void AddStack (StackType &st)
 Add a stack.
int DropStack (unsigned int tt)
 Drop a stack.
 StackSet ()
 Constructor.
 StackSet (const SimpleTField< float > &mask)
 Constructor.
 StackSet (const char *configFilename)
 Constructor.
 StackSet (const StackSet &ms)
 Copy constructor.
 ~StackSet ()
 Destructor.
IndexPair getIndexPair (unsigned int i) const
 Returns the stack id and stack id for the ith slice in the stack set.
IndexPair getIndexTriple (unsigned int i) const
 Returns the stack id and stack id for the ith slice in the stack set.
float mindim () const
 Returns mindim (minimal voxel diension)
unsigned int getNSlice () const
 Return total number of slices in the stack set.
unsigned int getNFrame () const
 Return total number of frames in the stack set.
unsigned int getNStack () const
 Retuns number of stacks.
StackType & getStackRef (int tt)
 Returns the pointer to the tt-th stack (SliceStack object)
const StackType & getStack (int tt) const
 Returns the pointer to the tt-th stack (SliceStack object)
const SimpleTField< float > & getConstMask ()
 Returns const reference to mask (a const function)
SimpleTField< float > & getmask ()
 Returns reference to mask (a const function)
vector< GenerateStackConfig
< float, unsigned int > > 
getGenerators ()
unsigned int Load (const char *configFilename)
 Loads stacks from images file, stack DOF file, and slice DOF file.
int Generate (const char *configFilename)
 Generate random stack set for testing.
void AddNoise (SimpleVTVec< float > N)
void Save (char *configFilename)
 Loads stacks from images file, stack DOF file, and slice DOF file.
void SaveDefaultSdofs (char *configFilename)
void AddStack (StackType &st)
 Add a stack.
int DropStack (unsigned int tt)
 Drop a stack.

Protected Attributes

unsigned int _nslice
 total number of slices
float _mindim
SimpleTField< float > _mask
vector< IndexPair_indices
unsigned int _nframe
 total number of frames
vector< IndexTriple_indices
vector< GenerateStackConfig
< float, unsigned int > > 
_generators

Detailed Description

template<typename TStackType>
class StackSet< TStackType >

A class for a set of stacks.

Author:
Mads Fogtmann 2011
 All Classes Functions Variables Typedefs