home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / TARFILE.GZ / tarfile / ch_4.4 / xfm / xfm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-11  |  1.1 KB  |  33 lines

  1. /* 
  2.  * xfm.h
  3.  * 
  4.  * Practical Algorithms for Image Analysis
  5.  * 
  6.  * Copyright (c) 1997, 1998, 1999 MLMSoftwareGroup, LLC
  7.  */
  8.  
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <math.h>
  12. #include "fm.h"
  13. #include "ip.h"
  14.  
  15. /* function prototypes */
  16.  
  17. /* xfm.c */
  18. extern void fail_alloc (char *str, int code);
  19. void usage (char *progname);
  20. extern void main (int argc, char **argv);
  21. /* moments.c */
  22. extern void ap_eval_mom (float *y[], float *m[], long mdim);
  23. extern void eval_mom (float *y[], float *m[], int mdim);
  24. extern void central_moments (float *m[], float *mu00, float *mu11,
  25.                              float *mu02, float *mu20, float *xc, float *yc,
  26.                              float *r_gyr, float *dent);
  27. extern void filter_recursion (int left_x, int right_x, int nr, int nc,
  28.                               float *y[], int xdim, int ydim, Image * imgIn);
  29. /* mom_io.c */
  30. extern void write_mdt_file (FILE * fpOut, float *m[], int mdim,
  31.              double m00, double mu00, double mu11, double mu02, double mu20,
  32.                             double xc, double yc, double rg, double dent);
  33.