# Dicom files with sage

Hi everybody! Please is there a way to manage DICOM files with sage? This is possible with pure python, using pydicom. How to use this tool under sage?

Thank you in advance.

Dicom files with sage

Hi everybody! Please is there a way to manage DICOM files with sage? This is possible with pure python, using pydicom. How to use this tool under sage?

Thank you in advance.

add a comment

1

You shouold be able to install `pydicom`

within Sage as follow. From the command line located in your Sage installation directory, just type:

```
./sage -pip install pydicom
```

Then start Sage and try to import it the usual way.

Do not hesitate to report your experience.

Thank for that answer. I want to specify that I'm on Windows. I'm working with sage on virtualbox.

when i try to type what you asked, I have somethink like this:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_5.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("LXBpcCBpbnN0YWxsIHB5ZGljb20="),globals())+"\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>

File "/tmp/tmpMES0gZ/___code___.py", line 2 -pip install pydicom ^ SyntaxError: invalid syntax

You have to type this from a shell, not from a Sage session, see https://wiki.sagemath.org/SageApplian...

Asked: **
2017-06-26 10:10:38 -0500
**

Seen: **154 times**

Last updated: **Jun 26 '17**

Is there a way to insert a .png into a LaTex document?

How can I show any image in sage notebook via html?

Display a PNG image file in a worksheet

Is ther a way to capture images from a webcam?

How quickly minimizing $M*x-v$ (numerically) ?

Image.PNG definition degraded, in notebook view

How to create your own function for image histogram? [closed]

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.