Slides here are continuously being revised and updated. If you have been here before, your browser might have some old files cached. To ensure that you see the latest version, please follow the instructions given in the following link: ☞ how to clear browser cache .
Preliminaries
You would need the pydicom module/package by Darcy Mason. To check whether it is already installed on your system, go to the Python or IPython console and type in:
help("modules") From the long list of installed modules, look for 'dicom' or 'pydicom'.
If you are using PythonAnywhere, you may install pydicom by typing into your Bash console:
pip3.5 install --user pydicom
To be able to run the examples given in the slides, you need the anonymised DICOM datasets:
☞ download brain dataset (21M)
☞ download pelvis dataset (21M)
Download the dataset to your space.
If you are using PythonAnywhere, your space would be in the cloud, because that's where PythonAnywhere resides. So, you would need to first download to your computer, then upload to PythonAnywhere. The upload button can be found by clicking PythonAnywhere > Files. Look for the orange button at the bottom of the page.
If you are using your local computer, your space would be your local computer.
After downloading, go to the Bash console and type in:
tar xzf brain.tar.gz
tar xzf pelvis.tar.gz
to uncompress the compressed files.