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) |
|
normalizes the set [rects] of [num] rectangles, so that they fit exactly in a unit square. |
|
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. |