Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Rotated Rectangles
[Utilities]


Data Structures

struct  stg_rotrect_t

Functions

void stg_normalize_rects (stg_rotrect_t *rects, int num)
int stg_load_image (const char *filename, stg_rotrect_t **rects, int *rect_count, int *widthp, int *heightp)

Function Documentation

void stg_normalize_rects stg_rotrect_t rects,
int  num
 

normalizes the set [rects] of [num] rectangles, so that they fit exactly in a unit square.

int stg_load_image const char *  filename,
stg_rotrect_t **  rects,
int *  rect_count,
int *  widthp,
int *  heightp
 

load the image file [filename] and convert it to an array of rectangles, filling in the number of rects, width and height. Caller must free the rectangle array.


Generated on Thu Aug 4 13:08:48 2005 for Stage by  doxygen 1.4.3-20050530