From regie@ireq-robot.hydro.qc.ca Mon May 9 22:50:14 1994 X-VM-Message-Order: (1 3 4 5 2 6 7 8) X-VM-Summary-Format: "%n %*%a %-17.17F %-3.3m %2d %4l/%-5c %I\"%s\"\n" X-VM-Labels: nil X-VM-VHeader: ("Resent-" "From:" "Sender:" "To:" "Apparently-To:" "Cc:" "Subject:" "Date:") nil X-VM-Bookmark: 8 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["6235" "Mon" " 9" "May" "1994" "20:23:40" "GMT" "Regis Houde" "regie@ireq-robot.hydro.qc.ca" "" "157" "Re: rasterfile format" "^From:" nil nil "5" "1994050920:23:40" "rasterfile format" (number " " mark " Regis Houde May 9 157/6235 " thread-indent "\"Re: rasterfile format\"\n") ""] nil) Newsgroups: sci.image.processing Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!concert!gatech!europa.eng.gtefsd.com!MathWorks.Com!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!utcsri!newsflash.concordia.ca!CC.UMontreal.CA!IRO.UMontreal.CA!clouso.crim.ca!hobbit.ireq.hydro.qc.ca!seguin!regie Message-ID: Reply-To: regie@ireq-robot.hydro.qc.ca Organization: IREQ - Hydro-Quebec References: Lines: 157 From: regie@ireq-robot.hydro.qc.ca (Regis Houde) Sender: news@ireq.hydro.qc.ca (Netnews Admin) Subject: Re: rasterfile format Date: Mon, 9 May 1994 20:23:40 GMT In article 5p2@watserv2.uwaterloo.ca, majid@bcr3.uwaterloo.ca (Majid Barazande-Pour) writes: > >Hi, > >Does any one know how an image is saved in sun rasterfile format? What is the range >of pixel value in pixel image part, 0 to +255 or -125 to +125? > >Please reply to: majid@bbcr.uwaterloo.ca > >Thanks, > Sun raster image or rasterfile is an image format invented by Sun Microsystems. It supports images with different depth (1, 8 and 24 as I know) and and be compressed or not. When it's compressed, it uses the runlength encoding technique. I include the file "rasterfile.h" at the end of this mail so you can now more about the file format. I also include the man page that explains this format. Hope it helps -------------------------------------------------------------------- Regis Houde regie@ireq-robot.hydro.qc.ca Institut de recherche d'Hydro-Quebec regie@ireq-robot.uucp 1800, montee Sainte-Julie (514) 652-8107 Varennes, Que., Canada J3X 1S1 FAX : (514) 652-8435 -------------------------------------------------------------------- RASTERFILE(5) FILE FORMATS RASTERFILE(5) NAME rasterfile - Sun's file format for raster images SYNOPSIS #include DESCRIPTION A rasterfile is composed of three parts: first, a header containing 8 integers; second, a (possibly empty) set of colormap values; and third, the pixel image, stored a line at a time, in increasing y order. The image is layed out in the file as in a memory pixrect. Each line of the image is rounded up to the nearest 16 bits. The header is defined by the following structure: struct rasterfile { int ras_magic; int ras_width; int ras_height; int ras_depth; int ras_length; int ras_type; int ras_maptype; int ras_maplength; }; The ras_magic field always contains the following constant: #define RAS_MAGIC 0x59a66a95 The ras_width, ras_height, and ras_depth fields contain the image's width and height in pixels, and its depth in bits per pixel, respectively. The depth is either 1 or 8, corresponding to standard frame buffer depths. The ras_length field contains the length in bytes of the image data. For an unencoded image, this number is computable from the ras_width, ras_height, and ras_depth fields, but for an encoded image it must be explicitly stored in order to be available without decoding the image itself. Note: the length of the header and of the (possibly empty) color- map values are not included in the value of the ras_length field; it is only the image data length. For historical reasons, files of type RT_OLD will usually have a 0 in the ras_length field, and software expecting to encounter such files should be prepared to compute the actual image data length if needed. The ras_maptype and ras_maplength fields contain the type and length in bytes of the colormap values, respectively. If ras_maptype is not RMT_NONE and the ras_maplength is not 0, then the colormap values are the ras_maplength bytes immediately after the header. These values are either uninterpreted bytes (usually with the ras_maptype set to RMT_RAW) or the equal length red, green and blue vectors, in that order (when the ras_maptype is RMT_EQUAL_RGB). In the latter case, the ras_maplength must be three times the size in bytes of any one of the vectors. SEE ALSO SunView 1 Programmer's Guide Sun Release 4.1 Last change: 19 October 1987 1 /* @(#)rasterfile.h 1.11 89/08/21 SMI */ /* * Description of header for files containing raster images */ #ifndef _rasterfile_h #define _rasterfile_h struct rasterfile { int ras_magic; /* magic number */ int ras_width; /* width (pixels) of image */ int ras_height; /* height (pixels) of image */ int ras_depth; /* depth (1, 8, or 24 bits) of pixel */ int ras_length; /* length (bytes) of image */ int ras_type; /* type of file; see RT_* below */ int ras_maptype; /* type of colormap; see RMT_* below */ int ras_maplength; /* length (bytes) of following map */ /* color map follows for ras_maplength bytes, followed by image */ }; #define RAS_MAGIC 0x59a66a95 /* Sun supported ras_type's */ #define RT_OLD 0 /* Raw pixrect image in 68000 byte order */ #define RT_STANDARD 1 /* Raw pixrect image in 68000 byte order */ #define RT_BYTE_ENCODED 2 /* Run-length compression of bytes */ #define RT_FORMAT_RGB 3 /* XRGB or RGB instead of XBGR or BGR */ #define RT_FORMAT_TIFF 4 /* tiff <-> standard rasterfile */ #define RT_FORMAT_IFF 5 /* iff (TAAC format) <-> standard rasterfile */ #define RT_EXPERIMENTAL 0xffff /* Reserved for testing */ /* Sun registered ras_maptype's */ #define RMT_RAW 2 /* Sun supported ras_maptype's */ #define RMT_NONE 0 /* ras_maplength is expected to be 0 */ #define RMT_EQUAL_RGB 1 /* red[ras_maplength/3],green[],blue[] */ /* * NOTES: * Each line of the image is rounded out to a multiple of 16 bits. * This corresponds to the rounding convention used by the memory pixrect * package (/usr/include/pixrect/memvar.h) of the SunWindows system. * The ras_encoding field (always set to 0 by Sun's supported software) * was renamed to ras_length in release 2.0. As a result, rasterfiles * of type 0 generated by the old software claim to have 0 length; for * compatibility, code reading rasterfiles must be prepared to compute the * true length from the width, height, and depth fields. */ #endif /*!_rasterfile_h*/ --- -------------------------------------------------------------------- Regis Houde regie@ireq-robot.hydro.qc.ca Institut de recherche d'Hydro-Quebec regie@ireq-robot.uucp 1800, montee Sainte-Julie (514) 652-8107 Varennes, Que., Canada J3X 1S1 FAX : (514) 652-8435 -------------------------------------------------------------------- From gilkey@biosci.arizona.edu Thu May 12 23:00:19 1994 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["390" "" "12" "May" "1994" "19:05:56" "GMT" "John C. Gilkey" "gilkey@biosci.arizona.edu" "" "10" "Re: FTP site for NIH IMAGE for Windows?" "^From:" nil nil "5" "1994051219:05:56" "FTP site for NIH IMAGE for Windows?" (number " " mark " John C. Gilkey May 12 10/390 " thread-indent "\"Re: FTP site for NIH IMAGE for Windows?\"\n") "<01HC957M78EA000G86@Mailhub.srs.gov>"] nil) Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!caen!sol.ctr.columbia.edu!howland.reston.ans.net!math.ohio-state.edu!usc!nic-nac.CSU.net!news.Cerritos.edu!news.Arizona.EDU!tallis.biosci.arizona.edu!user Newsgroups: sci.image.processing Followup-To: sci.image.processing Organization: University of Arizona Lines: 10 Message-ID: References: <01HC957M78EA000G86@Mailhub.srs.gov> NNTP-Posting-Host: tallis.biosci.arizona.edu From: gilkey@biosci.arizona.edu (John C. Gilkey) Subject: Re: FTP site for NIH IMAGE for Windows? Date: 12 May 1994 19:05:56 GMT In article <01HC957M78EA000G86@Mailhub.srs.gov>, jpc@srs.gov (John Church) wrote: > > OK -Where are FTP sites where I can obtain a version of NIH IMAGE for the > Mac? > The latest version of NIH Image, its documentation, and directories containing Image spinoffs, macros, plug-ins, images, other image processing related programs, etc. can be found at zippy.nimh.nih.gov, dir pub/image. From gilkey@biosci.arizona.edu Thu May 12 23:00:34 1994 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["284" "" "12" "May" "1994" "19:08:11" "GMT" "John C. Gilkey" "gilkey@biosci.arizona.edu" "" "7" "Re: FTP site for NIH IMAGE for Windows?" "^From:" nil nil "5" "1994051219:08:11" "FTP site for NIH IMAGE for Windows?" (number " " mark " John C. Gilkey May 12 7/284 " thread-indent "\"Re: FTP site for NIH IMAGE for Windows?\"\n") "<1994May11.132133.13687@hparc0.aus.hp.com>"] nil) Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!caen!sol.ctr.columbia.edu!howland.reston.ans.net!usc!nic-nac.CSU.net!news.Cerritos.edu!news.Arizona.EDU!tallis.biosci.arizona.edu!user Newsgroups: sci.image.processing Followup-To: sci.image.processing Organization: University of Arizona Lines: 7 Message-ID: References: <1994May11.132133.13687@hparc0.aus.hp.com> NNTP-Posting-Host: tallis.biosci.arizona.edu From: gilkey@biosci.arizona.edu (John C. Gilkey) Subject: Re: FTP site for NIH IMAGE for Windows? Date: 12 May 1994 19:08:11 GMT In article <1994May11.132133.13687@hparc0.aus.hp.com>, linas@aus.hp.com (Linas Petras) wrote: > Is their a site with the source files in a DOS or Unix readable format (tar?). NIH Image source code files (Think C for the Macintosh) can be found at zippy.nimh.nih.gov, dir pub/image. From gilkey@biosci.arizona.edu Thu May 12 23:00:48 1994 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["306" "" "12" "May" "1994" "19:10:07" "GMT" "John C. Gilkey" "gilkey@biosci.arizona.edu" "" "8" "Re: FTP site for NIH IMAGE for Windows?" "^From:" nil nil "5" "1994051219:10:07" "FTP site for NIH IMAGE for Windows?" (number " " mark " John C. Gilkey May 12 8/306 " thread-indent "\"Re: FTP site for NIH IMAGE for Windows?\"\n") "<1994May11.132133.13687@hparc0.aus.hp.com>"] nil) Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!caen!sol.ctr.columbia.edu!howland.reston.ans.net!usc!nic-nac.CSU.net!news.Cerritos.edu!news.Arizona.EDU!tallis.biosci.arizona.edu!user Newsgroups: sci.image.processing Followup-To: sci.image.processing Organization: University of Arizona Lines: 8 Message-ID: References: <1994May11.132133.13687@hparc0.aus.hp.com> NNTP-Posting-Host: tallis.biosci.arizona.edu From: gilkey@biosci.arizona.edu (John C. Gilkey) Subject: Re: FTP site for NIH IMAGE for Windows? Date: 12 May 1994 19:10:07 GMT In article <1994May11.132133.13687@hparc0.aus.hp.com>, linas@aus.hp.com (Linas Petras) wrote: > > Is their a site with the source files in a DOS or Unix readable format (tar?). Sorry, the NIH Image source code at zippy.nimh.nih.gov, dir pub/image is in Symantec's Pascal for the Macintosh, not Think C. From jabredesen@mmm.com Fri May 13 08:13:23 1994 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["616" "" "12" "May" "1994" "16:14:50" "GMT" "John Bredesen" "jabredesen@mmm.com" "" "16" "Re: FTP site for NIH IMAGE for Windows?" "^From:" nil nil "5" "1994051216:14:50" "FTP site for NIH IMAGE for Windows?" (number " " mark " John Bredesen May 12 16/616 " thread-indent "\"Re: FTP site for NIH IMAGE for Windows?\"\n") "<1994May11.132133.13687@hparc0.aus.hp.com>"] nil) Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!concert!gatech!news-feed-1.peachnet.edu!umn.edu!dawn.mmm.com!NewsWatcher!user Newsgroups: sci.image.processing Followup-To: sci.image.processing Organization: 3M Lines: 16 Message-ID: References: <1994May11.132133.13687@hparc0.aus.hp.com> NNTP-Posting-Host: 130.99.69.111 From: jabredesen@mmm.com (John Bredesen) Subject: Re: FTP site for NIH IMAGE for Windows? Date: 12 May 1994 16:14:50 GMT In article <1994May11.132133.13687@hparc0.aus.hp.com>, linas@aus.hp.com (Linas Petras) wrote: > John C. Gilkey (gilkey@biosci.arizona.edu) wrote: > : NIH-Image makes heavy use of graphics routines in the Macintosh ROM. No > : one has yet made the considerable effort that would be required to port it > : to DOS machines. > > Is their a site with the source files in a DOS or Unix readable format (tar?). NIH Image does not exist for any platform other than the Macintosh. It makes heavy use of the inner graphics workings of the Mac and can only be ported with difficulty. John Bredesen jabredesen@mmm.com From ptaylor@gpu.srv.ualberta.ca Sun May 22 22:03:49 1994 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["303" "" "20" "May" "1994" "19:49:39" "GMT" "Phil Taylor" "ptaylor@gpu.srv.ualberta.ca" "<2rj48j$j74@quartz.ucs.ualberta.ca>" "9" "tiff file format" "^From:" nil nil "5" "1994052019:49:39" "tiff file format" (number " " mark " Phil Taylor May 20 9/303 " thread-indent "\"tiff file format\"\n") nil] nil) Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!darwin.sura.net!usenet.fiu.edu!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!cyber2.cyberstore.ca!nntp.cs.ubc.ca!unixg.ubc.ca!quartz.ucs.ualberta.ca!gpu!ptaylor Newsgroups: sci.image.processing Organization: University of Alberta Lines: 9 Message-ID: <2rj48j$j74@quartz.ucs.ualberta.ca> NNTP-Posting-Host: gpu.srv.ualberta.ca X-Newsreader: TIN [version 1.2 PL2] From: ptaylor@gpu.srv.ualberta.ca (Phil Taylor) Subject: tiff file format Date: 20 May 1994 19:49:39 GMT ftp sgi.com and look in graphics/tiff. There is a document that probably contains format info (I have not looked at it). -- Phil Taylor ptaylor@gpu.srv.ualberta.ca Phil Taylor, Dept. Zoology (403) 492-5490 University of Alberta (403) 492-1180 Edmonton AB, T6G 2E9 From coa23@cc.keele.ac.uk Mon May 23 11:17:56 1994 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["377" "" "23" "May" "1994" "14:15:43" "GMT" "S. Westland" "coa23@cc.keele.ac.uk" "<2rqdqg$s7p@gabriel.keele.ac.uk>" "19" "Re: tiff file format" "^From:" nil nil "5" "1994052314:15:43" "tiff file format" (number " " mark " S. Westland May 23 19/377 " thread-indent "\"Re: tiff file format\"\n") ""] nil) Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!concert!news-feed-1.peachnet.edu!darwin.sura.net!howland.reston.ans.net!pipex!uknet!keele!potter!coa23 Newsgroups: sci.image.processing Lines: 19 Distribution: world Message-ID: <2rqdqg$s7p@gabriel.keele.ac.uk> References: NNTP-Posting-Host: potter.cc.keele.ac.uk X-Newsreader: TIN [version 1.2 PL2] From: coa23@cc.keele.ac.uk (S. Westland) Subject: Re: tiff file format Date: 23 May 1994 14:15:43 GMT David Giers (giers@acs.ucalgary.ca) wrote: : to anyone who may know, : I am looking for the internal file format of a TIFF file, in : particular any compression algorithim standards for image files. : Any information will be appreciated, please e-mail me. : Thanks : David Giers Try Graphics File Formats David C. Kay & John R Levine McGraw-Hill ISBN: 0-8306-3059-7 From mvivino@helix.nih.gov Sat May 28 16:07:02 1994 Status: RO X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["2570" "Thu" "26" "May" "1994" "14:14:37" "GMT" "Mark A. Vivino" "mvivino@helix.nih.gov" "" "54" "Re: About NIH IMAGE" "^From:" nil nil "5" "1994052614:14:37" "About NIH IMAGE" (number " " mark " Mark A. Vivino May 26 54/2570 " thread-indent "\"Re: About NIH IMAGE\"\n") ""] nil) Newsgroups: sci.image.processing Path: saips.cv.nrao.edu!hearst.acc.Virginia.EDU!darwin.sura.net!nih-csl!mavmac.dcrt.nih.gov!user Message-ID: Followup-To: sci.image.processing Organization: National Institutes of Health References: Lines: 54 From: mvivino@helix.nih.gov (Mark A Vivino) Sender: postman@alw.nih.gov (AMDS Postmaster) Subject: Re: About NIH IMAGE Date: Thu, 26 May 1994 14:14:37 GMT In article ensochoy@hkpu01.hkp.hk (Steven CHOY) wrote: > Can anyone kindly tell me what is NIH Image? The latest version of NIH Image, application, documents, source code, macros and more can be found on the anonymous ftp server zippy.nimh.nih.gov [128.231.98.32] in the directory /pub/nih-image One of the best ways to download the program is to use the public domain application known as "Fetch". NIH Image is a public domain image processing and analysis program for the Macintosh. It can acquire, display, edit, enhance, analyze, print and animate images. It reads and writes TIFF, PICT, PICS and MacPaint files, providing compatibility with many other applications, including programs for scanning, processing, editing, publishing and analyzing images. It supports many standard image processing functions, including contrast enhancement, density profiling, smoothing, sharpening, edge detection, median filtering, and spatial convolution with user defined kernels up to 63x63. Image also incorporates a Pascal-like macro programming language, providing the ability to automate complex, and frequently repetitive, processing tasks. Image can be used to measure area, average gray value, center and angle of orientation of a user defined regions of interest. It also performs automated particle analysis and can be used to measure path lengths and angles. Measurement results can be printed, exported to text files, or copied to the Clipboard. Spatial calibration is supported to provide real world area and length measurements. Density calibration can be done against radiation or optical density standards using user specified units. The user can select from any of eight different curve fitting methods for generating calibration curves. Image provides MacPaint-like editing of color and gray scale images, including the ability to draw lines, rectangles, ovals and text. It can flip, rotate, invert and scale selections. It supports multiple windows and 8 levels of magnification. All editing, filtering, and measurement functions operate at any level of magnification and are undoable. Image supports Data Translation and Scion frame grabber cards for capturing images or movie sequences using a TV camera. Acquired gray scale images can be shading corrected and frame averaged. Image is written using Think .i.Pascal ;from Symantec Corporation, and the complete source code is freely available. -- Mark Vivino mvivino@helix.nih.gov Computational Biosciences and Engineering Lab Image Processing Research Section National Institutes of Health