home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / hips / sources / getobj3d / getobj.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-17  |  2.6 KB  |  80 lines

  1.  
  2. /* getobj.h    file for getobj3d        Brian Tierney, LBL   */
  3.  
  4. #include <stdio.h>
  5. #include <sys/types.h>
  6. #include <math.h>
  7. #include <hipl_format.h>
  8.  
  9. #define Calloc(x,y) (y *)calloc((unsigned)(x), sizeof(y))
  10.  
  11. char     *Progname;
  12.  
  13. u_char ***image;
  14. u_short ***sht_image;
  15. u_int  ***int_image;
  16. u_char ***grid;
  17.  
  18. int       nrow, ncol, nframe;    /* number of rows, columns in the image */
  19. int       pix_format, nvoxels;
  20.  
  21. /* for statistics */
  22. long      pcnt;            /* count of number of pixels selected by
  23.                  * object_fill  */
  24. double    pix_total;        /* sum of pixel values in an object */
  25.  
  26. /* global command line args */
  27. int       stats;        /* flag to indicate if should display
  28.                  * statistics on each object */
  29. int       tval, bg, verbose, find_all, bridges, output_binary_mask, min_size;
  30. int       isx, isy, isz;    /* input seed point */
  31. int       val_file;        /* value file flag */
  32. char     *valfile;        /* name of file of seed values */
  33.  
  34. /* file descriptors */
  35. FILE     *vf, *df;
  36.  
  37. /* used in stack to simulate recursion */
  38. typedef struct s_item {
  39.     short     i, j, k;
  40. }         STACK_ITEM;
  41. STACK_ITEM *stack;
  42.  
  43. int       sp;            /* global stack pointer */
  44. int       stack_size;
  45.  
  46.  
  47. /***********************************************************************/
  48. /*  COPYRIGHT NOTICE         *******************************************/
  49. /***********************************************************************/
  50.  
  51. /*   This program is copyright (C) 1990, Regents  of  the
  52. University  of  California.   Anyone may reproduce this software,
  53. in whole or in part, provided that:
  54. (1)  Any copy  or  redistribution  must  show  the
  55.      Regents  of  the  University of California, through its
  56.      Lawrence Berkeley Laboratory, as the source,  and  must
  57.      include this notice;
  58. (2)  Any use of this software must reference this  distribu-
  59.      tion,  state that the software copyright is held by the
  60.      Regents of the University of California, and  that  the
  61.      software is used by their permission.
  62.  
  63.      It is acknowledged that the U.S. Government has  rights
  64. to this software under  Contract DE-AC03-765F00098 between the U.S.
  65. Department of Energy and the University of California.
  66.  
  67.      This software is provided as a professional  academic
  68. contribution for  joint exchange.  Thus it is experimental, is
  69. provided ``as is'', with no warranties of any kind  whatsoever,
  70. no  support,  promise  of updates, or printed documentation.
  71. Bug reports or fixes may be sent to the author, who may or may
  72. not act on them as he desires.
  73. */
  74.  
  75. /*   Author:  Brian L. Tierney
  76.  *            Lawrence Berkeley Laboratory
  77.  *            Imaging and Distributed Computing Group
  78.  *            email: bltierney@lbl.gov
  79. */
  80.