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

Linux Cross Reference
Tina6/tina-libs/tina/geometry/geomDef.h

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

  1 /**********
  2  * 
  3  * This file is part of the TINA Open Source Image Analysis Environment
  4  * henceforth known as TINA
  5  *
  6  * TINA is free software; you can redistribute it and/or modify
  7  * it under the terms of the GNU General Public License as 
  8  * published by the Free Software Foundation.
  9  *
 10  * TINA is distributed in the hope that it will be useful,
 11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  * GNU General Public License for more details.
 14  *
 15  * You should have received a copy of the GNU General Public License
 16  * along with TINA; if not, write to the Free Software Foundation, Inc., 
 17  * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 18  *
 19  * ANY users of TINA who require exemption from the existing licence must
 20  * negotiate a new licence with Dr. Neil.A.Thacker, the sole agent for
 21  * the University of Manchester.
 22  *
 23  **********
 24  * 
 25  * Program :    TINA
 26  * File    :  $Source: /home/tina/cvs/tina-libs/tina/geometry/geomDef.h,v $
 27  * Date    :  $Date: 2002/12/09 11:51:23 $
 28  * Version :  $Revision: 1.1.1.1 $
 29  * CVS Id  :  $Id: geomDef.h,v 1.1.1.1 2002/12/09 11:51:23 cvstina Exp $
 30  *
 31  * Notes : structure definitions of general tina primitives
 32  *
 33  *********
 34 */
 35 
 36 #ifndef TINA_GEOM_DEF_HDR 
 37 #define TINA_GEOM_DEF_HDR 
 38 
 39 #include <tina/geometry/geom_CamDef.h>
 40 #include <tina/geometry/geom_CurveDef.h>
 41 #include <tina/geometry/geom_EdgeDef.h>
 42 #include <tina/geometry/geom_GenDef.h>
 43 #include <tina/geometry/geom_LineDef.h>
 44 #include <tina/geometry/geom_PlaneDef.h>
 45 #include <tina/geometry/geom_PointDef.h>
 46 #include <tina/geometry/geom_ScalarDef.h>
 47 #include <tina/geometry/geom_SplineDef.h>
 48 #include <tina/geometry/geom_TransDef.h>
 49 #include <tina/geometry/geom_IndxDef.h>
 50 
 51 #define DD_GET_POS2(dd, p) { Vec2 vec2_zero();\
 52             switch ((dd)->type) {  \
 53             case EDGE: (p) = ((Edgel *)(dd)->to)->pos; break;  \
 54             case VEC2: (p) = *((Vec2 *)(dd)->to); break;  \
 55             default: p=vec2_zero(); break; }  \
 56         }
 57 
 58 #define GET_POS2(ptr, type, p) { Vec2 vec2_zero();\
 59             switch (type) {  \
 60             case EDGE: (p) = ((Edgel *)(ptr))->pos; break;  \
 61             case VEC2: (p) = *((Vec2 *)(ptr)); break;  \
 62             default: p=vec2_zero(); break; }  \
 63         }
 64 
 65 #define DD_SET_POS2(dd, p) { \
 66             switch ((dd)->type) {  \
 67             case EDGE: ((Edgel *)(dd)->to)->pos = (p); break;  \
 68             case VEC2: *((Vec2 *)(dd)->to) = (p); break;  \
 69             default: break; }  \
 70         }
 71 
 72 #define DD_EDGE(dd) ((Edgel *)(dd)->to)
 73 
 74 #define DD_EDGE_POS(dd) (((Edgel *)(dd)->to)->pos)
 75 
 76 /** basic projection macros **/
 77 #define vec3_of_vec2(v) vec3(vec2_x(v), vec2_y(v), 0.0)
 78 #define vec2_of_vec3(v) vec2(vec3_x(v), vec3_y(v))
 79 #define proj3_of_vec2(v) vec3(vec2_x(v), vec2_y(v), 1.0)
 80 #define proj2_of_vec3(v) vec2(vec3_x(v)/vec3_z(v), vec3_y(v)/vec3_z(v))
 81 
 82 
 83 /* The stuff from the tina_types.h header: should eventually go into sys */
 84 
 85 
 86 /* 
 87 * tina types range from 300 to 999 
 88 * they are used to identify tina objects 
 89 * and specify sub types
 90 */
 91 
 92 /* data types and specifiers 300-349 */ 
 93 #define EDGE             300
 94 #define CORNER           302
 95 #define SCALAR           303
 96 #define POINT2           304
 97 #define POINT3           305
 98 #define LINE2            306
 99 #define LINE3            307
100 #define PLANE            308
101 #define TRANSF3          309
102 #define CONIC2           310
103 #define CONIC3           311
104 #define CURVE2           312
105 #define CURVE3           313
106 #define SPLINE           314
107 #define TRIANGLE2        315
108 #define TRIANGLE3        316
109 #define STATS            317
110 #define CONE             318
111 #define GRAPHIC          319
112 
113 #define GEOMETRY_2       320
114 #define GEOMETRY_3       321
115 #define STRAIGHT         322
116 /* #define LOOP             323  moved */
117 #define RECTPOS          324
118 #define IMPOS            325 
119 #define TOPOLOGY         326
120 #define CURVE            327
121 #define CORRPOS          328
122 
123 #define ELLIPSE          330
124 #define HYPERBOLA        331
125 #define DEGENERATE       332
126 #define CIRCLE           333
127 
128 #define LINE_NO_FIT      340
129 #define LINE_REG_FIT     341
130 #define TWODIM           342
131 #define THREEDIM         343
132 #define LEFT             344
133 #define RIGHT            345
134 #define FORWARD          346
135 #define BACKWARD         347
136 
137 /* match and types of match 350-379*/
138 
139 #define MATCH            350
140 #define MLIST            351
141 
142 #define REJECT_MATCH     360
143 #define BAD_MATCH        361
144 #define POT_MATCH        362
145 #define GOOD_MATCH       363
146 #define FIXED_MATCH      364
147 
148 #define MATCH_SUPPORT    370
149 #define DISPARITY        371
150 
151 /* model matching */
152 
153 #define ISO_ERROR        380
154 #define PWR              381
155 #define PWRTE            382
156 #define MATCH_CLICHE     383
157 
158 /* hough transform */
159 #define HOUGH_PEAK_TYPE 385
160 #define HOUGH1_PEAK 386
161 #define HOUGH2_PEAK 387
162 #define HOUGH1_ROI_TYPE 388
163 #define HOUGH2_ROI_TYPE 389
164 
165 /* dynamic programming */
166 
167 #define DP_INDICES       390
168 #define DP_INDEX         391
169 
170 /* edgerect properties */
171 
172 #define EDGERECT         400
173 #define ER_TERMINS       401
174 #define ER_JUNCTIONS     402
175 #define ER_ROWS          403
176 #define ER_STRINGS       404
177 #define ER_SINDEX        405
178 #define ER_MLIST         406
179 #define ES_MLIST         407
180 #define ER_FINDEX        408
181 #define ER_TINDEX        409 
182 
183 /* camera types */
184 
185 #define CAMERA_PHYSICAL  420
186 #define CAMERA_PARALLEL  421
187 
188 /* others */
189 
190 #define SINDEX           430
191 #define FROM_FILE        431
192 #define PATCH            432
193 #define BACKTEMP         433
194 #define FORTEMP          434
195 
196 
197 /* special properties */
198 
199 #define REMOVE_ME        900
200 #define IGNORE_ME        901
201 
202 
203 #endif /* TINA_GEOM_DEF_HDR */
204 
205 

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