Message Boards Message Boards

0
|
11018 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Problem opening 16-bit tif files

Posted 10 years ago

Hi! I am a student from Jena. At the moment I have to deal with mathematica 8.0, which is new to me. Here is my problem: When I open a tif file in 16-bit the picture is displayed not correctly. When I change the picture to 8-bit format mathematica shows the picture the way it looks like in programs who support 16 bit files (e.g. ImageJ). But I cant accept clipping! Can anyone help me with this problem? A sample file is attached. Thank you!

Attachments:
POSTED BY: S. Student
2 Replies

That image is imported correctly in Mathematica 8 and newer versions. The reason why it looks all black is that the maximal value is equal to 2187 while the "Bit16" images can store integer values between 0 and 65535.

In[1]:= $Version
Out[1]= "8.0 for Microsoft Windows (64-bit) (February 23, 2011)"
In[2]:= ImageData[ Import["c:\\s_C001Z100.tif"], Automatic] // Max
Out[2]= 2187

ImageAdjust can be used for better visualization: enter image description here

POSTED BY: Piotr Wendykier

16-bit TIFF import was added for Mathematica 10.

POSTED BY: Bruce Miller
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract