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

Linux Cross Reference
Tina5/tina-libs/tina/geometry/geom_EdgeDef.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 Lesser 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 Lesser General Public License for more details.
 14  *
 15  * You should have received a copy of the GNU Lesser 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  **********
 20  * 
 21  * Program :    TINA
 22  * File    :  $Source: /home/tina/cvs/tina-libs/tina/geometry/geom_EdgeDef.h,v $
 23  * Date    :  $Date: 2002/12/09 11:51:23 $
 24  * Version :  $Revision: 1.1.1.1 $
 25  * CVS Id  :  $Id: geom_EdgeDef.h,v 1.1.1.1 2002/12/09 11:51:23 cvstina Exp $
 26  *
 27  * Notes : structure definition of the edge primitive
 28  *         and macros for edge type handling
 29  *
 30  *********
 31 */
 32 
 33 #ifndef TINA_GEOM_EDGE_DEF_HDR
 34 #define TINA_GEOM_EDGE_DEF_HDR
 35 
 36 #include <tina/sys/sysDef.h>
 37 #include <tina/math/mathDef.h>
 38 
 39 typedef struct edgel
 40 {
 41     Ts_id ts_id;                /* Tina structure identifier */
 42     unsigned int type; /* includes information as to rectification status */
 43     unsigned int label;
 44     struct vec2 pos;
 45     float orient; /* these could go to props list perhaps NAT */
 46     float contrast;
 47     struct list *props;
 48 } Edgel;
 49 #define EDGEL_SWAP_STRING "uutffp"
 50 
 51 typedef struct edge_conn
 52 {
 53     Ts_id ts_id;                /* Tina structure identifier */
 54     unsigned short count;
 55     struct edgel *c1;
 56     struct edgel *c2;
 57     struct list *conns;
 58 } Edge_conn;
 59 #define EDGE_CONN_SWAP_STRING "kppp"
 60 
 61 typedef struct prop_def         /* this wants moving up */
 62 {
 63     Ts_id ts_id;                /* Tina structure identifier */
 64     int     type;
 65     void   *prop;
 66     void    (*free_func) ();
 67     Bool    dofree;
 68 }       Prop_def;
 69 
 70 /* ARGSUSED quieten lint *//* edge masks */
 71 
 72 #define EDGE_GET_CORR_MASK  0x00F00000
 73 #define EDGE_GET_MATCH_MASK 0x000F0000
 74 #define EDGE_GET_LOOP_MASK  0x0000F000
 75 #define EDGE_GET_RECT_MASK  0x00000F00
 76 #define EDGE_GET_CONN_MASK  0x000000F0
 77 #define EDGE_GET_TYPE_MASK  0x0000000F
 78 
 79 #define EDGE_SET_CORR_MASK  0xFF0FFFFF
 80 #define EDGE_SET_MATCH_MASK 0xFFF0FFFF
 81 #define EDGE_SET_LOOP_MASK  0xFFFF0FFF
 82 #define EDGE_SET_RECT_MASK  0xFFFFF0FF
 83 #define EDGE_SET_CONN_MASK  0xFFFFFF0F
 84 #define EDGE_SET_TYPE_MASK  0xFFFFFFF0
 85 
 86 /* edge types */
 87 
 88 #define EDGE_RAW           0x00000000
 89 
 90 #define EDGE_UNKNOWN       0x00000000
 91 #define EDGE_CANNY         0x00000001
 92 #define EDGE_SOBEL         0x00000002
 93 
 94 #define EDGE_NOLINK        0x00000000
 95 #define EDGE_TERMIN        0x00000010
 96 #define EDGE_CONN          0x00000020
 97 #define EDGE_JUNC          0x00000030
 98 #define EDGE_ISOLATED      0x00000040
 99 
100 #define EDGE_NOT_RECTIFIED 0x00000000
101 #define EDGE_RECTIFIED     0x00000100
102 #define EDGE_CORRECTED     0x00100000
103 #define EDGE_NOT_CORRECTED 0x00000000
104 
105 #define EDGE_NOT_LOOP      0x00001000
106 #define EDGE_LOOP          0x00002000
107 
108 #define EDGE_NOT_MATCHED   0x00000000
109 #define EDGE_MATCHED       0x00010000
110 
111 #endif  /* TINA_GEOM_EDGE_DEF_HDR */
112 

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