Group Abstract Group Abstract

Message Boards Message Boards

1
|
10.5K Views
|
6 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Import displays Dicom Image differently in Mathematica 9 and 10

Posted 10 years ago

Mathematica 9 (windows 10: lenovo) displays image as:

enter image description here

Mathematica 10.2 (windows 10: Lenovo) displays image as:

enter image description here

Here is the source file:

Import["https://dl.dropboxusercontent.com/u/68983831/46405725"]

How to achieve same display as Mathematica 9? No code generated above image. Just the file was imported.

POSTED BY: John Reno
6 Replies
POSTED BY: Marcin Balcerzyk

Hi John,

I have no idea how the difference in versions of Mathematica could play a role. Actually this should not be like this. Looking into the DICOM-header of your file using

dcmHeader = Import["https://dl.dropboxusercontent.com/u/68983831/46405725", "MetaInformation"];

makes me believe that somehow this file is corrupt. One can still see a lot of information, e.g. that the data were acquired by a Siemens MR Verio, but there also seems to be a lot of unreadable garbage in there - but I may be wrong.

Anyway, you can extract (or at least I could extract) a better image by importing as "Data" or as "Graphics":

enter image description here

PS: My System:

In[53]:= $Version    
Out[53]= "10.2.0 for Linux x86 (32-bit) (July 6, 2015)"

Regards -- Henrik

POSTED BY: Henrik Schachner

Addendum:

The version of Mathematica does in fact make the difference:

enter image description here

Here we get an image with 125 different gray levels; using MMA v10 (in this case!) we get much less. Maybe somebody from WRI can comment on this.

POSTED BY: Henrik Schachner

Hm... okay... I have no idea, sorry. I get the same image as your Mathematica 10.2 output (using 10.3, Windows 10), so at least it looks like a general problem (as opposed to just a strange setting or graphics issue in some part of your system). Perhaps you can convert the image to a different format in another application, but that's probably not what you want. You could also try playing around with contrast settings and other image processing functions, although I'm not sure you'd get a solution that will work for future images without adjustment. Sorry I can't be of more help here.

POSTED BY: Bianca Eifert
POSTED BY: Bianca Eifert
Posted 10 years ago
POSTED BY: John Reno
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard