Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: Importing 16-bit TIFF files with 4.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20263] Re: [mg20205] Importing 16-bit TIFF files with 4.0
  • From: Andrew Watson <abwatson at mail.arc.nasa.gov>
  • Date: Sun, 10 Oct 1999 01:27:24 -0400
  • References: <199910070106.VAA29293@smc.vnet.net.>
  • Sender: owner-wri-mathgroup at wolfram.com

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.
>
>TIA,
>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. ";

Regards


Andrew B. Watson
MS 262-2
NASA Ames Research Center
Moffett Field, CA 94035-1000
(650) 604-5419	(650) 604-0255 fax
abwatson at mail.arc.nasa.gov	http://vision.arc.nasa.gov/


  • 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