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

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

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