home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / graphics / 13629 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.4 KB

  1. Xref: sparky comp.graphics:13629 comp.compression:4547 alt.comp.compression:47
  2. Newsgroups: comp.graphics,comp.compression,alt.comp.compression
  3. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!alanf
  4. From: alanf@cs.monash.edu.au (Alan Grant Finlay)
  5. Subject: Re: CCITT Group3&4
  6. Message-ID: <alanf.726730388@bruce.cs.monash.edu.au>
  7. Keywords: Image Processing
  8. Sender: news@bruce.cs.monash.edu.au (USENET News System)
  9. Organization: Computer Science, Monash University, Australia
  10. References: <48320@ogicse.ogi.edu>
  11. Date: Mon, 11 Jan 1993 05:33:08 GMT
  12. Lines: 38
  13.  
  14. bartb@ogicse.cse.ogi.edu (Bart Butell) writes:
  15.  
  16. >I am looking for public domain software for reading and writing
  17. >CCITT Group 3 and 4 images.  Does any know where I can find such software.
  18.  
  19. >BarT
  20.  
  21. I have seen a number of requests of this sort so we have decided to make
  22. our conversion routines available via anonymous ftp.  They use Sam's public
  23. domain tifflib from SGI and our own private image processing library.  The hard
  24. stuff is all done by Sam, these files are provided to show to read and write
  25. a CCITT group3/4 tiff format.  The calls to our private image processing
  26. library should all be quite simple to understand and replaced by your own
  27. library calls.  They are:
  28.  
  29. i_error(status,message)        reports error message to stderr and aborts
  30.                 if status I_FATAL.
  31. i_malloc            macro to call malloc, defined below.
  32. uchar i_getuchar(image,row,col)    return pixel value at row and column for image.
  33. i_putuchar(dest,row,col,pix)    set pixel value at row and column for image.
  34. IMAGE *i_mktemp(nrows,ncols,8)    make a temporary image of given dimensions and
  35.                 8 bits per pixel.
  36. i_dump(image, name, fmt)    dump image as file <name> with format <fmt>.
  37.  
  38. The IMAGE data structure contains the following fields (amongst others):
  39.         long    rows;           /* number of scan lines */
  40.         long    cols;           /* pixels per scan line */
  41.         uchar   **rowbuf;       /* pointer->array of pointers->row buffers */
  42.         long    bitsperpixel;   /* pixel size */
  43.  
  44. #define i_malloc(var,TYPE,n) (var=(TYPE*)malloc((n)*sizeof(TYPE)),(var)==NULL ? i_error(I_FATAL,"out of heap"),(var) : (var))
  45.  
  46. The files are available by anonymous ftp from internet: merry.cs.monash.edu.au
  47. [130.194.67.101] in directory pub/alanf/TIFF_FAX.
  48.  
  49. ,-------Alan Finlay, email: alanf@bruce.cs.monash.edu.au, phone: (03)565-5225.
  50. |    Victorian Centre for Image Processing and Graphics,
  51. |    Monash University, CLAYTON 3168, Australia.
  52.