Re: import 16-bit greyscale TIFF file
- To: mathgroup at smc.vnet.net
- Subject: [mg45892] Re: import 16-bit greyscale TIFF file
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 29 Jan 2004 05:34:39 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <butdkc$9q6$1@smc.vnet.net> <bv839e$ib6$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, a) MS Paint does not handle 16 bit images b) copy an image via clip board will instert the image into the *FrontEnd* but not into the Kernel. You can see this image but you can't do anything with it. Just looking on a 16 bit image is nonsense because the human eye can nonly see 150 -- 200 gray scales c) Import[] with 16 bit TIFF's scale down the range to 8 bit 16 bit (more precise 12 bit) are the standard bit depth of all most all medical imagine software and a conversion of the images to DICOM format may also a way to read the 16 bit images into the kernel. Regards Jens Steve Luttrell wrote: > > There are two ways that you might try: > > 1. If you have any paint-type application you could open the TIFF, copy it > to the clipboard, and then paste into your Mathematica notebook. > 2. image=Import[<TIFF pathname>,"TIFF"]; Show[image]; > > I have checked that that this works on an 8-bit greyscale TIFF, so I can't > be certain that it works for a 16-bit TIFF. > > Steve Luttrell > > "zeug" <zeug at ukmn.gwdg.de> wrote in message > news:butdkc$9q6$1 at smc.vnet.net... > > Hello, > > > > I'm trying to import a 16-bit greyscale TIFF file into Mathematica 5.0. > > Is there any way to do this directly? > > If not, has anybody got the structure of this kind of files, that could > > help to read out the relevant information?? > > > > Thanks for your help. > > > > Stephan Junek > >