stage.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <errno.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <assert.h>
#include <unistd.h>
#include <math.h>
#include <glib.h>
#include <locale.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "replace.h"
#include "stage_internal.h"


Functions

guchar * pb_get_pixel (GdkPixbuf *pb, int x, int y)
gboolean pb_pixel_is_set (GdkPixbuf *pb, int x, int y, int threshold)
void pb_set_pixel (GdkPixbuf *pb, int x, int y, uint8_t val)
void pb_set_rect (GdkPixbuf *pb, int x, int y, int width, int height, uint8_t val)
int stg_init (int argc, char **argv)
void stg_lines_normalize (stg_line_t *lines, int num)
void stg_lines_scale (stg_line_t *lines, int num, double xscale, double yscale)
void stg_lines_translate (stg_line_t *lines, int num, double xtrans, double ytrans)
stg_color_t stg_lookup_color (const char *name)
stg_point_tstg_points_create (size_t count)
void stg_points_destroy (stg_point_t *pts)
void stg_polygon_append_points (stg_polygon_t *poly, stg_point_t *pts, size_t count)
void stg_polygon_print (stg_polygon_t *poly)
void stg_polygon_set_points (stg_polygon_t *poly, stg_point_t *pts, size_t count)
stg_polygon_tstg_polygons_create (int count)
void stg_polygons_destroy (stg_polygon_t *p, size_t count)
stg_polygon_tstg_polygons_from_image_file (const char *filename, size_t *count)
stg_polygon_tstg_polygons_from_rotrects (stg_rotrect_t *rects, size_t count, double width, double height)
void stg_polygons_normalize (stg_polygon_t *polys, int num, double width, double height)
void stg_polygons_print (stg_polygon_t *polys, unsigned int count)
stg_polyline_tstg_polylines_from_image_file (const char *filename, size_t *num)
void stg_pose_sum (stg_pose_t *result, stg_pose_t *p1, stg_pose_t *p2)
void stg_print_err (const char *err)
void stg_print_geom (stg_geom_t *geom)
void stg_print_pose (stg_pose_t *pose)
void stg_print_velocity (stg_velocity_t *vel)
void stg_quit_cancel (void)
void stg_quit_request (void)
int stg_quit_test (void)
int stg_rotrects_from_image_file (const char *filename, stg_rotrect_t **rects, int *rect_count, int *widthp, int *heightp)
void stg_rotrects_normalize (stg_rotrect_t *rects, int num)
stg_line_tstg_rotrects_to_lines (stg_rotrect_t *rects, int num_rects)
stg_msec_t stg_timenow (void)
stg_polygon_tstg_unit_polygon_create (void)
const char * stg_version_string (void)

Variables

int _stg_disable_gui = FALSE
int _stg_quit = FALSE

Function Documentation

guchar* pb_get_pixel GdkPixbuf *  pb,
int  x,
int  y
 

gboolean pb_pixel_is_set GdkPixbuf *  pb,
int  x,
int  y,
int  threshold
 

void pb_set_pixel GdkPixbuf *  pb,
int  x,
int  y,
uint8_t  val
 

void pb_set_rect GdkPixbuf *  pb,
int  x,
int  y,
int  width,
int  height,
uint8_t  val
 

void stg_lines_normalize stg_line_t lines,
int  num
 

void stg_lines_scale stg_line_t lines,
int  num,
double  xscale,
double  yscale
 

void stg_lines_translate stg_line_t lines,
int  num,
double  xtrans,
double  ytrans
 

stg_polyline_t* stg_polylines_from_image_file const char *  filename,
size_t *  num
 

void stg_quit_cancel void   ) 
 

stg_line_t* stg_rotrects_to_lines stg_rotrect_t rects,
int  num_rects
 


Variable Documentation

int _stg_disable_gui = FALSE
 

int _stg_quit = FALSE
 


Generated on Thu Dec 13 14:35:18 2007 for Stage by  doxygen 1.4.6