Skip to content

Commit b188e16

Browse files
authored
Merge pull request #19 from HealthBioscienceIDEAS/4-further-changes-to-nifti-nibabel
4 - further changes to nifti nibabel
2 parents 32ef744 + 9d85afb commit b188e16

24 files changed

Lines changed: 38528 additions & 23707 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ episodes/*html
99
site/*
1010
!site/README.md
1111

12+
## Temporal files for ITK-SNAP registration
13+
**Untitled.txt
14+
1215
# History files
1316
.Rhistory
1417
.Rapp.history

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ git clone git@github.com:HealthBioscienceIDEAS/Medical-Image-Registration-Short-
2323
```
2424

2525
## Maintainers
26+
This project exists thanks to all mainteners. Sort list by last name (alphabetically).
2627
* [Dave Cash](https://github.com/davecash75)
2728
* [Jamie Mcclelland](https://github.com/jamie-mcclelland)
2829

2930
## Contributors
30-
This project exists thanks to all the people who contribute.
31+
This project exists thanks to all the people who contribute. Sort list by last name (alphabetically).
3132
* [Dave Cash](https://github.com/davecash75)
32-
* [Jamie Mcclelland](https://github.com/jamie-mcclelland)
3333
* [Milan Malfait](https://github.com/milanmlft)
34+
* [Jamie Mcclelland](https://github.com/jamie-mcclelland)
3435
* [Zakaria Senousy](https://github.com/zsenousy)
3536
* [Stephen Thompson](https://github.com/thompson318)
3637
* [Miguel Xochicale](https://github.com/mxochicale)

episodes/data/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Demo data
1+
# Medical Data Imaging
22

33
## CT-vs-PET-Ventilation-Imaging
44
CT Ventilation as a Functional Imaging Modality for Lung Cancer Radiotherapy from [TCIA](https://www.cancerimagingarchive.net/collection/ct-vs-pet-ventilation-imaging/).
@@ -39,7 +39,12 @@ Data paths look like these:
3939
```
4040

4141

42-
### Data is converted using:
42+
### Citations & Data Usage Policy
43+
Data Citation Required: Users must abide by [the TCIA Data Usage Policy and Restrictions](https://www.cancerimagingarchive.net/data-usage-policies-and-restrictions/).
44+
Attribution must include the following citation, including the Digital Object Identifier:
45+
> Eslick, E. M., Kipritidis, J., Gradinscak, D., Stevens, M. J., Bailey, D. L., Harris, B., Booth, J. T., & Keall, P. J. (2022). CT Ventilation as a functional imaging modality for lung cancer radiotherapy (CT-vs-PET-Ventilation-Imaging) (Version 1) [Data set]. The Cancer Imaging Archive. https://doi.org/10.7937/3ppx-7s22
46+
47+
### Data is converted from DICOM to nifti using `dicom2nifti`:
4348
```
4449
from pathlib import Path
4550
import dicom2nifti
@@ -50,5 +55,5 @@ dicom2nifti.convert_directory(dicoms, ".", compression=True, reorient=True)
5055

5156
## Demons Image Registration Exercise Data
5257

53-
Please check `data` folder inside `episodes` for accessing `cine_MR_img_1.png`, `cine_MR_img_2.png`, and `cine_MR_img_3.png` that are used for demonReg.py and `exampleSolution3.py`.
58+
Please check [`data`](https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/tree/main/episodes/data) folder inside `episodes` for accessing `cine_MR_img_1.png`, `cine_MR_img_2.png`, and `cine_MR_img_3.png` that are used for [`demonReg.py`](https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/blob/main/src/mirc/utils/demonsReg.py) and [`exampleSolution3.py`](https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/blob/main/src/mirc/examples/exampleSolution3.py).
5459

episodes/excthreesteps.Rmd

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ Open terminal, activate `mirVE` environment and run python
2525
conda activate mirVE
2626
python
2727
```
28+
:::::::::::::::::::::::::::::::::::::: spoiler
29+
30+
## How to avoid `ModuleNotFoundError: No module named VARIABLE`?
31+
32+
You need to export relative imports, using the following notation for either linux or windows (might be similar to mac)
33+
34+
```bash
35+
#WINDOWS
36+
set PYTHONPATH=%PYTHONPATH%;C:\path\to\your\project\
37+
#LINUX
38+
export PYTHONPATH="${PYTHONPATH}:/path/to/your/project/"
39+
```
40+
41+
::::::::::::::::::::::::::::::::::::::
2842

2943
This document explains the implementation of a 2D image registration algorithm using the Demons algorithm. The implementation includes visualisation updates within a single window containing three panes for easier comparison of source, target, and warped images.
3044

@@ -460,4 +474,4 @@ demonsReg(cine_MR_img_1, cine_MR_img_2)
460474
<video width="800" height="450" controls>
461475
<source src="fig/final_results_vid.mp4" type="video/mp4">
462476
Your browser does not support the video tag.
463-
</video>
477+
</video>

episodes/fig/CT-PET-VI-02.png

-317 KB
Binary file not shown.

episodes/fig/CT-PET-VI-02.svg

Lines changed: 18051 additions & 0 deletions
Loading

episodes/fig/itk-snap-16-32-bits.svg

Lines changed: 6817 additions & 0 deletions
Loading
401 KB
Loading

episodes/fig/itk-snap-colour-overlay-as-semi-transparent-image.svg

Lines changed: 8173 additions & 0 deletions
Loading

episodes/fig/itk-snap-colour-overlay-as-separate-image.svg

Lines changed: 4964 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)