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

Linux Cross Reference
Tina4/src/tools/infr/right.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_right = NULL;
 14 static Imrect *er_right = NULL;
 15 static Imrect *cnr_right = NULL;
 16 static Camera *cam_right = NULL;
 17 static List *geom_right = NULL;
 18 static Tv *tv_right = NULL;
 19 
 20 Tv     *right_tv(void)
 21 {
 22     return (tv_right);
 23 }
 24 
 25 Tv     *right_tv_get(void)
 26 {
 27     return (tv_right);
 28 }
 29 
 30 void    right_tv_set(Tv * tv)
 31 {
 32     tv_right = tv;
 33 }
 34 
 35 List   *right_geom_get(void)
 36 {
 37     return (geom_right);
 38 }
 39 
 40 List   *right_geom(void)
 41 {
 42     return (geom_right);
 43 }
 44 
 45 void    right_geom_set(List * geom)
 46 {
 47     (void) reclist_list_free(geom_right, geom_free, (int)NULL, NULL);
 48     geom_right = geom;
 49 }
 50 
 51 void    right_geom_null(void)
 52 {
 53     geom_right = NULL;
 54 }
 55 
 56 Camera *right_camera(void)
 57 {
 58     return (cam_right);
 59 }
 60 
 61 void    right_camera_set(Camera * cam)
 62 {
 63     cam_free(cam_right);
 64     cam_right = cam;
 65 
 66     if (im_right != NULL)
 67         (void) cam_scale_to_image(cam_right, im_right);
 68 }
 69 
 70 Imrect *right_image_get(void)
 71 {
 72     return (im_right);
 73 }
 74 
 75 Imrect *right_image(void)
 76 {
 77     return (im_right);
 78 }
 79 
 80 void    right_image_set(Imrect * im)
 81 {
 82     im_free(im_right);
 83     im_right = im;
 84 
 85     if (cam_right != NULL)
 86         (void) cam_scale_to_image(cam_right, im_right);
 87 }
 88 
 89 Imrect *right_edges(void)
 90 {
 91     return (er_right);
 92 }
 93 
 94 Imrect *right_edges_get(void)
 95 {
 96     return (er_right);
 97 }
 98 
 99 void    right_edges_set(Imrect * er)
100 {
101     er_free(er_right);
102     er_right = er;
103 }
104 
105 void    right_edges_null(void)
106 {
107     er_right = NULL;
108 }
109 
110 Imrect *right_corners_get(void)
111 {
112     return (cnr_right);
113 }
114 
115 void    right_corners_set(Imrect * cnr)
116 {
117     er_free(cnr_right);
118     cnr_right = cnr;
119 }
120 
121 void    right_corners_null(void)
122 {
123     cnr_right = 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.