1 #ifndef cvr_HEADS_DEFINED
2 #define cvr_HEADS_DEFINED
3 /** @(#)IcImage structures etc
4 **/
5
6 #include <tina/sys.h>
7 #include <tina/math.h>
8
9 #define PULL_CONTOUR 0
10 #define PUSH_CONTOUR 1
11 #define SEEK_EDGE 1
12 #define CORRELATE 2
13 #define GROW_REGION 3
14
15 /* Covira slice structure (single image) */
16 typedef struct cvr_slice
17 {
18 Ts_id ts_id; /* Tina structure identifier */
19 int num;
20 double z;
21 Imrect *im; /* image */
22 Bool newback; /* backing store out-of-date */
23 void *picture; /* backing store */
24 List *voilist; /* list of volumes of interest */
25 } Cvr_slice;
26 #define CVR_SLICE_SWAP_STRING "igpipp"
27
28
29 /* Volume of interest structure */
30 typedef struct cvr_voi
31 {
32 Ts_id ts_id; /* Tina structure identifier */
33 char name[128];
34 Tstring *string; /* underlying string of Vec2's */
35 struct ucbs2 *ucbs; /* generating B-spline */
36 struct imrect *region; /* region enclosed */
37 } Cvr_voi;
38 #define CVR_VOI_SWAP_STRING "128[c].pp"
39
40 typedef struct epos
41 {
42 Ts_id ts_id; /* Tina structure identifier */
43 int j;
44 int i;
45 int filler;
46 double g;
47 } Epos;
48 #define EPOS_SWAP_STRING "iiig"
49
50 /* Covira array */
51 typedef struct icarray
52 {
53 Ts_id ts_id; /* Tina structure identifier */
54 float x, y, a;
55 } Icarray;
56 #define ICARRAY_SWAP_STRING "fff"
57
58 /* IcContour temporarily defined as Tstring*/
59 typedef Tstring IcContour;
60
61 #define ICCONTOUR_STRUCT_CREATE ((IcContour*)ralloc(sizeof(IcContour)))
62
63 /* IcImage temporarily defined as List*/
64 typedef List IcImage;
65
66 #define ICIMAGE_STRUCT_CREATE ((IcImage *)ralloc(sizeof (IcImage)))
67
68 typedef Vec2 IcPoint;
69
70 #define ICPOINT_STRUCT_CREATE ((IcPoint*)ralloc(sizeof(IcPoint)))
71
72 #define VEC2_TO_ICPOINT(_vpos,_icpt){(_icpt).el[0]=(_vpos).el[0];(_icpt).el[1]=(_vpos).el[1];}
73 #define ICPOINT_TO_VEC2(_icpt,_vpos){(_vpos).el[0]=(_icpt).el[0];(_vpos).el[1]=(_icpt).el[1];}
74
75 typedef struct imstack
76 {
77 Ts_id ts_id; /* Tina structure identifier */
78 Imrect **imrect;
79 int first;
80 int end;
81 int slice;
82 void *data;
83 } Imstack;
84 #define IMSTACK_SWAP_STRING ".iiip"
85
86 #define IMSTACK_STRUCT_CREATE ((Imstack *) ralloc((sizeof (Imstack))))
87 #define IMRECT_FREE(_im) {rfree((void*)(_im)->region); \
88 rfree((void*)(_im)->props); rfree((void*)(_im));}
89 #endif /* cvr_HEADS_DEFINED */
90
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.