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

Linux Cross Reference
Tina4/src/vision/spline/spline.h

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

  1 /*
  2 *
  3 * spline.h
  4 *
  5 */
  6 
  7 #ifndef SPLINE_HEADS_DEFINED
  8 #define SPLINE_HEADS_DEFINED
  9 
 10 /**
 11 1D uniform cubic B-spline
 12 **/
 13 
 14 typedef struct ucbs
 15 {
 16     Ts_id ts_id;                /* Tina structure identifier */
 17     int type;                   /** LOOP or STRING **/
 18 
 19     /** controls **/
 20     int n;                      /** number of intervals **/
 21     double *cx;                 /** control values      **/
 22 
 23     /** extra props **/
 24     List *props; 
 25 } Ucbs;
 26 #define UCBS_SWAP_STRING "ii.p"
 27 
 28 /**
 29 2D uniform cubic B-spline
 30 **/
 31 
 32 typedef struct ucbs2
 33 {
 34     Ts_id ts_id;                /* Tina structure identifier */
 35     int type;                   /** LOOP or STRING **/
 36 
 37     /** controls **/
 38     int n;                      /** number of intervals **/
 39     double *cx, *cy;            /** control points **/
 40 
 41     /** extra props **/
 42     List *props; 
 43 } Ucbs2;
 44 #define UCBS2_SWAP_STRING "ii..p"
 45 
 46 /**
 47 3D uniform cubic B-spline
 48 **/
 49 
 50 typedef struct ucbs3
 51 {
 52     Ts_id ts_id;                /* Tina structure identifier */
 53     int type;                   /** LOOP or STRING **/
 54 
 55     /** controls **/
 56     int n;                      /** number of intervals **/
 57     double *cx, *cy, *cz;       /** control points      **/
 58 
 59     /** extra props **/
 60     List *props; 
 61 } Ucbs3;
 62 #define UCBS3_SWAP_STRING "ii...p"
 63 
 64 /**
 65 2D interpolating cubic spline (goes through the knot points)
 66 **/
 67 
 68 typedef struct ics2
 69 {
 70     Ts_id ts_id;                /* Tina structure identifier */
 71     int type;                   /** LOOP or STRING **/
 72 
 73     /** controls **/
 74     int n;                      /** number of knots **/
 75     double *t;                  /** parametric coefficients **/
 76     double *x,  *y;             /** knot points **/
 77     double *x2, *y2;            /** 2nd diffs **/
 78 
 79     /** extra props **/
 80     List *props;
 81 } Ics2;
 82 #define ICS2_SWAP_STRING "ii.....p"
 83 
 84 /**
 85 2D Kass-Witken snake
 86 **/
 87 
 88 typedef struct kwsnake
 89 {
 90     Ts_id ts_id;                /* Tina structure identifier */
 91     int type;                   /** LOOP or STRING   **/
 92     int n;                      /** number of points **/
 93     double *x, *y;              /** sample points    **/
 94 } Kwsnake;
 95 #define KWSNAKE_SWAP_STRING "ii.."
 96 
 97 #define KW_STEP     1
 98 #define KW_MAXSTEP  2
 99 #define KW_FULLSTEP 3
100 
101 #endif 
102 

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