|
[Date Index]
[Thread Index]
[Author Index]
Re: Importing gif, tiff... (etc) as an array (summary)
- To: mathgroup at smc.vnet.net
- Subject: [mg4934] Re: Importing gif, tiff... (etc) as an array (summary)
- From: Adriano Barenco <barenco at ph.ox.ac.uk>
- Date: Fri, 4 Oct 1996 00:18:01 -0400
- Organization: Oxford University
- Sender: owner-wri-mathgroup at wolfram.com
Many thanks to all those who answered,
To sum up the answers to my request:
>On the Mac, at least, you can simply
>- paste the graphic you want from another application
>- select the graphics cell
>- select the "Convert To InputForm" option from the Graph menu
>- assign the Raster[] data in the generated cell to a variable (and/or
>save the data to disk
>
>The Raster[] object contains the pixel data you want and has just the
>resolution of the pasted image.
(suggested by Harald Berndt <hberndt9 at mail.idt.net>)
>One route (on Unix) would be to use the PBMPlus package (or its
>successor NetPBM) and use its filters to produce an ASCII array, which
>you could then read in Mma. There are many variations in those image
>formats, and I would not care to reinvent that particular wheel in
>Mma. Your command line to convert a GIF to gray scale would look like
>
>giftoppm testcase.gif | ppmtopgm | pnmnoraw > testcase.asc
(suggested by Hal Mueller <halm at heart.cor.epa.gov>)
Adriano Barenco
==== [MESSAGE SEPARATOR] ====
Prev by Date:
Quality of Exported Graphics
Next by Date:
Re: req. list sifting
Previous by thread:
Re: Quality of Exported Graphics
Next by thread:
Re: req. list sifting
|