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

Linux Cross Reference
Tina4/src/tools/infr/mono.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_mono = NULL;
 14 static Imrect *er_mono = NULL;
 15 static Imrect *cnr_mono = NULL;
 16 static Camera *cam_mono = NULL;
 17 static List *geom_mono = NULL;
 18 static Tv *tv_mono = NULL;
 19 
 20 Tv     *mono_tv(void)
 21 {
 22     return (tv_mono);
 23 }
 24 
 25 Tv     *mono_tv_get(void)
 26 {
 27     return (tv_mono);
 28 }
 29 
 30 void    mono_tv_set(Tv * tv)
 31 {
 32     tv_mono = tv;
 33 }
 34 
 35 Imrect *mono_image_get(void)
 36 {
 37     return (im_mono);
 38 }
 39 
 40 Imrect *mono_image(void)
 41 {
 42     return (im_mono);
 43 }
 44 
 45 void    mono_image_set(Imrect * im)
 46 {
 47     im_free(im_mono);
 48     im_mono = im;
 49 }
 50 
 51 Imrect *mono_edges_get(void)
 52 {
 53     return (er_mono);
 54 }
 55 
 56 Imrect *mono_edges(void)
 57 {
 58     return (er_mono);
 59 }
 60 
 61 void    mono_edges_set(Imrect * er)
 62 {
 63     er_free(er_mono);
 64     er_mono = er;
 65 }
 66 
 67 void    mono_edges_null(void)
 68 {
 69     er_mono = NULL;
 70 }
 71 
 72 List   *mono_geom(void)
 73 {
 74     return (geom_mono);
 75 }
 76 
 77 List   *mono_geom_get(void)
 78 {
 79     return (geom_mono);
 80 }
 81 
 82 void    mono_geom_set(List * geom)
 83 {
 84     (void) reclist_list_free(geom_mono, geom_free, (int)NULL, NULL);
 85     geom_mono = geom;
 86 }
 87 
 88 void    mono_geom_null(void)
 89 {
 90     geom_mono = NULL;
 91 }
 92 
 93 Camera *mono_camera_get(void)
 94 {
 95     return (cam_mono);
 96 }
 97 
 98 Camera *mono_camera(void)
 99 {
100     return (cam_mono);
101 }
102 
103 void    mono_camera_set(Camera * cam)
104 {
105     cam_free(cam_mono);
106     cam_mono = cam;
107 
108     if (im_mono != NULL)
109         (void) cam_scale_to_image(cam_mono, im_mono);
110 }
111 
112 Imrect *mono_corners_get(void)
113 {
114     return (cnr_mono);
115 }
116 
117 void    mono_corners_set(Imrect * cnr)
118 {
119     er_free(cnr_mono);
120     cnr_mono = cnr;
121 }
122 
123 void mono_corners_null()
124 {
125    cnr_mono = NULL;
126 }
127 

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