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

Linux Cross Reference
Tina4/src/tools/infr/left.c

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

  1 /**@(#)
  2 **/
  3 #include <stdio.h>
  4 #include <math.h>
  5 #include <tina/sys.h>
  6 #include <tina/sysfuncs.h>
  7 #include <tina/math.h>
  8 #include <tina/vision.h>
  9 #include <tina/visionfuncs.h>
 10 #include <tina/file.h>
 11 #include <tina/tv.h>
 12 
 13 static Imrect *im_left = NULL;
 14 static Imrect *er_left = NULL;
 15 static Imrect *cnr_left = NULL;
 16 static Camera *cam_left = NULL;
 17 static List *geom_left = NULL;
 18 static Tv *tv_left = NULL;
 19 
 20 Tv     *left_tv(void)
 21 {
 22     return (tv_left);
 23 }
 24 
 25 Tv     *left_tv_get(void)
 26 {
 27     return (tv_left);
 28 }
 29 
 30 void    left_tv_set(Tv * tv)
 31 {
 32     tv_left = tv;
 33 }
 34 
 35 List   *left_geom(void)
 36 {
 37     return (geom_left);
 38 }
 39 
 40 List   *left_geom_get(void)
 41 {
 42     return (geom_left);
 43 }
 44 
 45 void    left_geom_set(List * geom)
 46 {
 47     (void) reclist_list_free(geom_left, geom_free, (int)NULL, NULL);
 48     geom_left = geom;
 49 }
 50 
 51 void    left_geom_null(void)
 52 {
 53     geom_left = NULL;
 54 }
 55 
 56 Camera *left_camera(void)
 57 {
 58     return (cam_left);
 59 }
 60 
 61 void    left_camera_set(Camera * cam)
 62 {
 63     cam_free(cam_left);
 64     cam_left = cam;
 65 
 66     if (im_left != NULL)
 67         (void) cam_scale_to_image(cam_left, im_left);
 68 }
 69 
 70 Imrect *left_image(void)
 71 {
 72     return (im_left);
 73 }
 74 
 75 Imrect *left_image_get(void)
 76 {
 77     return (im_left);
 78 }
 79 
 80 void    left_image_set(Imrect * im)
 81 {
 82     im_free(im_left);
 83     im_left = im;
 84 
 85     if (cam_left != NULL)
 86         (void) cam_scale_to_image(cam_left, im_left);
 87 }
 88 
 89 Imrect *left_edges_get(void)
 90 {
 91     return (er_left);
 92 }
 93 
 94 Imrect *left_edges(void)
 95 {
 96     return (er_left);
 97 }
 98 
 99 void    left_edges_set(Imrect * er)
100 {
101     er_free(er_left);
102     er_left = er;
103 }
104 
105 void    left_edges_null(void)
106 {
107     er_left = NULL;
108 }
109 
110 Imrect *left_corners_get(void)
111 {
112     return (cnr_left);
113 }
114 
115 void    left_corners_set(Imrect * cnr)
116 {
117     er_free(cnr_left);
118     cnr_left = cnr;
119 }
120 
121 void    left_corners_null(void)
122 {
123     cnr_left = NULL;
124 }
125 

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