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/
- References:
- Importing 16-bit TIFF files with 4.0
- From: Beth Sornsin <sornsin@boulder.nist.gov>
- Importing 16-bit TIFF files with 4.0