ecat  5.1.2
matpkg.h
Go to the documentation of this file.
1 /* @(#)matpkg.h 1.2 3/15/91 */
2 #ifndef matpkg_h_defined
3 #define matpkg_h_defined
4 #include <math.h>
5 
6 typedef struct matrix
7  {
8  int ncols, nrows;
9  float *data;
10  }
12 
13 typedef struct vol3d
14  {
15  int xdim, ydim, zdim;
16  float voxel_size;
17  float *data;
18  }
20 
21 typedef struct stack3d
22  {
23  int xdim, ydim, zdim;
24  float xy_size, z_size;
25  float *data;
26  }
28 
29 typedef struct view2d
30  {
31  int xdim, ydim;
33  float *data;
34  }
36 
37 #if defined(__cplusplus)
38 extern "C" {
39  matmpy(Matrix res, Matrix a, Matrix b);
40  mat_print(Matrix);
41  mat_unity(Matrix);
42  Matrix mat_alloc(int ncols, int nrows);
43  mat_copy(Matrix a, Matrix b);
44  rotate(Matrix a,float rx, float ry, float rz);
45  translate(Matrix a,float tx, float ty, float tz);
46  scale(Matrix a,float sx, float sy, float sz);
47  mat_free(Matrix);
48 }
49 #endif /* __cplusplus */
50 
54 #endif /* matpkg_h_defined */
struct stack3d * Stack3d
struct matrix * Matrix
Vol3d make3d_volume()
struct vol3d * Vol3d
struct view2d * View2d
Stack3d make3d_stack()
Matrix mat_alloc()
Definition: matpkg.h:7
float * data
Definition: matpkg.h:9
int nrows
Definition: matpkg.h:8
int ncols
Definition: matpkg.h:8
Definition: matpkg.h:22
int zdim
Definition: matpkg.h:23
float * data
Definition: matpkg.h:25
int xdim
Definition: matpkg.h:23
float z_size
Definition: matpkg.h:24
int ydim
Definition: matpkg.h:23
float xy_size
Definition: matpkg.h:24
Definition: matpkg.h:30
float y_pixel_size
Definition: matpkg.h:32
int xdim
Definition: matpkg.h:31
int ydim
Definition: matpkg.h:31
float * data
Definition: matpkg.h:33
float x_pixel_size
Definition: matpkg.h:32
Definition: matpkg.h:14
int ydim
Definition: matpkg.h:15
float voxel_size
Definition: matpkg.h:16
int zdim
Definition: matpkg.h:15
float * data
Definition: matpkg.h:17
int xdim
Definition: matpkg.h:15