MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Importing 16-bit TIFF files with 4.0

  • To: mathgroup at
  • Subject: [mg20263] Re: [mg20205] Importing 16-bit TIFF files with 4.0
  • From: Andrew Watson <abwatson at>
  • Date: Sun, 10 Oct 1999 01:27:24 -0400
  • References: <>
  • Sender: owner-wri-mathgroup at

At 9:06 PM -0400 10/6/99, Beth Sornsin wrote:
>What I need is:
>(1) a way of directly importing the 16-bit TIFF's
>    into Mathematica 4.0, or
>(2) a quick method of converting the 16-bit TIFF's
>    into a format that Mathematica 4.0 will read.
>Beth Sornsin

You might try this. It certainly works for 8 bit tiffs.

ReadImage[filename_, format_] := Import[filename, format][[1, 1]]

ReadImage::usage = "ReadImage[filename_,format_] Read an image from a 
file of the specified format (see $ImportFormats). Result is an array 
of either 2 or 3 dimensions, in the order {rows,columns,colors} or 
{rows,columns}. Elements of the array are typically integers between 
0 and 255. ";


Andrew B. Watson
MS 262-2
NASA Ames Research Center
Moffett Field, CA 94035-1000
(650) 604-5419	(650) 604-0255 fax
abwatson at

  • Prev by Date: Re: Finding lengths of identical sequences in lists
  • Next by Date: Re: Crash course in Mathematica syntax reqd
  • Previous by thread: Importing 16-bit TIFF files with 4.0
  • Next by thread: Re: Importing 16-bit TIFF files with 4.0