ecat 6.0.0
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
6typedef struct matrix
7 {
8 int ncols, nrows;
9 float *data;
10 }
12
13typedef struct vol3d
14 {
15 int xdim, ydim, zdim;
17 float *data;
18 }
20
21typedef struct stack3d
22 {
23 int xdim, ydim, zdim;
25 float *data;
26 }
28
29typedef struct view2d
30 {
31 int xdim, ydim;
33 float *data;
34 }
36
37#if defined(__cplusplus)
38extern "C" {
39#endif /* __cplusplus */
40 void matmpy(Matrix res, Matrix a, Matrix b);
43 Matrix mat_alloc(int ncols, int nrows);
45 void rotate(Matrix a,float rx, float ry, float rz);
46 void translate(Matrix a,float tx, float ty, float tz);
47 void scale(Matrix a,float sx, float sy, float sz);
49 /* Matrix mat_alloc(); */
52#if defined(__cplusplus)
53}
54#endif /* __cplusplus */
55
56#endif /* matpkg_h_defined */
void mat_unity(Matrix)
struct stack3d * Stack3d
void translate(Matrix a, float tx, float ty, float tz)
struct matrix * Matrix
Vol3d make3d_volume()
void rotate(Matrix a, float rx, float ry, float rz)
struct vol3d * Vol3d
struct view2d * View2d
Stack3d make3d_stack()
void matmpy(Matrix res, Matrix a, Matrix b)
void mat_print(Matrix)
void mat_free(Matrix)
void mat_copy(Matrix a, Matrix b)
Matrix mat_alloc(int ncols, int nrows)
void scale(Matrix a, float sx, float sy, float sz)
Definition matpkg.h:7
float * data
Definition matpkg.h:9
int nrows
Definition matpkg.h:8
int ncols
Definition matpkg.h:8
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
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