EMVolume Class Reference

Kilian turn around dimension so it is y,x,z like in matlab ! More...

#include <vtkDataDef.h>

List of all members.

Public Member Functions

void Conv (double *v, int vLen)
 Kilian : Just to be compatible with older version.
void Conv (float *v, int vLen)
void ConvX (EMVolume &src, float v[], int vLen)
 Same as above only sorce and target Volume are different => Slower.
void ConvX (float *v, int vLen)
void ConvY (float *v, int vLen)
 End - Multi Thread Function.
void ConvZ (EMVolume &src, float v[], int vLen)
 Same as above only sorce and target Volume are different => Slower.
void ConvZ (float *v, int vLen)
 EMVolume (int initZ, int initY, int initX)
 EMVolume ()
void EraseDataFile (char *FileName)
float * GetData ()
int GetMaxX ()
int GetMaxY ()
int GetMaxZ ()
const float & operator() (int z, int y, int x) const
float & operator() (int z, int y, int x)
EMVolumeoperator= (const EMVolume &trg)
void Print (char name[])
void ReadDataFromFile (char *FileName)
void Resize (int DimZ, int DimY, int DimX)
void SaveDataToFile (char *FileName)
void SetValue (float val)
void Test (int Vdim)
 ~EMVolume ()

Protected Member Functions

void allocate (int initZ, int initY, int initX)
void deallocate ()

Protected Attributes

float * Data
int MaxX
int MaxXY
int MaxXYZ
int MaxY
int MaxZ

Detailed Description

Kilian turn around dimension so it is y,x,z like in matlab !

Definitions for 3D float array EMVolume ----------------------------------------------------------------------------------------------/


Constructor & Destructor Documentation

EMVolume::EMVolume (  )  [inline]
EMVolume::EMVolume ( int  initZ,
int  initY,
int  initX 
) [inline]
EMVolume::~EMVolume (  )  [inline]

Member Function Documentation

void EMVolume::allocate ( int  initZ,
int  initY,
int  initX 
) [inline, protected]
void EMVolume::Conv ( double *  v,
int  vLen 
)

Kilian : Just to be compatible with older version.

References Conv().

void EMVolume::Conv ( float *  v,
int  vLen 
) [inline]

Convolution in all three direction Can be made using less memory but then it will be probably be slower

Referenced by Conv().

void EMVolume::ConvX ( EMVolume src,
float  v[],
int  vLen 
)

Same as above only sorce and target Volume are different => Slower.

void EMVolume::ConvX ( float *  v,
int  vLen 
)

References convVector(), Data, MaxX, MaxY, MaxZ, and result.

void EMVolume::ConvY ( float *  v,
int  vLen 
)

End - Multi Thread Function.

References convVector(), Data, MaxX, MaxXY, MaxY, MaxZ, and result.

void EMVolume::ConvZ ( EMVolume src,
float  v[],
int  vLen 
)

Same as above only sorce and target Volume are different => Slower.

void EMVolume::ConvZ ( float *  v,
int  vLen 
)

References convVector(), Data, and MaxXYZ.

void EMVolume::deallocate (  )  [inline, protected]
void EMVolume::EraseDataFile ( char FileName  )  [inline]

Compress it back

float* EMVolume::GetData (  )  [inline]
int EMVolume::GetMaxX (  )  [inline]
int EMVolume::GetMaxY (  )  [inline]
int EMVolume::GetMaxZ (  )  [inline]
const float& EMVolume::operator() ( int  z,
int  y,
int  x 
) const [inline]
float& EMVolume::operator() ( int  z,
int  y,
int  x 
) [inline]
EMVolume& EMVolume::operator= ( const EMVolume trg  )  [inline]

Has to be of the same dimension

References Data, MaxX, MaxY, and MaxZ.

void EMVolume::Print ( char  name[]  ) 

References MaxX, MaxY, and MaxZ.

void EMVolume::ReadDataFromFile ( char FileName  )  [inline]

First uncompress file

Do not quit here bc could have been unzipped before - if file does not exist next check will catch it

Could not open file

terminate

Compress it back

References fclose, FILE, fopen, and fread.

void EMVolume::Resize ( int  DimZ,
int  DimY,
int  DimX 
) [inline]
void EMVolume::SaveDataToFile ( char FileName  )  [inline]

Could not open file

Compress file

References fclose, fflush, FILE, fopen, and fwrite.

void EMVolume::SetValue ( float  val  )  [inline]
void EMVolume::Test ( int  Vdim  ) 

Member Data Documentation

float* EMVolume::Data [protected]

Referenced by ConvX(), ConvY(), ConvZ(), and operator=().

int EMVolume::MaxX [protected]

Referenced by ConvX(), ConvY(), operator=(), and Print().

int EMVolume::MaxXY [protected]

Referenced by ConvY().

int EMVolume::MaxXYZ [protected]

Referenced by ConvZ().

int EMVolume::MaxY [protected]

Referenced by ConvX(), ConvY(), operator=(), and Print().

int EMVolume::MaxZ [protected]

Referenced by ConvX(), ConvY(), operator=(), and Print().


The documentation for this class was generated from the following files:

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1