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

Linux Cross Reference
Tina5/tina-libs/tina/geometry/geom_SplineDef.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_SplineDef.h,v $
 23  * Date    :  $Date: 2002/12/09 11:51:23 $
 24  * Version :  $Revision: 1.1.1.1 $
 25  * CVS Id  :  $Id: geom_SplineDef.h,v 1.1.1.1 2002/12/09 11:51:23 cvstina Exp $
 26  *
 27  * Notes :  1D uniform cubic B-spline 
 28  *
 29  *********
 30 */
 31 
 32 #ifndef TINA_GEOM_SPLINE_DEF_HDR
 33 #define TINA_GEOM_SPLINE_DEF_HDR
 34 
 35 #include <tina/sys/sysDef.h>
 36 
 37 typedef struct ucbs
 38 {
 39     Ts_id ts_id;                /* Tina structure identifier */
 40     int type;                   /** LOOP or STRING **/
 41 
 42     /** controls **/
 43     int n;                      /** number of intervals **/
 44     double *cx;                 /** control values      **/
 45 
 46     /** extra props **/
 47     List *props; 
 48 } Ucbs;
 49 #define UCBS_SWAP_STRING "ii.p"
 50 
 51 /**
 52 2D uniform cubic B-spline
 53 **/
 54 
 55 typedef struct ucbs2
 56 {
 57     Ts_id ts_id;                /* Tina structure identifier */
 58     int type;                   /** LOOP or STRING **/
 59 
 60     /** controls **/
 61     int n;                      /** number of intervals **/
 62     double *cx, *cy;            /** control points **/
 63 
 64     /** extra props **/
 65     List *props; 
 66 } Ucbs2;
 67 #define UCBS2_SWAP_STRING "ii..p"
 68 
 69 /**
 70 3D uniform cubic B-spline
 71 **/
 72 
 73 typedef struct ucbs3
 74 {
 75     Ts_id ts_id;                /* Tina structure identifier */
 76     int type;                   /** LOOP or STRING **/
 77 
 78     /** controls **/
 79     int n;                      /** number of intervals **/
 80     double *cx, *cy, *cz;       /** control points      **/
 81 
 82     /** extra props **/
 83     List *props; 
 84 } Ucbs3;
 85 #define UCBS3_SWAP_STRING "ii...p"
 86 
 87 /**
 88 2D interpolating cubic spline (goes through the knot points)
 89 **/
 90 
 91 typedef struct ics2
 92 {
 93     Ts_id ts_id;                /* Tina structure identifier */
 94     int type;                   /** LOOP or STRING **/
 95 
 96     /** controls **/
 97     int n;                      /** number of knots **/
 98     double *t;                  /** parametric coefficients **/
 99     double *x,  *y;             /** knot points **/
100     double *x2, *y2;            /** 2nd diffs **/
101 
102     /** extra props **/
103     List *props;
104 } Ics2;
105 #define ICS2_SWAP_STRING "ii.....p"
106 
107 /**
108 2D Kass-Witken snake
109 **/
110 
111 typedef struct kwsnake
112 {
113     Ts_id ts_id;                /* Tina structure identifier */
114     int type;                   /** LOOP or STRING   **/
115     int n;                      /** number of points **/
116     double *x, *y;              /** sample points    **/
117 } Kwsnake;
118 #define KWSNAKE_SWAP_STRING "ii.."
119 
120 #define KW_STEP     1
121 #define KW_MAXSTEP  2
122 #define KW_FULLSTEP 3
123 
124 #endif  /* TINA_GEOM_SPLINE_DEF_HDR */
125 
126 

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