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

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

~ [ 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.