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