Classes | Typedefs | Functions
gft::Matrix Namespace Reference

Classes

struct  _matrix
 

Typedefs

typedef struct gft::Matrix::_matrix Matrix
 

Functions

MatrixCreate (int ncols, int nrows)
 
void Destroy (Matrix **mat)
 
MatrixClone (Matrix *mat)
 
void Copy (Matrix *dest, Matrix *src)
 
void Print (Matrix *M)
 
void PrintDimension (Matrix *M)
 
MatrixInvert (Matrix *A)
 
float GetTrace (Matrix *M)
 
MatrixMult (Matrix *A, Matrix *B)
 
MatrixMultByScalar (Matrix *A, float k)
 
MatrixSub (Matrix *A, Matrix *B)
 
MatrixAdd (Matrix *A, Matrix *B)
 
MatrixTranspose (Matrix *A)
 
float ComputeDistanceL2 (Matrix *Y, Matrix *X)
 
MatrixRead (char *filename)
 
void Write (Matrix *M, char *filename)
 
bool IsValidEntry (Matrix *M, int i, int j)
 
float GetMaximumValue (Matrix *M)
 
float GetMinimumValue (Matrix *M)
 
void Fill (Matrix *M, float value)
 
void ChangeValue (Matrix *M, float old_value, float new_value)
 
Image32::Image32Convert2Image (Matrix *M)
 
Image32::Image32Threshold (Matrix *M, float lower, float higher)
 
MatrixRotationMatrix3 (int axis, float th)
 
MatrixTranslationMatrix3 (float dx, float dy, float dz)
 
MatrixTransformVoxel (Matrix *m, gft::Voxel v)
 

Typedef Documentation

It supports both linear and two-dimensional access (i.e., M->val[0][p] or M->val[i][j] for an entry (i,j) at address p=j+i*ncols).

Function Documentation

Matrix * gft::Matrix::Add ( Matrix *  A,
Matrix *  B 
)
void gft::Matrix::ChangeValue ( Matrix *  M,
float  old_value,
float  new_value 
)
Matrix * gft::Matrix::Clone ( Matrix *  mat)
float gft::Matrix::ComputeDistanceL2 ( Matrix *  Y,
Matrix *  X 
)
Image32::Image32 * gft::Matrix::Convert2Image ( Matrix *  M)
void gft::Matrix::Copy ( Matrix *  dest,
Matrix *  src 
)
Matrix * gft::Matrix::Create ( int  ncols,
int  nrows 
)
void gft::Matrix::Destroy ( Matrix **  mat)
void gft::Matrix::Fill ( Matrix *  M,
float  value 
)
float gft::Matrix::GetMaximumValue ( Matrix *  M)
float gft::Matrix::GetMinimumValue ( Matrix *  M)
float gft::Matrix::GetTrace ( Matrix *  M)
Matrix * gft::Matrix::Invert ( Matrix *  A)
bool gft::Matrix::IsValidEntry ( Matrix *  M,
int  i,
int  j 
)
Matrix * gft::Matrix::Mult ( Matrix *  A,
Matrix *  B 
)
Matrix * gft::Matrix::MultByScalar ( Matrix *  A,
float  k 
)
void gft::Matrix::Print ( Matrix *  M)
void gft::Matrix::PrintDimension ( Matrix *  M)
Matrix * gft::Matrix::Read ( char *  filename)
Matrix * gft::Matrix::RotationMatrix3 ( int  axis,
float  th 
)
Parameters
axisan option (0->x / 1->y / 2->z).
Matrix * gft::Matrix::Sub ( Matrix *  A,
Matrix *  B 
)
Image32::Image32 * gft::Matrix::Threshold ( Matrix *  M,
float  lower,
float  higher 
)
Matrix * gft::Matrix::TransformVoxel ( Matrix *  m,
gft::Voxel  v 
)
Matrix * gft::Matrix::TranslationMatrix3 ( float  dx,
float  dy,
float  dz 
)
Matrix * gft::Matrix::Transpose ( Matrix *  A)
void gft::Matrix::Write ( Matrix *  M,
char *  filename 
)