home *** CD-ROM | disk | FTP | other *** search
- /*
- * spp.h
- *
- * Practical Algorithms for Image Analysis
- *
- * Copyright (c) 1997, 1998, 1999 MLMSoftwareGroup, LLC
- */
-
- /*
- * SPP.H
- *
- * header file for spp.c
- *
- */
- #include "ip.h"
-
- #define ZERO 0
- #define SQ2 1.414213562
-
-
- #define OFFSETOF(s,m) ((size_t)&((s *)0)->m) /* see Harbison & Steele */
-
- typedef struct Pix {
- int x, y;
- } Pix;
-
-
- /* function prototypes */
- /* spp.c */
- extern int compare (void const *t1, void const *t2);
- extern void fail_alloc (char *str, int code);
- extern void usage (char *);
- extern void main (int argc, char **argv);
- /* scan_img.c */
- extern int x_pp (struct Pix *Cxy, long *n,
- int left_x, int imin, int right_x, int imax);
- /* vor_io.c */
- extern void write_vin_file (FILE * file, int n,
- int xmin, int ymin, int xmax, int ymax, struct Pix *Cxy);
-