Buffer Data Matrix

 

Since most of the data that will be manipulated in the SliceO_Class structures are images, we have the possibility to create 2D matrices of data.

 

Private:

 

m_matrix (void **)

Pointer to the matrix

 

m_mat_x (unsigned short)

 

"x" dimension of the matrix

m_mat_y (unsigned short)

 

"y" dimension of the matrix

m_mat_dim (unsigned short)

 

size (in bytes) of each cell of the matrix

Public:

Matrix_New

A method that return a pointer to the name of this instance or a pointer to "no name" if it is empty.  By default, the name is the name of the file without path or extensions.

 

Matrix_Clear

 

A method that clear the content of the matrix to "0"

Matrix_Get_X

 

A method that return the "x" dimension of the matrix.

Matrix_Get_Y

 

A method that return the "x" dimension of the matrix.

Matrix_Get_Dim

 

A method that return the size (in bytes) of each cell of the matrix.

Matrix_Get

 

A method that return a pointer to the matrix.

Matrix_Copy

 

A method that create the matrix by making a duplicate of an existing matrix of the same dimensions.

Matrix_Delete

 

A method that free the memory used by the matrix.