~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/covira/brainold.h

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2 *
  3 *brain.h
  4 *
  5 */
  6 
  7 /*
  8 #include <unistd.h> why?
  9 */
 10 #include <tina/tw_X11funcs.h>
 11 
 12 #define SPLINE_NATURAL 1
 13 #define SPLINE_PERIODIC 2
 14 #define SPLINE_TANGENT 3
 15 
 16 #define IMS_NONE   1
 17 #define IMS_IMAGE  2
 18 #define IMS_POT    3
 19 
 20 #define IMS_SPLINE 4
 21 #define IMS_STRING 5
 22 #define IMS_SNAKE  6
 23 
 24 #define MOVE_OK 2
 25 #define INS_OK 2
 26 #define DEL_OK 2
 27 #define LINE8 0
 28 #define LINE4 1
 29 #define DD_VEC2(_ptr) (*(Vec2 *)(_ptr)->to)
 30 
 31 #define SLICE(_imstack) (_imstack)->slice[(_imstack)->z]
 32 #define VOI(_imstack)   (_imstack)->slice[(_imstack)->z]->voi[(_imstack)->nvoi]
 33 
 34 typedef struct spline
 35 {
 36     int type;
 37     int n;
 38     double *p;                  /* Knots. */
 39 } Spline;
 40 
 41 typedef struct spline2
 42 {
 43     int type;
 44     int n;
 45     Spline *x;                  /* Spline x-axis data. */
 46     Spline *y;                  /* Spline y-axis data. */
 47 } Spline2;
 48 
 49 typedef struct snake
 50 {
 51     int n;
 52     Vec2 *p;
 53     Vec2 ftrans;
 54     double frot;
 55     double fscale;
 56     Vec2 *f;
 57     void (*forcelaw)();
 58 } Snake;
 59 
 60 typedef struct voi
 61 {
 62     Spline2 *spline;
 63     Tstring *string;
 64     Snake *snake;
 65     int nspline;
 66     double asnake;
 67     int n;
 68 } Voi;
 69 
 70 #define NVOI 6
 71 
 72 typedef struct slice
 73 {
 74     Imrect *im;
 75     Imrect *pot;
 76     Voi *voi[NVOI];
 77     double z;
 78 } Slice;
 79 
 80 typedef struct imstack
 81 {
 82     Vartype vtype;
 83     int x, lx, ux;
 84     int y, ly, uy;
 85     int z, lz, uz;
 86     int zmark;
 87     Slice **slice;
 88     double zscale;
 89     int nvoi;
 90     struct stats *stats;
 91     struct tube *tube;
 92 } Imstack;
 93 
 94 typedef struct splinesurf
 95 {
 96     int utype, vtype;
 97     int nu, nv;
 98     double **p;
 99 } Splinesurf;
100 
101 typedef struct splinesurf3
102 {
103     int utype, vtype;
104     int nu, nv;
105     Splinesurf *x, *y, *z;
106 } Splinesurf3;
107 
108 typedef struct snaxel
109 {
110     Vec2 p;                     /* Position vector */
111     struct snaxel *next;        /* Next snaxel */
112     struct snaxel *prev;        /* Previous snaxel */
113 } Snaxel;
114 
115 typedef struct stats
116 {
117     int n;                      /* Sample size */
118     double tot1;                /* Sum */
119     double tot2;                /* Sum of squares */
120     double mean;                /* Mean */
121     double var;                 /* Variance */
122     double sd;                  /* Standard deviation */
123 } Stats;
124 
125 typedef struct statsnake
126 {
127     int size;                   /* Number of snaxels */
128     Snaxel *head;               /* First snaxel */
129 } Statsnake;
130 
131 typedef struct tube
132 {
133     int z1, z2;
134     Vec2 *p1, *p2;
135 } Tube;
136 
137 /*
138 covira heads
139 */
140 
141 typedef struct _aivru_snake_slice_info{
142    Tstring *pString;        /* set to null if no contour */
143    int zCoordinate;
144  } aivru_snake_slice_info;
145 
146 typedef struct _AvVoiSurface {
147   int nx;
148   int ny;
149   float* cp;
150 } AvVoiSurface;
151 
152 #define PUSH_CONTOUR 0
153 #define SHIFT_CONTOUR 1
154 #define ZOOM_CONTOUR 2
155 
156 #define RUN_RIGID 0
157 #define RUN_DYNAMIC 1
158 
159 #define SEEK_EDGE 1
160 #define CORRELATE 2
161 #define GROW_REGION 3
162 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.